UNPKG

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