Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Variables for Theme Colors

by mdillon (Priest)
on Sep 16, 2000 at 21:39 UTC ( [id://32820]=monkdiscuss: print w/replies, xml ) Need Help??

whenever i see a post that uses color, one of two things usually happens 1) i cringe, or 2) i am unable to read the text because of contrast problems with my theme (i use the dark theme while logged in).


Read More...

Replies are listed 'Best First'.
RE: Variables for Theme Colors
by mdillon (Priest) on Sep 18, 2000 at 05:08 UTC
    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.

      The use of color in posts has been discussed before, and if I remember correctly, the general feeling was that in general it should be discouraged.

      So although in principle I like your idea, I wonder: will the people who -against common opinion- still use color go to the trouble of figuring out how to use whatever new scheme we come up with, so that it is readable by everyone? I doubt it.

      I don't remember what the comments about color were when the discussion about restricting HTML in posts occurred, but it seems to me that a better solution may be to filter out color tags altogether.

      I haven't seen enough people using color to think that this is a real problem yet, though.

      --ZZamboni

        i think you may be right. this idea is probably more trouble than it is worth. however, as much as i personally dislike most uses of color in top-level and reply nodes (it doesn't really bother me on home nodes), i don't think that getting rid of all color is desirable yet (or necessary, as you've observed).

        one thing that quite possibly should be fixed is the Saints in Our Book page. that page is largely unreadable with the dark theme, since both the text color and the background are gray (thank goodness for visual highlighting of selections (too bad it isn't XOR'd so that i could see my selection on a yellow page)).

      My initial thoughts are that it would be Yet Another Markup To Learn, if powerful enough to prevent color space problems.   Perhaps less of a problem to y'all who are real coders and already work fluently in multiple programming languages, but my little router-and-switch-brain segfaults too easy.

      But I haven't really thought this out to any degree, so... I could just be full of beans. {grin}
          cheers,
          ybiC

      I vote for just removing <FONT> from the official Perl Monks Approved HTML tags list. I've never seen a legitimate use for them, they just lead to abuse and ugliness.

        No, I have used font to create slightly smaller text for footnotes. I don't see how that creates a problem.

      how 'expensive' would it be to allow each monk to specify the option of stripping <font> tags from user input?

      This is a serious question, btw; the idea is that the perlmonks code could involve a user-configurable output filter.

      "He's got about as much personality as a loaf of bread" -- Wally Pleasant, She's in love with a Geek

RE: Variables for Theme Colors
by footpad (Abbot) on Sep 22, 2000 at 08:13 UTC
    Frankly, I tend to hiss when I see overuseof color. I like the idea of the self-configurable color scheme, but there's only one that prints well...and that only barely. imho, of course. whaddyI know? I'm a self confessed newbeeeee.... -- f

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: monkdiscuss [id://32820]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-03-19 05:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found