http://qs321.pair.com?node_id=32898


in reply to Variables for Theme Colors

since the body of my discussion topic was lost to a bug that vroom says should now be fixed, i'll reproduce my original text here:

so, here's my idea: along the lines of the other custom markup provided on Perl Monks, like <CODE> and now <READMORE>, i propose that we be allowed the possibility of accessing the colors for the current theme as variables through some sort of extended HTML.

my initial idea was to use entities, for example &pm.bgcolor1;, &pm.fgcolor1;, &pm.bgcolor2;, or &pm.fgcolor2;. this is not the optimal solution, since the theme colors seem to be divided into primary and secondary sets which should ideally be kept together. but, without the site on the whole using CSS and doing something like <TABLE CLASS="pm_secondary">, i can't see how to do it.

the whole idea may simply be infeasible or simply too unwieldy, so i'm interested in getting some feedback.