Topic: variables in CSS?

I'm finally getting the hang of CSS. I've got all of my colors defined in a colors.css file, and that makes managing color schemes a lot easier. But what I'd really like to be able to do is define variables at the top of the file for the colors of my color scheme then use these variables throughout the css file. Is there anyway to do this?

Re: variables in CSS?

Not in CSS only, but you can do dynamic rcss which will basically allow you to use ERB tags in your CSS files.

Railscasts - Free Ruby on Rails Screencasts

Re: variables in CSS?

That's awesome. That's exactly what I was hoping for, and nice to see it can be done with standard rails paradigms. Thanks!