Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

CSS reformatting tool

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 data
Octocat-spinner-32 lib
Octocat-spinner-32 manual
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .yardopts
Octocat-spinner-32 AUTHORS
Octocat-spinner-32 CHANGELOG
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 VERSION
Octocat-spinner-32 lesstidy.gemspec
README.md

Lesstidy

A CSS tidying tool.

Installation (for text editors)

Installation (command line)

To use the lesstidy command, type gem install lesstidy --pre.

Usage

General usage is lesstidy <input> [<output>].

Type lesstidy --help for tweaks.

.lesstidyopts file

Want to impose a LessTidy options standard to your project? Put a file called .lesstidyopts in your project's folder. Whenever lesstidy is used without any style options, it finds this file (relative to the current directory). Put each option in it's own line.

Example:

# .lesstidyopts
--preset=column
--wrap-width=140

Even the text editor plugins (vim, textmate, etc) will refer to this file.

Examples

lesstidy --preset=compact input.css

To do

  • More types
    • Mixin declarations
    • Var declarations
    • import lines
  • .lesstidyopts

Done:

  • Presets
  • bin/lesstidy
  • blackbox testing
  • Comments
  • recursive wrapping
Something went wrong with that request. Please try again.