Recently I've integrated SASS, Blueprint and Compass into our RoR application, and the results have been surprisingly good. SASS itself provides a programmatic way of creating stylesheets (SASS allows you to use variables and function calls to consolidate CSS configurations), making it feel like you're actually programming rather than hacking styles together. Additionally, the Blueprint and Compass frameworks build upon SASS to provide a whole slew of helpful SASS functions (or "mixins" as they call it) which make doing a bunch of common tasks much simpler...
It truly does help improve the CSS coding experience ....
Yes, there is a pretty big catch. You have to be using RoR and HAML as SASS seems to have dependencies on both (may or may not actually need HAML... i haven't bothered digging into that). And we all know how much i love RoR ...
So I need a way to achieve these same results in a non-RoR application.
So for a language agnostic solution the less css framework seems a more than adequate solution. It allows you to generate CSS either by:
I'd hesitate to guess that you'd probably want to provide CSS files to the client and reduce javascript processing, so the first option is probably the way to go. Anyway, it seems that less css is an adequate and, most importantly, language agnostic solution to an annoying but rather underwhelming problem.
I haven't had a chance yet to use less css in anger. Perhaps something unexpected will come out in the wash when I do. But I'm going to give it a shot the next time I have a spare moment to re-style this damn blog. Annoyingly I have to move house ... recently it seems that life seems to be getting in the way of coding ....
Comments ...