> > On 12/23/05, Bob Ippolito <[EMAIL PROTECTED]> wrote: >> > I don't know about you, but I regularly wish I could set variables in >> > CSS, mostly for colors. Inman has a php package that does this and >> > I've seen it mentioned in several places besides just on his site. >> >> When was the last time you wanted to do this? What was the use case? >> If >> there are just a few different colors, you can always use separate css >> files (either just copies, or three files.. a base file and two with >> @imports and the custom colors). > > I have had 800-1k line css files using four or five colors. I don't > want variables so much as constants so I don't have to go through the > entire file changing colors. You can't always just do a search and > replace (unless you confirm every step, and that can get tedious). > It's the same principle as #defining a constant in a C file.
I'm sure you could do this statically rather easily if you simply used more than one class in the document, or used more advanced features of CSS. -bob

