UNPKG

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