public
Description: Leaner CSS
Homepage: lesscss.org
Clone URL: git://github.com/cloudhead/less.git
less /
name age message
file .gitignore Mon May 18 21:10:07 -0700 2009 cleanup [cloudhead]
file CHANGELOG Wed Jul 29 19:27:20 -0700 2009 ruby 1.8 fix & updated changelog [cloudhead]
file LICENSE Mon May 18 18:18:49 -0700 2009 apache license [cloudhead]
file README.md Wed Jul 08 14:18:54 -0700 2009 fixed thanks section [cloudhead]
file Rakefile Mon Oct 12 00:01:44 -0700 2009 don't need this for now [cloudhead]
file VERSION Mon Oct 12 10:12:45 -0700 2009 Version bump to 1.2.11 [cloudhead]
directory bin/ Wed Sep 02 14:29:04 -0700 2009 added command-line option to disable color outp... [cloudhead]
file less.gemspec Mon Oct 12 10:12:57 -0700 2009 Regenerated gemspec for version 1.2.11 [cloudhead]
directory lib/ Loading commit data...
directory spec/ Mon Oct 12 10:12:39 -0700 2009 fixed global vars not being accessed by dynamic... [cloudhead]
README.md

LESS

It's time CSS was done right – LESS is leaner css.

Explained

LESS allows you to write CSS the way (I think) it was meant to, that is: with variables, nested rules and mixins!

Here's some example LESS code:

@dark: #110011;
.outline { border: 1px solid black }

.article {
    a { text-decoration: none }
    p { color: @dark }
    .outline;
}

And the CSS output it produces:

.outline { border: 1px solid black }
.article a { text-decoration: none }
.article p { color: #110011 }
.article { border: 1px solid black }

If you have CSS nightmares, just

$ lessc style.less

For more information, see you at [http://lesscss.org]

People without whom this wouldn't have happened a.k.a Credits

  • Dmitry Fadeyev, for pushing me to do this, and designing our awesome website
  • August Lilleaas, for initiating the work on the treetop grammar, as well as writing the rails plugin
  • Nathan Sobo, for creating treetop
  • Jason Garber, for his magical performance optimizations on treetop
  • And finally, the people of #ruby-lang for answering all my ruby questions. apeiros, manveru and rue come to mind