The manakai project

Web::CSS::Colors

CSS Color Definitions

SYNOPSIS

  use Web::CSS::Colors;
  my $rgb = $Web::CSS::Colors::X11Colors->{yellow};
  my $found = $Web::CSS::Colors::SystemColors->{activeborder};

DESCRIPTION

The Web::CSS::Colors module contains definitions for CSS color names.

VARIABLES

$Web::CSS::Colors::X11Colors = {$name => [$r, $g, $b], ...}

A hash reference, which contains so-called X11 color keywords and their RGB definitions as described in the CSS Color specification. Color keywords and RGBs are represented as hash keys and values, where values are array references representing red-, green-, and blue-component of the RGB. Keywords are in the lowercase canonical form. Note that HTML's 12 color keywords, as well as CSS 2.1's orange keyword, are subset of the X11 color keyword set.

$Web::CSS::Colors::SystemColors = {$name => true}

A hash reference, which contains CSS system color keywords as defined in the CSS Color specification. Color keywords are represented as hash keys, where values are always true. Keywords are in the lowercase canonical form.

SPECIFICATION

CSSCOLOR

CSS Color <http://dev.w3.org/csswg/css-color/>.

SEE ALSO

Web::CSS::Values.

AUTHOR

Wakaba <wakaba@suikawiki.org>.

LICENSE

Copyright 2007-2013 Wakaba <wakaba@suikawiki.org>.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.