> On 12/22/05, Bob Ippolito <[EMAIL PROTECTED]> wrote: >> It's a pretty bad idea to generate CSS or JavaScript anyway. Why would >> you ever need to? > > 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). If it's really dynamic every page load then the css declarations are probably better off ending up in the html anyway. That way you can cache the static parts of the css and the dynamic parts definitely won't get cached since they're not in a separate file. -bob

