The Dopefly Tech Blog

« The Dopefly Tech Blog Main page

Less CSS - how CSS should have been!

posted under category: Standards on July 25, 2009 at 12:00 am by Nathan

Has anyone else seen Less - Leaner CSS? Let me sum it up for you. It goes like this:


And you can take that one to the bank.

Seriously though, Less is an app built in Ruby that lets you write CSS in a reasonable fashion, which it will compile into unreasonable standard CSS.

And what is reasonable for CSS? Where is it that the W3C has failed us so terribly? Less' feature set says it all: variables, mixins, nested rules and operations. You'll probably have to see it to believe it, but once you see it, you'll get it. Go ahead, visit the Less CSS site, just the home page shows you everything.

My only problem with it is that it's Ruby. I don't have anything in particular against Ruby, I just don't want to install it or figure out how to use it to start coding with Less.

So where does that leave me?

1) Rewrite it in a language I like more
2) Suck it up, use Ruby
3) Recompile it with jRuby
4) Run it with HotRuby (translate into Javascript)

Until then, I guess I will just be dreaming about it.