3 ms·
We used Less for a project, but ended up moving to Sass: http://sass-lang.com/ http://sass-lang.com/ The Sass compiler was (is?) more mature, and the language
by jomohke 16y ago
We used Less for a project, but ended up moving to Sass: http://sass-lang.com/ http://sass-lang.com/
The Sass compiler was (is?) more mature, and the language feels more consistent (see the '&' operator in Sass vs the :hover special case in Less). The editor/tool support was quite a bit better too.
Sass doesn't have a javascript in-browser implementation (afaik), but for rapid development it can watch a folder/file for changes and automatically recompile to static CSS files.
Plus there's a firebug plugin, so you get Sass line numbers / references instead of compiled CSS line numbers: https://addons.mozilla.org/en-US/firefox/addon/103988/ https://addons.mozilla.org/en-US/firefox/addon/103988/
- perlpimp 16y agoThere is sass in node.js/express framework. cant see why it cant ne adjusted to be use client side.
- nex3 16y agoUnfortunately, sass.js is pretty incomplete and has no support for SCSS.
- rapind 16y agoInteresting. I tried both and now use LESS with the More plugin in my rails app. I'm a huge fan of HAML, but I haven't fallen in love with SASS yet. The big upside to LESS is it still looks like CSS. Compass is interesting though, from the SASS side. http://github.com/chriseppstein/compass http://github.com/chriseppstein/compass
- jomohke 16y agoThe latest version of Sass (3.0) has CSS syntax: The compiler supports both variants - the file extension (.scss vs .sass) denotes which you want to use. See the examples on their front page: http://sass-lang.com http://sass-lang.com They have a command line tool "sass-convert", which can convert between the syntaxes (and from Less)
- rapind 16y agoThanks for pointing that out. I'll give it another go.
- unfletch 16y agoFYI, Less.js isn't just a javascript port. It adds new features, and the "&" selector is among them. That said, I agree that SASS is more mature. I've used each on at least two projects now, and, with the release of SASS 3.0's and SCSS, I'm committing to SASS. This client-side parsing is a cool trick, but it's easy to do my CSS generation at the same time as my javascript minification. I just don't need it.