Coincidentally I'm watching Reddit's keynote from PyCon and they wrote their own CSS compiler called C55. Their keynote is at http://blip.tv/file/1951296/ and the slides at (starting with slide 29) http://www.slideshare.net/kn0thing/ride-the-snake-reddit-key...
The thing I like most about what they've done is to embed the functionality into CSS, rather than writing a new meta-language.