1 | |
2 | #ifndef SASS_COLOR_MAPS_H |
3 | #define SASS_COLOR_MAPS_H |
4 | |
5 | #include <map> |
6 | #include "ast.hpp" |
7 | |
8 | namespace Sass { |
9 | |
10 | namespace ColorNames |
11 | { |
12 | extern const char aliceblue[]; |
13 | extern const char antiquewhite[]; |
14 | extern const char cyan[]; |
15 | extern const char aqua[]; |
16 | extern const char aquamarine[]; |
17 | extern const char azure[]; |
18 | extern const char beige[]; |
19 | extern const char bisque[]; |
20 | extern const char black[]; |
21 | extern const char blanchedalmond[]; |
22 | extern const char blue[]; |
23 | extern const char blueviolet[]; |
24 | extern const char brown[]; |
25 | extern const char burlywood[]; |
26 | extern const char cadetblue[]; |
27 | extern const char chartreuse[]; |
28 | extern const char chocolate[]; |
29 | extern const char coral[]; |
30 | extern const char cornflowerblue[]; |
31 | extern const char cornsilk[]; |
32 | extern const char crimson[]; |
33 | extern const char darkblue[]; |
34 | extern const char darkcyan[]; |
35 | extern const char darkgoldenrod[]; |
36 | extern const char darkgray[]; |
37 | extern const char darkgrey[]; |
38 | extern const char darkgreen[]; |
39 | extern const char darkkhaki[]; |
40 | extern const char darkmagenta[]; |
41 | extern const char darkolivegreen[]; |
42 | extern const char darkorange[]; |
43 | extern const char darkorchid[]; |
44 | extern const char darkred[]; |
45 | extern const char darksalmon[]; |
46 | extern const char darkseagreen[]; |
47 | extern const char darkslateblue[]; |
48 | extern const char darkslategray[]; |
49 | extern const char darkslategrey[]; |
50 | extern const char darkturquoise[]; |
51 | extern const char darkviolet[]; |
52 | extern const char deeppink[]; |
53 | extern const char deepskyblue[]; |
54 | extern const char dimgray[]; |
55 | extern const char dimgrey[]; |
56 | extern const char dodgerblue[]; |
57 | extern const char firebrick[]; |
58 | extern const char floralwhite[]; |
59 | extern const char forestgreen[]; |
60 | extern const char magenta[]; |
61 | extern const char fuchsia[]; |
62 | extern const char gainsboro[]; |
63 | extern const char ghostwhite[]; |
64 | extern const char gold[]; |
65 | extern const char goldenrod[]; |
66 | extern const char gray[]; |
67 | extern const char grey[]; |
68 | extern const char green[]; |
69 | extern const char greenyellow[]; |
70 | extern const char honeydew[]; |
71 | extern const char hotpink[]; |
72 | extern const char indianred[]; |
73 | extern const char indigo[]; |
74 | extern const char ivory[]; |
75 | extern const char khaki[]; |
76 | extern const char lavender[]; |
77 | extern const char lavenderblush[]; |
78 | extern const char lawngreen[]; |
79 | extern const char lemonchiffon[]; |
80 | extern const char lightblue[]; |
81 | extern const char lightcoral[]; |
82 | extern const char lightcyan[]; |
83 | extern const char lightgoldenrodyellow[]; |
84 | extern const char lightgray[]; |
85 | extern const char lightgrey[]; |
86 | extern const char lightgreen[]; |
87 | extern const char lightpink[]; |
88 | extern const char lightsalmon[]; |
89 | extern const char lightseagreen[]; |
90 | extern const char lightskyblue[]; |
91 | extern const char lightslategray[]; |
92 | extern const char lightslategrey[]; |
93 | extern const char lightsteelblue[]; |
94 | extern const char lightyellow[]; |
95 | extern const char lime[]; |
96 | extern const char limegreen[]; |
97 | extern const char linen[]; |
98 | extern const char maroon[]; |
99 | extern const char mediumaquamarine[]; |
100 | extern const char mediumblue[]; |
101 | extern const char mediumorchid[]; |
102 | extern const char mediumpurple[]; |
103 | extern const char mediumseagreen[]; |
104 | extern const char mediumslateblue[]; |
105 | extern const char mediumspringgreen[]; |
106 | extern const char mediumturquoise[]; |
107 | extern const char mediumvioletred[]; |
108 | extern const char midnightblue[]; |
109 | extern const char mintcream[]; |
110 | extern const char mistyrose[]; |
111 | extern const char moccasin[]; |
112 | extern const char navajowhite[]; |
113 | extern const char navy[]; |
114 | extern const char oldlace[]; |
115 | extern const char olive[]; |
116 | extern const char olivedrab[]; |
117 | extern const char orange[]; |
118 | extern const char orangered[]; |
119 | extern const char orchid[]; |
120 | extern const char palegoldenrod[]; |
121 | extern const char palegreen[]; |
122 | extern const char paleturquoise[]; |
123 | extern const char palevioletred[]; |
124 | extern const char papayawhip[]; |
125 | extern const char peachpuff[]; |
126 | extern const char peru[]; |
127 | extern const char pink[]; |
128 | extern const char plum[]; |
129 | extern const char powderblue[]; |
130 | extern const char purple[]; |
131 | extern const char red[]; |
132 | extern const char rosybrown[]; |
133 | extern const char royalblue[]; |
134 | extern const char saddlebrown[]; |
135 | extern const char salmon[]; |
136 | extern const char sandybrown[]; |
137 | extern const char seagreen[]; |
138 | extern const char seashell[]; |
139 | extern const char sienna[]; |
140 | extern const char silver[]; |
141 | extern const char skyblue[]; |
142 | extern const char slateblue[]; |
143 | extern const char slategray[]; |
144 | extern const char slategrey[]; |
145 | extern const char snow[]; |
146 | extern const char springgreen[]; |
147 | extern const char steelblue[]; |
148 | extern const char tan[]; |
149 | extern const char teal[]; |
150 | extern const char thistle[]; |
151 | extern const char tomato[]; |
152 | extern const char turquoise[]; |
153 | extern const char violet[]; |
154 | extern const char wheat[]; |
155 | extern const char white[]; |
156 | extern const char whitesmoke[]; |
157 | extern const char yellow[]; |
158 | extern const char yellowgreen[]; |
159 | extern const char rebeccapurple[]; |
160 | extern const char transparent[]; |
161 | } |
162 | |
163 | namespace Colors { |
164 | extern const Color_RGBA aliceblue; |
165 | extern const Color_RGBA antiquewhite; |
166 | extern const Color_RGBA cyan; |
167 | extern const Color_RGBA aqua; |
168 | extern const Color_RGBA aquamarine; |
169 | extern const Color_RGBA azure; |
170 | extern const Color_RGBA beige; |
171 | extern const Color_RGBA bisque; |
172 | extern const Color_RGBA black; |
173 | extern const Color_RGBA blanchedalmond; |
174 | extern const Color_RGBA blue; |
175 | extern const Color_RGBA blueviolet; |
176 | extern const Color_RGBA brown; |
177 | extern const Color_RGBA burlywood; |
178 | extern const Color_RGBA cadetblue; |
179 | extern const Color_RGBA chartreuse; |
180 | extern const Color_RGBA chocolate; |
181 | extern const Color_RGBA coral; |
182 | extern const Color_RGBA cornflowerblue; |
183 | extern const Color_RGBA cornsilk; |
184 | extern const Color_RGBA crimson; |
185 | extern const Color_RGBA darkblue; |
186 | extern const Color_RGBA darkcyan; |
187 | extern const Color_RGBA darkgoldenrod; |
188 | extern const Color_RGBA darkgray; |
189 | extern const Color_RGBA darkgrey; |
190 | extern const Color_RGBA darkgreen; |
191 | extern const Color_RGBA darkkhaki; |
192 | extern const Color_RGBA darkmagenta; |
193 | extern const Color_RGBA darkolivegreen; |
194 | extern const Color_RGBA darkorange; |
195 | extern const Color_RGBA darkorchid; |
196 | extern const Color_RGBA darkred; |
197 | extern const Color_RGBA darksalmon; |
198 | extern const Color_RGBA darkseagreen; |
199 | extern const Color_RGBA darkslateblue; |
200 | extern const Color_RGBA darkslategray; |
201 | extern const Color_RGBA darkslategrey; |
202 | extern const Color_RGBA darkturquoise; |
203 | extern const Color_RGBA darkviolet; |
204 | extern const Color_RGBA deeppink; |
205 | extern const Color_RGBA deepskyblue; |
206 | extern const Color_RGBA dimgray; |
207 | extern const Color_RGBA dimgrey; |
208 | extern const Color_RGBA dodgerblue; |
209 | extern const Color_RGBA firebrick; |
210 | extern const Color_RGBA floralwhite; |
211 | extern const Color_RGBA forestgreen; |
212 | extern const Color_RGBA magenta; |
213 | extern const Color_RGBA fuchsia; |
214 | extern const Color_RGBA gainsboro; |
215 | extern const Color_RGBA ghostwhite; |
216 | extern const Color_RGBA gold; |
217 | extern const Color_RGBA goldenrod; |
218 | extern const Color_RGBA gray; |
219 | extern const Color_RGBA grey; |
220 | extern const Color_RGBA green; |
221 | extern const Color_RGBA greenyellow; |
222 | extern const Color_RGBA honeydew; |
223 | extern const Color_RGBA hotpink; |
224 | extern const Color_RGBA indianred; |
225 | extern const Color_RGBA indigo; |
226 | extern const Color_RGBA ivory; |
227 | extern const Color_RGBA khaki; |
228 | extern const Color_RGBA lavender; |
229 | extern const Color_RGBA lavenderblush; |
230 | extern const Color_RGBA lawngreen; |
231 | extern const Color_RGBA lemonchiffon; |
232 | extern const Color_RGBA lightblue; |
233 | extern const Color_RGBA lightcoral; |
234 | extern const Color_RGBA lightcyan; |
235 | extern const Color_RGBA lightgoldenrodyellow; |
236 | extern const Color_RGBA lightgray; |
237 | extern const Color_RGBA lightgrey; |
238 | extern const Color_RGBA lightgreen; |
239 | extern const Color_RGBA lightpink; |
240 | extern const Color_RGBA lightsalmon; |
241 | extern const Color_RGBA lightseagreen; |
242 | extern const Color_RGBA lightskyblue; |
243 | extern const Color_RGBA lightslategray; |
244 | extern const Color_RGBA lightslategrey; |
245 | extern const Color_RGBA lightsteelblue; |
246 | extern const Color_RGBA lightyellow; |
247 | extern const Color_RGBA lime; |
248 | extern const Color_RGBA limegreen; |
249 | extern const Color_RGBA linen; |
250 | extern const Color_RGBA maroon; |
251 | extern const Color_RGBA mediumaquamarine; |
252 | extern const Color_RGBA mediumblue; |
253 | extern const Color_RGBA mediumorchid; |
254 | extern const Color_RGBA mediumpurple; |
255 | extern const Color_RGBA mediumseagreen; |
256 | extern const Color_RGBA mediumslateblue; |
257 | extern const Color_RGBA mediumspringgreen; |
258 | extern const Color_RGBA mediumturquoise; |
259 | extern const Color_RGBA mediumvioletred; |
260 | extern const Color_RGBA midnightblue; |
261 | extern const Color_RGBA mintcream; |
262 | extern const Color_RGBA mistyrose; |
263 | extern const Color_RGBA moccasin; |
264 | extern const Color_RGBA navajowhite; |
265 | extern const Color_RGBA navy; |
266 | extern const Color_RGBA oldlace; |
267 | extern const Color_RGBA olive; |
268 | extern const Color_RGBA olivedrab; |
269 | extern const Color_RGBA orange; |
270 | extern const Color_RGBA orangered; |
271 | extern const Color_RGBA orchid; |
272 | extern const Color_RGBA palegoldenrod; |
273 | extern const Color_RGBA palegreen; |
274 | extern const Color_RGBA paleturquoise; |
275 | extern const Color_RGBA palevioletred; |
276 | extern const Color_RGBA papayawhip; |
277 | extern const Color_RGBA peachpuff; |
278 | extern const Color_RGBA peru; |
279 | extern const Color_RGBA pink; |
280 | extern const Color_RGBA plum; |
281 | extern const Color_RGBA powderblue; |
282 | extern const Color_RGBA purple; |
283 | extern const Color_RGBA red; |
284 | extern const Color_RGBA rosybrown; |
285 | extern const Color_RGBA royalblue; |
286 | extern const Color_RGBA saddlebrown; |
287 | extern const Color_RGBA salmon; |
288 | extern const Color_RGBA sandybrown; |
289 | extern const Color_RGBA seagreen; |
290 | extern const Color_RGBA seashell; |
291 | extern const Color_RGBA sienna; |
292 | extern const Color_RGBA silver; |
293 | extern const Color_RGBA skyblue; |
294 | extern const Color_RGBA slateblue; |
295 | extern const Color_RGBA slategray; |
296 | extern const Color_RGBA slategrey; |
297 | extern const Color_RGBA snow; |
298 | extern const Color_RGBA springgreen; |
299 | extern const Color_RGBA steelblue; |
300 | extern const Color_RGBA tan; |
301 | extern const Color_RGBA teal; |
302 | extern const Color_RGBA thistle; |
303 | extern const Color_RGBA tomato; |
304 | extern const Color_RGBA turquoise; |
305 | extern const Color_RGBA violet; |
306 | extern const Color_RGBA wheat; |
307 | extern const Color_RGBA white; |
308 | extern const Color_RGBA whitesmoke; |
309 | extern const Color_RGBA yellow; |
310 | extern const Color_RGBA yellowgreen; |
311 | extern const Color_RGBA rebeccapurple; |
312 | extern const Color_RGBA transparent; |
313 | } |
314 | |
315 | const Color_RGBA* name_to_color(const char*); |
316 | const Color_RGBA* name_to_color(const sass::string&); |
317 | const char* color_to_name(const int); |
318 | const char* color_to_name(const Color_RGBA&); |
319 | const char* color_to_name(const double); |
320 | |
321 | } |
322 | |
323 | #endif |
324 | |