1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
<%
# This example script uses Apache::ASP, which allows embedding perl in HTML
# or other text files, see http://search.cpan.org/perldoc?Apache::ASP
use Color::Calc::WWW;
$Response->{'ContentType'} = 'text/css; charset=utf-8';
$col1 = '#EEE';
$col2 = '#908';
$bkg = $col1;
$fg = color_contrast(color_grey($bkg));
$bk2 = $col2;
$fg2 = color_contrast(color_grey($bk2));
%>
body {
background: <%= $bkg %>;
color: <%= $fg %>;
}
h1 {
background: <%= $bk2 %>;
color: <%= $fg2 %>;
}
|