Convert Less to SCSS

Posted May 3, 2010

I haven’t been posting most of the minor RC releases of Haml and Sass to this blog since they only contain bug fixes and usability improvements, which (while important) aren’t very exciting. However, there were fewer bug reports than I anticipated, so I’ve had a little time to work on something extra a couple people have requested: a Less to SCSS converter.

This is being added to sass-convert as part of RC 4, released just now. It is violating the feature freeze, I admit, but since it’s so orthogonal to the rest of the project I don’t think it’ll be a problem. To get it and use it, run:

# Install Sass 3.0.0.rc.4
gem install haml --pre
# Convert all .less files to .scss
sass-convert --from less --to scss --recursive path/to/stylesheets