LESS (Leaner CSS) is a CSS Framework that provides an alternative for SASS. It extends CSS with variables, mixins, operations and nested rules. As an extension to CSS, LESS is not only backwards compatible with CSS, but the extra features it adds use existing CSS syntax. This makes learning LESS a breeze, and if in doubt, lets you fall back to CSS.
LESS is an extension of CSS. You can write LESS code just like you would write CSS, except you need to compile it to CSS. That’s where you can use LESS Ruby gem which will compile LESS code to CSS. Note that you can use LESS compiler to translate the .less file into a .css file and use it in any type of project.
More is the official LESS plugin for Ruby on Rails applications. It automatically parses your applications .less files through LESS and outputs CSS files. Here is what More will do for you:
- Recursively looks for LESS (.less) files in app/stylesheets
- Ignores partials (prefixed with underscore: _partial.less) – these can be included with @import in your LESS files
- Saves the resulting CSS files to public/stylesheets using the same directory structure as app/stylesheets
Developed by Alexis Sellier; LESS is available for download under Apache License. You can find further information, demo & download on LESS Website.