|
PmWiki /
WikiStyleColorsColour ExamplesSome color definitions above and beyond what's standard in PmWiki:[1]
Note that the CSS standard defines "darkgrey" as lighter than "grey". Standard PmWiki colours
Hints and Tips:
More Colours Options (external links open in new windows)
CommentsHow do admins define colors for all pages?? Define color keywords and rely on the browser to render the color values. You can use the color keywords for both text color (use $CSSColors = array (
'aliceblue', 'antiquewhite', 'aqua', 'aquamarine', 'azure', 'beige',
'bisque', 'black', 'blanchedalmond', 'blue', 'blueviolet', 'brown',
'burlywood', 'cadetblue', 'chartreuse', 'chocolate', 'coral',
'cornflowerblue', 'cornsilk', 'crimson', 'cyan', 'darkblue',
'darkcyan', 'darkgoldenrod', 'darkgray', 'darkgreen', 'darkgrey',
'darkkhaki', 'darkmagenta', 'darkolivegreen', 'darkorange',
'darkorchid', 'darkred', 'darksalmon', 'darkseagreen',
'darkslateblue', 'darkslategray', 'darkslategrey', 'darkturquoise',
'darkviolet', 'deeppink', 'deepskyblue', 'dimgray', 'dimgrey',
'dodgerblue', 'firebrick', 'floralwhite', 'forestgreen', 'fuchsia',
'gainsboro', 'ghostwhite', 'gold', 'goldenrod', 'gray', 'green',
'greenyellow', 'grey', 'honeydew', 'hotpink', 'indianred', 'indigo',
'ivory', 'khaki', 'lavender', 'lavenderblush', 'lawngreen',
'lemonchiffon', 'lightblue', 'lightcoral', 'lightcyan',
'lightgoldenrodyellow', 'lightgray', 'lightgreen', 'lightgrey',
'lightpink', 'lightsalmon', 'lightseagreen', 'lightskyblue',
'lightslategray', 'lightslategrey', 'lightsteelblue', 'lightyellow',
'lime', 'limegreen', 'linen', 'magenta', 'maroon',
'mediumaquamarine', 'mediumblue', 'mediumorchid', 'mediumpurple',
'mediumseagreen', 'mediumslateblue', 'mediumspringgreen',
'mediumturquoise', 'mediumvioletred', 'midnightblue', 'mintcream',
'mistyrose', 'moccasin', 'navajowhite', 'navy', 'oldlace', 'olive',
'olivedrab', 'orange', 'orangered', 'orchid', 'palegoldenrod',
'palegreen', 'paleturquoise', 'palevioletred', 'papayawhip',
'peachpuff', 'peru', 'pink', 'plum', 'powderblue', 'purple',
'rebeccapurple', 'red', 'rosybrown', 'royalblue', 'saddlebrown',
'salmon', 'sandybrown', 'seagreen', 'seashell', 'sienna', 'silver',
'skyblue', 'slateblue', 'slategray', 'slategrey', 'snow',
'springgreen', 'steelblue', 'tan', 'teal', 'thistle', 'tomato',
'turquoise', 'violet', 'wheat', 'white', 'whitesmoke', 'yellow',
'yellowgreen'
);
foreach($CSSColors as $c) {
$WikiStyle[$c]['color'] = $c;
$WikiStyle["bg$c"]['background-color'] = $c;
}
Alternatively define the required colors in the local configuration file. (See Custom WikiStyles for details). For example add the following line(s) to $WikiStyle['hardblue'] ['color'] ='#0000cc'; $WikiStyle['darkgreen'] ['color'] ='#006600'; $WikiStyle['bluegrass'] ['color'] ='#009999'; $WikiStyle['teal'] ['color'] ='#008080'; $WikiStyle['darkpurple'] ['color'] ='#660066'; $WikiStyle['perwinkle'] ['color'] ='#6600cc'; $WikiStyle['darkgrey'] ['color'] ='#a9a9a9'; $WikiStyle['mistgreen'] ['color'] ='#669966'; $WikiStyle['slategreen'] ['color'] ='#669999'; $WikiStyle['purple'] ['color'] ='#800080'; $WikiStyle['lightpurple']['color'] ='#9966cc'; $WikiStyle['lightgrey'] ['color'] ='#d3d3d3'; $WikiStyle['lightblue'] ['color'] ='#add8e6'; $WikiStyle['springgreen']['color'] ='#00ff7f'; $WikiStyle['magenta'] ['color'] ='#ff00ff'; $WikiStyle['burntorange']['color'] ='#cc6633'; $WikiStyle['grey'] ['color'] ='#808080'; $WikiStyle['lightgreen'] ['color'] ='#90ee90'; $WikiStyle['pink'] ['color'] ='#ffc0cb'; $WikiStyle['lightred'] ['color'] ='#ff6666'; $WikiStyle['orange'] ['color'] ='#ffa500'; $WikiStyle['lightorange']['color'] ='#ff9966'; $WikiStyle['gold'] ['color'] ='#ffd700'; $WikiStyle['yellow'] ['color'] ='#ffff00'; This page may have a more recent version on pmwiki.org: PmWiki:WikiStyleColors, and a talk page: PmWiki:WikiStyleColors-Talk. |