Color Examples
Some color definitions above and beyond what's standard in PmWiki:
%color=#0000cc define=hdblue% %color=#006600 define=dkgreen% %color=#009999 define=bluegrass% %color=#33ffcc define=teal% %color=#660066 define=dkpurple% %color=#6600cc define=perwi% %color=#666666 define=dkgrey% %color=#669966 define=mistgreen% %color=#669999 define=slategr% %color=#990099 define=purple% %color=#9966cc define=ltpurple% %color=#999999 define=ltgrey% %color=#99ccff define=ltblue% %color=#99ff33 define=springgreen% %color=#cc33cc define=magenta% %color=#cc6633 define=btorange% %color=#cccccc define=grey% %color=#ccffcc define=ltgreen% %color=#ff3399 define=pink% %color=#ff6666 define=ltred% %color=#ff9900 define=orange% %color=#ff9966 define=ltorange% %color=#ffbb66 define=gold% %color=#ffff00 define=yellow% |
|
| Item | Markup | Text |
|---|---|---|
| Red | %red%RED%% | RED |
| Light Red | %ltred%Light Red%% | Light Red |
| Pink | %pink%Pink%% | Pink |
| Blue | %blue%Blue%% | Blue |
| Light Blue | %ltblue%Light Blue%% | Light Blue |
| BlueGrass | %bluegrass%Bluegrass%% | Bluegrass |
| Hard Blue | %hdblue%Hard Blue%% | Hard Blue |
| Navy | %navy%Navy%% | Navy |
| Teal | %teal%Teal%% | Teal |
| Green | %green%Green%% | Green |
| Light Green | %ltgreen%Light Green%% | Light Green |
| Spring Green | %springgreen%Spring Green%% | Spring Green |
| Mist Green | %mistgreen%Mist Green%% | Mist Green |
| Dark Green | %dkgreen%Dark Green%% | Dark Green |
| Slate Green | %slategr%Slate Green%% | Slate Green |
| Purple | %purple%Purple%% | Purple |
| Light Purple | %ltpurple%Light Purple%% | Light Purple |
| Dark Purple | %dkpurple%Dark Purple%% | Dark Purple |
| Perriwinkle | %perwi%Perwi%% | Perwi |
| Magenta | %magenta%Magenta%% | Magenta |
| Yellow | %yellow%Yellow%% | Yellow |
| Gold | %gold%Gold%% | Gold |
| Orange | %orange%Orange%% | Orange |
| Burnt Orange | %btorange%Burnt Orange%% | Burnt Orange |
| Light Orange | %ltorange%Light Orange%% | Light Orange |
| Maroon | %maroon%Maroon%% | Maroon |
| Grey | %grey%Grey%% | Grey |
| Dark Grey | %dkgrey%Dark Grey%% | Dark Grey |
| Light Grey | %ltgrey%Light Grey%% | Light Grey |
Hints and Tips:
- You need not "define" the hexadecimal colors in order to use them; it works just as well to set %color=#cc33cc% before some text as to "define" it and use the definition. The definition is convenient if you're going to use the color more than once.
- Use lowercase characters - prevents color numbers being mis-read as Wiki text.
- Remember that there is a slight difference between the way colour is rendered on Windows and Mac. - note: What does this mean?
- Text color always looks brighter than background color, because the white background dominates the overall brightness. IOW text colors should be darker than background colors to achieve the same impression of brightness (unless, of course, your wiki has a reverse video color scheme).
- Too many colours on the same page is distracting. Use them sparingly.
- You can hide text by making it white-on-white. It's a poor obfuscation technique though: the HTML source code will give it away, and if a savvy visitor marks the text, he'll see it anyway. Still, some single-author sites use it for making the Edit link unobtrusive.
More Colors Options (external links open in new windows)
- 4096 Color Wheel at Mandarin Design
- Websafe Color Chart at Mandarin Design
- http://www.w3schools.com/html/html_colors.asp
- Pixie download site - install and run this tiny Windows utility, and "simply point to a colour and it will tell you the hex, RGB, HTML, CMYK and HSV values of that colour." (on Macintosh just open TextEdit and use shift+command+c)
Comments
How do admins define the colors for all pages??
Define the required colors in the local configuration file. (See Custom WikiStyles? for details). For example add the following line(s) to local/config.php:
$WikiStyle['hdblue']['color']='#0000cc';
$WikiStyle['dkgreen']['color']='#006600';
$WikiStyle['bluegrass']['color']='#009999';
$WikiStyle['teal']['color']='#33ffcc';
$WikiStyle['dkpurple']['color']='#660066';
$WikiStyle['perwi']['color']='#6600cc';
$WikiStyle['dkgrey']['color']='#666666';
$WikiStyle['mistgreen']['color']='#669966';
$WikiStyle['slategr']['color']='#669999';
$WikiStyle['purple']['color']='#990099';
$WikiStyle['ltpurple']['color']='#9966cc';
$WikiStyle['ltgrey']['color']='#999999';
$WikiStyle['ltblue']['color']='#99ccff';
$WikiStyle['springgreen']['color']='#99ff33';
$WikiStyle['magenta']['color']='#cc33cc';
$WikiStyle['btorange']['color']='#cc6633';
$WikiStyle['grey']['color']='#cccccc';
$WikiStyle['ltgreen']['color']='#ccffcc';
$WikiStyle['pink']['color']='#ff3399';
$WikiStyle['ltred']['color']='#ff6666';
$WikiStyle['orange']['color']='#ff9900';
$WikiStyle['ltorange']['color']='#ff9966';
$WikiStyle['gold']['color']='#ffbb66';
$WikiStyle['yellow']['color']='#ffff00';
