Smarter And Better CSS For Ruby: LESS

LESS is a Ruby gem which compiles the LESS code to CSS & extends css by adding variables, mixins, operations and nested rules.

It uses the existing CSS syntax. So, it is very easy to convert current CSS files to LESS files & there is almost no learning curve.

LESS For Ruby

To help understand better, here is an example:

1.@brand_color: #4D926F;
2.#header {
3. color: @brand_color;
5.h2 {
6. color: @brand_color;

LESS is well-documented & source can be found here.


Leave a Comment.