Closed (fixed)
Project:
Less CSS Preprocessor
Version:
6.x-2.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
31 Mar 2010 at 20:52 UTC
Updated:
3 Sep 2011 at 21:27 UTC
Is there any reason to prefer one over the other?
Thanks
Comments
Comment #1
corey.aufang commentedIn the end it comes down to personal choice, but let me make a short comparison for you.
SASS uses an entirely new syntax that with indentation based nesting, and no end of line delimeters. To use SASS you have to completely rewrite your CSS.
(pulled directly from http://sass-lang.com/)
Some of the things that SASS extols as virtues I think are exactly the things wrong with it.
Removing brackets and basing nesting on how far a line is indented I think is a step backward in design.
LESS takes standard CSS syntax and extends it:
Both of these samples create this same CSS:
Because LESS is based on standard CSS syntax you can paste in large amounts of plain CSS and LESS will make no alterations.
Since LESS syntax is similar to CSS, it is also easier for someone with CSS experience to learn LESS.
Comment #2
ManyNancy commentedThanks, answers the question well. :)
Comment #3
corey.aufang commentedmarking as fixed
Comment #5
cabbiepete commentedJust wanted to update this for anyone else finding it via Google. Sass now supports a superset of CSS syntax, file endings are .scss by convention. Or alternatively the indentation style (HAML) file endings still .sass by convention.
Comment #6
guysaban commentedYou may also want to see this about SASS: http://nex-3.com/posts/83-sass-and-less
It has some advantages over LESS.
And this from ZivTech (a Drupal webshop): http://www.zivtech.com/blog/css-suckers-introduction-sass-compass
Comment #7
bcreeves commentedSASS uses standard CSS syntax as of version 3.0
http://sass-lang.com/docs/yardoc/file.SASS_CHANGELOG.html#3-0-0
Comment #8
lsdkfjmdkl commented@corey.aufang, sass also has the scss syntax, which is a superset of CSS. (It means that you don't need to rewrite you whole CSS file, it just works with SCSS.)
See http://sass-lang.com/
Like LESS, SCSS takes the CSS syntax and extends it.
BTW the sass-convert tool that comes with sass knows how to convert from and to the sass, scss and css formats.
Any other pros/cons ? (I found this page while searching for "less vs sass" ;-) )