Hacker News new | ask | show | jobs
by ataleb52 4897 days ago
I haven't used Sass yet but it seems pretty cool. Does anyone know how it compares to Less?
2 comments

Chris Coyier wrote a nice article detailing some of the details http://css-tricks.com/sass-vs-less/

The single biggest difference is in available style libraries in my opinion. I could probably never use Less because my workflow has become so heavily intertwined with Bourbon, Susy, and Compass.

This article is sweet! Sass is definitely looking more and more appealing.

Thanks for sharing!

It's basically the same, minus a few differences in syntax.

ie. Mixins

LESS

    .border-radius(@radius){ border-radius: @radius; }
    .border-radius(5px);
SCSS/SASS

    @mixin border-radius(@radius){ border-radius: @radius; }
    @include border-radius(5px);
- - -

The biggest difference is being able remove curly braces and semi-colons, which can speed up your development

    h1
      font-weight: bold
      color: red
Ignoring Sass @extend is ignoring perhaps its most powerful feature:

http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#ex...

Ah, very nice. Will definitely have play around with it.

Thank you!!!