Sorry to resurrect a five-month-old thread, but this is an important discussion (even if the original poster deserted us), and some good points were made, so I thought I'd tie into it rather than starting a separate thread. I found it via a search, because I had the same question.
In my case I'm making Joomla sites, so I can't (easily) do the colors using PHP or Javascript, or even using multiple classes. The best solution I've seen so far is what j4606 suggested, defining the colors of all the elements/classes in one spot. The downside is that to see all the attributes of an element/class, one needs to know to look in multiple places - the Joomla template I'm starting with already has positioning (margins, etc.) and text attributes (font, etc.) in separate CSS files, so I would be adding a third layer of complexity. But I'm tired of copy/pasting hex colors all over several CSS files, and thinking about the nightmare it will be if I later want to change the color scheme.
Anyway, here's my question: When we say that CSS cascades, is it possible to use a class inside the definition of another one? What I mean is something like this (yes, this is "pseudo-code" - my imagination):
Code:
.myclass1 { color:#0000FF }
.myclass2 { class:myclass1; font-size:1.2em }
That would open up a lot of possibilities, not just for colors but all kinds of things.