File Coverage

blib/lib/Enum/Declare/Common/Color.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 15 15 100.0


line stmt bran cond sub pod time code
1             package Enum::Declare::Common::Color;
2              
3 1     1   87445 use 5.014;
  1         5  
4 1     1   7 use strict;
  1         2  
  1         47  
5 1     1   7 use warnings;
  1         2  
  1         63  
6              
7 1     1   451 use Enum::Declare;
  1         9327  
  1         2608  
8              
9             enum CSS :Str :Type :Export {
10             AliceBlue = "#f0f8ff",
11             AntiqueWhite = "#faebd7",
12             Aqua = "#00ffff",
13             Aquamarine = "#7fffd4",
14             Azure = "#f0ffff",
15             Beige = "#f5f5dc",
16             Bisque = "#ffe4c4",
17             Black = "#000000",
18             BlanchedAlmond = "#ffebcd",
19             Blue = "#0000ff",
20             BlueViolet = "#8a2be2",
21             Brown = "#a52a2a",
22             BurlyWood = "#deb887",
23             CadetBlue = "#5f9ea0",
24             Chartreuse = "#7fff00",
25             Chocolate = "#d2691e",
26             Coral = "#ff7f50",
27             CornflowerBlue = "#6495ed",
28             Cornsilk = "#fff8dc",
29             Crimson = "#dc143c",
30             Cyan = "#00ffff",
31             DarkBlue = "#00008b",
32             DarkCyan = "#008b8b",
33             DarkGoldenRod = "#b8860b",
34             DarkGray = "#a9a9a9",
35             DarkGreen = "#006400",
36             DarkKhaki = "#bdb76b",
37             DarkMagenta = "#8b008b",
38             DarkOliveGreen = "#556b2f",
39             DarkOrange = "#ff8c00",
40             DarkOrchid = "#9932cc",
41             DarkRed = "#8b0000",
42             DarkSalmon = "#e9967a",
43             DarkSeaGreen = "#8fbc8f",
44             DarkSlateBlue = "#483d8b",
45             DarkSlateGray = "#2f4f4f",
46             DarkTurquoise = "#00ced1",
47             DarkViolet = "#9400d3",
48             DeepPink = "#ff1493",
49             DeepSkyBlue = "#00bfff",
50             DimGray = "#696969",
51             DodgerBlue = "#1e90ff",
52             FireBrick = "#b22222",
53             FloralWhite = "#fffaf0",
54             ForestGreen = "#228b22",
55             Fuchsia = "#ff00ff",
56             Gainsboro = "#dcdcdc",
57             GhostWhite = "#f8f8ff",
58             Gold = "#ffd700",
59             GoldenRod = "#daa520",
60             Gray = "#808080",
61             Green = "#008000",
62             GreenYellow = "#adff2f",
63             HoneyDew = "#f0fff0",
64             HotPink = "#ff69b4",
65             IndianRed = "#cd5c5c",
66             Indigo = "#4b0082",
67             Ivory = "#fffff0",
68             Khaki = "#f0e68c",
69             Lavender = "#e6e6fa",
70             LavenderBlush = "#fff0f5",
71             LawnGreen = "#7cfc00",
72             LemonChiffon = "#fffacd",
73             LightBlue = "#add8e6",
74             LightCoral = "#f08080",
75             LightCyan = "#e0ffff",
76             LightGoldenRodYellow = "#fafad2",
77             LightGray = "#d3d3d3",
78             LightGreen = "#90ee90",
79             LightPink = "#ffb6c1",
80             LightSalmon = "#ffa07a",
81             LightSeaGreen = "#20b2aa",
82             LightSkyBlue = "#87cefa",
83             LightSlateGray = "#778899",
84             LightSteelBlue = "#b0c4de",
85             LightYellow = "#ffffe0",
86             Lime = "#00ff00",
87             LimeGreen = "#32cd32",
88             Linen = "#faf0e6",
89             Magenta = "#ff00ff",
90             Maroon = "#800000",
91             MediumAquaMarine = "#66cdaa",
92             MediumBlue = "#0000cd",
93             MediumOrchid = "#ba55d3",
94             MediumPurple = "#9370db",
95             MediumSeaGreen = "#3cb371",
96             MediumSlateBlue = "#7b68ee",
97             MediumSpringGreen = "#00fa9a",
98             MediumTurquoise = "#48d1cc",
99             MediumVioletRed = "#c71585",
100             MidnightBlue = "#191970",
101             MintCream = "#f5fffa",
102             MistyRose = "#ffe4e1",
103             Moccasin = "#ffe4b5",
104             NavajoWhite = "#ffdead",
105             Navy = "#000080",
106             OldLace = "#fdf5e6",
107             Olive = "#808000",
108             OliveDrab = "#6b8e23",
109             Orange = "#ffa500",
110             OrangeRed = "#ff4500",
111             Orchid = "#da70d6",
112             PaleGoldenRod = "#eee8aa",
113             PaleGreen = "#98fb98",
114             PaleTurquoise = "#afeeee",
115             PaleVioletRed = "#db7093",
116             PapayaWhip = "#ffefd5",
117             PeachPuff = "#ffdab9",
118             Peru = "#cd853f",
119             Pink = "#ffc0cb",
120             Plum = "#dda0dd",
121             PowderBlue = "#b0e0e6",
122             Purple = "#800080",
123             RebeccaPurple = "#663399",
124             Red = "#ff0000",
125             RosyBrown = "#bc8f8f",
126             RoyalBlue = "#4169e1",
127             SaddleBrown = "#8b4513",
128             Salmon = "#fa8072",
129             SandyBrown = "#f4a460",
130             SeaGreen = "#2e8b57",
131             SeaShell = "#fff5ee",
132             Sienna = "#a0522d",
133             Silver = "#c0c0c0",
134             SkyBlue = "#87ceeb",
135             SlateBlue = "#6a5acd",
136             SlateGray = "#708090",
137             Snow = "#fffafa",
138             SpringGreen = "#00ff7f",
139             SteelBlue = "#4682b4",
140             Tan = "#d2b48c",
141             Teal = "#008080",
142             Thistle = "#d8bfd8",
143             Tomato = "#ff6347",
144             Turquoise = "#40e0d0",
145             Violet = "#ee82ee",
146             Wheat = "#f5deb3",
147             White = "#ffffff",
148             WhiteSmoke = "#f5f5f5",
149             Yellow = "#ffff00",
150             YellowGreen = "#9acd32"
151             };
152              
153             1;
154              
155             =head1 NAME
156              
157             Enum::Declare::Common::Color - Named CSS colours with hex values
158              
159             =head1 SYNOPSIS
160              
161             use Enum::Declare::Common::Color;
162              
163             say Red; # "#ff0000"
164             say DodgerBlue; # "#1e90ff"
165             say Gold; # "#ffd700"
166              
167             my $meta = CSS();
168             say $meta->count; # 148
169              
170             =head1 ENUMS
171              
172             =head2 CSS :Str :Export
173              
174             148 named CSS colours. Each constant returns its hex colour value.
175              
176             =head1 AUTHOR
177              
178             LNATION C<< >>
179              
180             =head1 LICENSE AND COPYRIGHT
181              
182             Copyright 2026 LNATION. Artistic License 2.0.
183              
184             =cut