CSS Using LESS, I'll Never Write Regular CSS Again

Started by Mark, February 09, 2012, 04:34:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Mark

A few weeks ago I discovered a little thing called 'LESS' for CSS. Now that I've had some time with it, I can safely say I'll never write regular CSS again.

Labeled as "the dynamic stylesheet language", it basically makes it so you can declare variables, or global colors and styles if you will, and reuse or modify them. Then, if you need to go back and change your color scheme or something, it's a couple of changes and you're entire site has new colors styles. And, if you're crafty enough, you can even create your site based on one color and have LESS automatically create shades and variations of said color. Then, if you need to change your entire color scheme, you change only one line!

Check out some docs and examples for yourself: www.lesscss.org

NOTE: I've been using a compiler to spit out a CSS file for me so I've not tried having it compile in real time with the JavaScript file it says to use.

Jason