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