Serverside CSS Preprocessor

October 28th, 2006  |  Published in Ideas, Webdev  |  2 Comments

Had an idea to make a CSS preprocessor that would help solve many of the issues I have with CSS currently. Ideally it would:

Allow nesting of styles
Being able to nest styles ‘inside’ other styles would solve the problem of writing out tons of selector chains.

Automatically insert necessary attributes
For IE and other browsers. IE: automatically add ‘cursor:hand’ whenever ‘cursor:pointer’ is seen. Could also add the IE-specific opacity property

Allow use of variables
It’d be great to be able to reference a color by variable in multiple styles instead of having to update multiple styles when the color changes.

Looks like someone had a similar idea (but currently only does variables).

Responses

  1. Rhys Clowes says:

    April 21st, 2007 at 11:36 am (#)

    *applauds*

  2. Garret says:

    March 8th, 2008 at 9:27 am (#)

    Looks like Shaun Inman (the guy behind Mint) has created this!

    http://www.shauninman.com/archive/2007/06/27/css_server_side_pre_processor

Leave a Response