3 ms·
Sass: http://sass-lang.com http://sass-lang.com Less: http://lesscss.org http://lesscss.org Both are widely adopted. Bracket-free syntax, variables, mixins, if
by harlanlewis 14y ago
Sass: http://sass-lang.com http://sass-lang.com
Less: http://lesscss.org http://lesscss.org
Both are widely adopted. Bracket-free syntax, variables, mixins, if/else, more. And you can get started without learning anything new!
A coffeescript-based syntax signals true object-oriented behavior - but the compiled CSS declarations are still ruled by specificity and inheritance. Danger zone.
- rapind 14y agoJust a nitpick, but I don't believe Less is bracket-free. At least not the last time I checked. Sass is just plain awesome.
- chc 14y agoHe was probably thinking of Stylus, which is a fairly popular JavaScript reimagining of Sass.
- harlanlewis 14y agoWasn't thinking of it, but sure, add Stylus to the list. The point is CSS preprocessors get a lot of mileage out of a syntax with familiar roots. Dropping the curly braces stays true to these origins. Presenting style declarations as json in anonymous functions misrepresents compiled behavior.