1 | const borderRadius0 = "0";
|
2 | const borderRadius10 = "3px";
|
3 | const borderRadius20 = "4px";
|
4 | const borderRadius30 = "8px";
|
5 | const borderRadiusCircle = "50%";
|
6 | const borderWidth0 = "0";
|
7 | const borderWidth10 = "1px";
|
8 | const borderWidth20 = "2px";
|
9 | const colorBackground = "#f3f4f6";
|
10 | const colorBackgroundBody = "#ffffff";
|
11 | const colorBackgroundBrand = "#233659";
|
12 | const colorBackgroundBrandHighlight = "#f22f46";
|
13 | const colorBackgroundDestructive = "#ac1e16";
|
14 | const colorBackgroundDestructiveDark = "#940800";
|
15 | const colorBackgroundDestructiveDarker = "#700600";
|
16 | const colorBackgroundDestructiveLight = "#e8534a";
|
17 | const colorBackgroundDestructiveLighter = "#ff8c85";
|
18 | const colorBackgroundDestructiveLightest = "#ffe9e7";
|
19 | const colorBackgroundError = "#ac1e16";
|
20 | const colorBackgroundErrorLightest = "#ffe9e7";
|
21 | const colorBackgroundInverse = "#4f5355";
|
22 | const colorBackgroundPrimary = "#3368fa";
|
23 | const colorBackgroundPrimaryDark = "#003adb";
|
24 | const colorBackgroundPrimaryDarker = "#002ca6";
|
25 | const colorBackgroundPrimaryLight = "#85a5ff";
|
26 | const colorBackgroundPrimaryLighter = "#baccff";
|
27 | const colorBackgroundPrimaryLightest = "#f5f8ff";
|
28 | const colorBackgroundRowStriped = "#f9fafb";
|
29 | const colorBackgroundSuccess = "#00994a";
|
30 | const colorBackgroundSuccessLightest = "#e0ffef";
|
31 | const colorBackgroundWarning = "#e46216";
|
32 | const colorBackgroundWarningLightest = "#ffecd8";
|
33 | const colorBorder = "#b6bfce";
|
34 | const colorBorderDark = "#9ca7ba";
|
35 | const colorBorderDestructive = "#ce241a";
|
36 | const colorBorderDestructiveDark = "#ac1e16";
|
37 | const colorBorderDestructiveDarker = "#940800";
|
38 | const colorBorderDestructiveLight = "#e8534a";
|
39 | const colorBorderDestructiveLighter = "#ff8c85";
|
40 | const colorBorderError = "#ac1e16";
|
41 | const colorBorderErrorLightest = "#ffe9e7";
|
42 | const colorBorderInput = "#9ca7ba";
|
43 | const colorBorderInputFocus = "#003adb";
|
44 | const colorBorderInputHover = "#003adb";
|
45 | const colorBorderLight = "#ccd2dc";
|
46 | const colorBorderPrimary = "#3368fa";
|
47 | const colorBorderPrimaryDark = "#003adb";
|
48 | const colorBorderPrimaryDarker = "#002ca6";
|
49 | const colorBorderPrimaryLight = "#85a5ff";
|
50 | const colorBorderPrimaryLighter = "#baccff";
|
51 | const colorBorderSuccess = "#00994a";
|
52 | const colorBorderSuccessLightest = "#e0ffef";
|
53 | const colorBorderWarning = "#e46216";
|
54 | const colorBorderWarningLightest = "#ffecd8";
|
55 | const colorBrand = "#08152c";
|
56 | const colorBrandHighlight = "#3368fa";
|
57 | const colorGray0 = "#ffffff";
|
58 | const colorGray10 = "#f9fafb";
|
59 | const colorGray100 = "#08152c";
|
60 | const colorGray20 = "#f3f4f6";
|
61 | const colorGray30 = "#e5e7ec";
|
62 | const colorGray40 = "#ccd2dc";
|
63 | const colorGray50 = "#b6bfce";
|
64 | const colorGray60 = "#9ca7ba";
|
65 | const colorGray70 = "#76859e";
|
66 | const colorGray80 = "#475672";
|
67 | const colorGray90 = "#1d2944";
|
68 | const colorText = "#08152c";
|
69 | const colorTextBrandHighlight = "#f22f46";
|
70 | const colorTextBrandInverse = "#ffffff";
|
71 | const colorTextError = "#ac1e16";
|
72 | const colorTextIcon = "#08152c";
|
73 | const colorTextInverse = "#ffffff";
|
74 | const colorTextInverseWeak = "#9ca7ba";
|
75 | const colorTextLabel = "#08152c";
|
76 | const colorTextLink = "#3368fa";
|
77 | const colorTextLinkDark = "#002ca6";
|
78 | const colorTextLinkDarker = "#001f75";
|
79 | const colorTextLinkDestructive = "#ce241a";
|
80 | const colorTextLinkDestructiveDark = "#ac1e16";
|
81 | const colorTextLinkDestructiveDarker = "#940800";
|
82 | const colorTextLinkDestructiveLight = "#e8534a";
|
83 | const colorTextLinkLight = "#85a5ff";
|
84 | const colorTextPlaceholder = "#76859e";
|
85 | const colorTextSuccess = "#00994a";
|
86 | const colorTextWarning = "#e46216";
|
87 | const colorTextWeak = "#76859e";
|
88 | const fontFamilyCode = "'Fira Mono', 'Courier New', Courier, monospace";
|
89 | const fontFamilyText = "'Colfax', Helvetica, Arial, sans-serif";
|
90 | const fontSize10 = "0.625rem";
|
91 | const fontSize100 = "2.5rem";
|
92 | const fontSize110 = "3rem";
|
93 | const fontSize20 = "0.75rem";
|
94 | const fontSize30 = "0.875rem";
|
95 | const fontSize40 = "1rem";
|
96 | const fontSize50 = "1.125rem";
|
97 | const fontSize60 = "1.25rem";
|
98 | const fontSize70 = "1.5rem";
|
99 | const fontSize80 = "1.75rem";
|
100 | const fontSize90 = "2rem";
|
101 | const fontWeightBold = "700";
|
102 | const fontWeightLight = "300";
|
103 | const fontWeightMedium = "500";
|
104 | const fontWeightNormal = "400";
|
105 | const fontWeightSemibold = "600";
|
106 | const lineHeight10 = "1rem";
|
107 | const lineHeight100 = "3.25rem";
|
108 | const lineHeight110 = "3.75rem";
|
109 | const lineHeight20 = "1.25rem";
|
110 | const lineHeight30 = "1.5rem";
|
111 | const lineHeight40 = "1.75rem";
|
112 | const lineHeight50 = "1.75rem";
|
113 | const lineHeight60 = "1.75rem";
|
114 | const lineHeight70 = "2rem";
|
115 | const lineHeight80 = "2.25rem";
|
116 | const lineHeight90 = "2.5rem";
|
117 | const shadowCard = "0 2px 4px 0 rgba(40, 42, 43, 0.3)";
|
118 | const shadowFocus = "0 0 0 4px rgba(0,117,195,0.5)";
|
119 | const size0 = "0";
|
120 | const size10 = "5.5rem";
|
121 | const size100 = "64rem";
|
122 | const size110 = "70.5rem";
|
123 | const size120 = "77rem";
|
124 | const size20 = "12rem";
|
125 | const size30 = "18.5rem";
|
126 | const size40 = "25rem";
|
127 | const size50 = "31.5rem";
|
128 | const size60 = "38rem";
|
129 | const size70 = "44.5rem";
|
130 | const size80 = "51rem";
|
131 | const size90 = "57.5rem";
|
132 | const sizeIcon10 = "1rem";
|
133 | const sizeIcon20 = "1.5rem";
|
134 | const sizeIcon30 = "2rem";
|
135 | const space0 = "0";
|
136 | const space10 = "0.125rem";
|
137 | const space100 = "2.25rem";
|
138 | const space110 = "2.5rem";
|
139 | const space120 = "2.75rem";
|
140 | const space130 = "3rem";
|
141 | const space140 = "3.25rem";
|
142 | const space150 = "3.5rem";
|
143 | const space160 = "3.75rem";
|
144 | const space170 = "4rem";
|
145 | const space180 = "4.25rem";
|
146 | const space190 = "4.5rem";
|
147 | const space20 = "0.25rem";
|
148 | const space200 = "4.75rem";
|
149 | const space30 = "0.5rem";
|
150 | const space40 = "0.75rem";
|
151 | const space50 = "1rem";
|
152 | const space60 = "1.25rem";
|
153 | const space70 = "1.5rem";
|
154 | const space80 = "1.75rem";
|
155 | const space90 = "2rem";
|
156 | const zIndex0 = "0";
|
157 | const zIndex10 = "10";
|
158 | const zIndex20 = "20";
|
159 | const zIndex30 = "30";
|
160 | const zIndex40 = "40";
|
161 | const zIndex50 = "50";
|
162 | const zIndex60 = "60";
|
163 | const zIndex70 = "70";
|
164 | const zIndex80 = "80";
|
165 | const zIndex90 = "90";
|
166 |
|
167 | module.exports = {
|
168 | borderRadius0,
|
169 | borderRadius10,
|
170 | borderRadius20,
|
171 | borderRadius30,
|
172 | borderRadiusCircle,
|
173 | borderWidth0,
|
174 | borderWidth10,
|
175 | borderWidth20,
|
176 | colorBackground,
|
177 | colorBackgroundBody,
|
178 | colorBackgroundBrand,
|
179 | colorBackgroundBrandHighlight,
|
180 | colorBackgroundDestructive,
|
181 | colorBackgroundDestructiveDark,
|
182 | colorBackgroundDestructiveDarker,
|
183 | colorBackgroundDestructiveLight,
|
184 | colorBackgroundDestructiveLighter,
|
185 | colorBackgroundDestructiveLightest,
|
186 | colorBackgroundError,
|
187 | colorBackgroundErrorLightest,
|
188 | colorBackgroundInverse,
|
189 | colorBackgroundPrimary,
|
190 | colorBackgroundPrimaryDark,
|
191 | colorBackgroundPrimaryDarker,
|
192 | colorBackgroundPrimaryLight,
|
193 | colorBackgroundPrimaryLighter,
|
194 | colorBackgroundPrimaryLightest,
|
195 | colorBackgroundRowStriped,
|
196 | colorBackgroundSuccess,
|
197 | colorBackgroundSuccessLightest,
|
198 | colorBackgroundWarning,
|
199 | colorBackgroundWarningLightest,
|
200 | colorBorder,
|
201 | colorBorderDark,
|
202 | colorBorderDestructive,
|
203 | colorBorderDestructiveDark,
|
204 | colorBorderDestructiveDarker,
|
205 | colorBorderDestructiveLight,
|
206 | colorBorderDestructiveLighter,
|
207 | colorBorderError,
|
208 | colorBorderErrorLightest,
|
209 | colorBorderInput,
|
210 | colorBorderInputFocus,
|
211 | colorBorderInputHover,
|
212 | colorBorderLight,
|
213 | colorBorderPrimary,
|
214 | colorBorderPrimaryDark,
|
215 | colorBorderPrimaryDarker,
|
216 | colorBorderPrimaryLight,
|
217 | colorBorderPrimaryLighter,
|
218 | colorBorderSuccess,
|
219 | colorBorderSuccessLightest,
|
220 | colorBorderWarning,
|
221 | colorBorderWarningLightest,
|
222 | colorBrand,
|
223 | colorBrandHighlight,
|
224 | colorGray0,
|
225 | colorGray10,
|
226 | colorGray100,
|
227 | colorGray20,
|
228 | colorGray30,
|
229 | colorGray40,
|
230 | colorGray50,
|
231 | colorGray60,
|
232 | colorGray70,
|
233 | colorGray80,
|
234 | colorGray90,
|
235 | colorText,
|
236 | colorTextBrandHighlight,
|
237 | colorTextBrandInverse,
|
238 | colorTextError,
|
239 | colorTextIcon,
|
240 | colorTextInverse,
|
241 | colorTextInverseWeak,
|
242 | colorTextLabel,
|
243 | colorTextLink,
|
244 | colorTextLinkDark,
|
245 | colorTextLinkDarker,
|
246 | colorTextLinkDestructive,
|
247 | colorTextLinkDestructiveDark,
|
248 | colorTextLinkDestructiveDarker,
|
249 | colorTextLinkDestructiveLight,
|
250 | colorTextLinkLight,
|
251 | colorTextPlaceholder,
|
252 | colorTextSuccess,
|
253 | colorTextWarning,
|
254 | colorTextWeak,
|
255 | fontFamilyCode,
|
256 | fontFamilyText,
|
257 | fontSize10,
|
258 | fontSize100,
|
259 | fontSize110,
|
260 | fontSize20,
|
261 | fontSize30,
|
262 | fontSize40,
|
263 | fontSize50,
|
264 | fontSize60,
|
265 | fontSize70,
|
266 | fontSize80,
|
267 | fontSize90,
|
268 | fontWeightBold,
|
269 | fontWeightLight,
|
270 | fontWeightMedium,
|
271 | fontWeightNormal,
|
272 | fontWeightSemibold,
|
273 | lineHeight10,
|
274 | lineHeight100,
|
275 | lineHeight110,
|
276 | lineHeight20,
|
277 | lineHeight30,
|
278 | lineHeight40,
|
279 | lineHeight50,
|
280 | lineHeight60,
|
281 | lineHeight70,
|
282 | lineHeight80,
|
283 | lineHeight90,
|
284 | shadowCard,
|
285 | shadowFocus,
|
286 | size0,
|
287 | size10,
|
288 | size100,
|
289 | size110,
|
290 | size120,
|
291 | size20,
|
292 | size30,
|
293 | size40,
|
294 | size50,
|
295 | size60,
|
296 | size70,
|
297 | size80,
|
298 | size90,
|
299 | sizeIcon10,
|
300 | sizeIcon20,
|
301 | sizeIcon30,
|
302 | space0,
|
303 | space10,
|
304 | space100,
|
305 | space110,
|
306 | space120,
|
307 | space130,
|
308 | space140,
|
309 | space150,
|
310 | space160,
|
311 | space170,
|
312 | space180,
|
313 | space190,
|
314 | space20,
|
315 | space200,
|
316 | space30,
|
317 | space40,
|
318 | space50,
|
319 | space60,
|
320 | space70,
|
321 | space80,
|
322 | space90,
|
323 | zIndex0,
|
324 | zIndex10,
|
325 | zIndex20,
|
326 | zIndex30,
|
327 | zIndex40,
|
328 | zIndex50,
|
329 | zIndex60,
|
330 | zIndex70,
|
331 | zIndex80,
|
332 | zIndex90,
|
333 | backgroundColors: {
|
334 | colorBackground,
|
335 | colorBackgroundBody,
|
336 | colorBackgroundBrand,
|
337 | colorBackgroundBrandHighlight,
|
338 | colorBackgroundDestructive,
|
339 | colorBackgroundDestructiveDark,
|
340 | colorBackgroundDestructiveDarker,
|
341 | colorBackgroundDestructiveLight,
|
342 | colorBackgroundDestructiveLighter,
|
343 | colorBackgroundDestructiveLightest,
|
344 | colorBackgroundError,
|
345 | colorBackgroundErrorLightest,
|
346 | colorBackgroundInverse,
|
347 | colorBackgroundPrimary,
|
348 | colorBackgroundPrimaryDark,
|
349 | colorBackgroundPrimaryDarker,
|
350 | colorBackgroundPrimaryLight,
|
351 | colorBackgroundPrimaryLighter,
|
352 | colorBackgroundPrimaryLightest,
|
353 | colorBackgroundRowStriped,
|
354 | colorBackgroundSuccess,
|
355 | colorBackgroundSuccessLightest,
|
356 | colorBackgroundWarning,
|
357 | colorBackgroundWarningLightest,
|
358 | },
|
359 | borderColors: {
|
360 | colorBorder,
|
361 | colorBorderDark,
|
362 | colorBorderDestructive,
|
363 | colorBorderDestructiveDark,
|
364 | colorBorderDestructiveDarker,
|
365 | colorBorderDestructiveLight,
|
366 | colorBorderDestructiveLighter,
|
367 | colorBorderError,
|
368 | colorBorderErrorLightest,
|
369 | colorBorderInput,
|
370 | colorBorderInputFocus,
|
371 | colorBorderInputHover,
|
372 | colorBorderLight,
|
373 | colorBorderPrimary,
|
374 | colorBorderPrimaryDark,
|
375 | colorBorderPrimaryDarker,
|
376 | colorBorderPrimaryLight,
|
377 | colorBorderPrimaryLighter,
|
378 | colorBorderSuccess,
|
379 | colorBorderSuccessLightest,
|
380 | colorBorderWarning,
|
381 | colorBorderWarningLightest,
|
382 | },
|
383 | borderWidths: {
|
384 | borderWidth0,
|
385 | borderWidth10,
|
386 | borderWidth20,
|
387 | },
|
388 | boxShadows: {
|
389 | shadowCard,
|
390 | shadowFocus,
|
391 | },
|
392 | colors: {
|
393 | colorBrand,
|
394 | colorBrandHighlight,
|
395 | colorGray0,
|
396 | colorGray10,
|
397 | colorGray100,
|
398 | colorGray20,
|
399 | colorGray30,
|
400 | colorGray40,
|
401 | colorGray50,
|
402 | colorGray60,
|
403 | colorGray70,
|
404 | colorGray80,
|
405 | colorGray90,
|
406 | },
|
407 | fonts: {
|
408 | fontFamilyCode,
|
409 | fontFamilyText,
|
410 | },
|
411 | fontSizes: {
|
412 | fontSize10,
|
413 | fontSize100,
|
414 | fontSize110,
|
415 | fontSize20,
|
416 | fontSize30,
|
417 | fontSize40,
|
418 | fontSize50,
|
419 | fontSize60,
|
420 | fontSize70,
|
421 | fontSize80,
|
422 | fontSize90,
|
423 | },
|
424 | fontWeights: {
|
425 | fontWeightBold,
|
426 | fontWeightLight,
|
427 | fontWeightMedium,
|
428 | fontWeightNormal,
|
429 | fontWeightSemibold,
|
430 | },
|
431 | lineHeights: {
|
432 | lineHeight10,
|
433 | lineHeight100,
|
434 | lineHeight110,
|
435 | lineHeight20,
|
436 | lineHeight30,
|
437 | lineHeight40,
|
438 | lineHeight50,
|
439 | lineHeight60,
|
440 | lineHeight70,
|
441 | lineHeight80,
|
442 | lineHeight90,
|
443 | },
|
444 | radii: {
|
445 | borderRadius0,
|
446 | borderRadius10,
|
447 | borderRadius20,
|
448 | borderRadius30,
|
449 | borderRadiusCircle,
|
450 | },
|
451 | sizings: {
|
452 | size0,
|
453 | size10,
|
454 | size100,
|
455 | size110,
|
456 | size120,
|
457 | size20,
|
458 | size30,
|
459 | size40,
|
460 | size50,
|
461 | size60,
|
462 | size70,
|
463 | size80,
|
464 | size90,
|
465 | sizeIcon10,
|
466 | sizeIcon20,
|
467 | sizeIcon30,
|
468 | },
|
469 | spacings: {
|
470 | space0,
|
471 | space10,
|
472 | space100,
|
473 | space110,
|
474 | space120,
|
475 | space130,
|
476 | space140,
|
477 | space150,
|
478 | space160,
|
479 | space170,
|
480 | space180,
|
481 | space190,
|
482 | space20,
|
483 | space200,
|
484 | space30,
|
485 | space40,
|
486 | space50,
|
487 | space60,
|
488 | space70,
|
489 | space80,
|
490 | space90,
|
491 | },
|
492 | textColors: {
|
493 | colorText,
|
494 | colorTextBrandHighlight,
|
495 | colorTextBrandInverse,
|
496 | colorTextError,
|
497 | colorTextIcon,
|
498 | colorTextInverse,
|
499 | colorTextInverseWeak,
|
500 | colorTextLabel,
|
501 | colorTextLink,
|
502 | colorTextLinkDark,
|
503 | colorTextLinkDarker,
|
504 | colorTextLinkDestructive,
|
505 | colorTextLinkDestructiveDark,
|
506 | colorTextLinkDestructiveDarker,
|
507 | colorTextLinkDestructiveLight,
|
508 | colorTextLinkLight,
|
509 | colorTextPlaceholder,
|
510 | colorTextSuccess,
|
511 | colorTextWarning,
|
512 | colorTextWeak,
|
513 | },
|
514 | zIndices: {
|
515 | zIndex0,
|
516 | zIndex10,
|
517 | zIndex20,
|
518 | zIndex30,
|
519 | zIndex40,
|
520 | zIndex50,
|
521 | zIndex60,
|
522 | zIndex70,
|
523 | zIndex80,
|
524 | zIndex90,
|
525 | },
|
526 | }
|