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;
4.}
5.h2 {
6. color: @brand_color;
7.}

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

Website: http://lesscss.org/
Download: http://github.com/cloudhead/less

Leave a Comment.