1 |
|
2 | $tokens-map: (
|
3 | // Darker background for primary actions or highlights
|
4 | 'color-background-primary-darker': (#001f75),
|
5 | // Lighter background for primary actions or highlights
|
6 | 'color-background-primary-lighter': (#dbe6ff),
|
7 | // Darker background for destructive actions or highlights
|
8 | 'color-background-destructive-darker': (#470500),
|
9 | // Lighter background for destructive actions or highlights
|
10 | 'color-background-destructive-lighter': (#ffb9b3),
|
11 | // Warning background color
|
12 | 'color-background-warning': (#e46216),
|
13 | // Lightest error background color
|
14 | 'color-background-error-lightest': (#ffe9e7),
|
15 | // Lightest neutral background color
|
16 | 'color-background-neutral-lightest': (#f5f8ff),
|
17 | // Background for destructive actions or highlights
|
18 | 'color-background-destructive': (#ce241a),
|
19 | // Background for primary actions or highlights
|
20 | 'color-background-primary': (#3368fa),
|
21 | // Success background color
|
22 | 'color-background-success': (#00994a),
|
23 | // Background color for alternative striped rows
|
24 | 'color-background-row-striped': (#f9fafb),
|
25 | // Lightest success background color
|
26 | 'color-background-success-lightest': (#e0ffef),
|
27 | // Lightest background for destructive actions or highlights
|
28 | 'color-background-destructive-lightest': (#ffe9e7),
|
29 | // Lightest background for primary actions or highlights
|
30 | 'color-background-primary-lightest': (#f5f8ff),
|
31 | // Primary brand background, accessible with inverse text
|
32 | 'color-background-brand': (#233659),
|
33 | // Error background color
|
34 | 'color-background-error': (#ac1e16),
|
35 | // Required background color
|
36 | 'color-background-required': (#e8534a),
|
37 | // Dark background for destructive actions or highlights
|
38 | 'color-background-destructive-dark': (#700600),
|
39 | // Light background for destructive actions or highlights
|
40 | 'color-background-destructive-light': (#ff8c85),
|
41 | // Dark background for primary actions or highlights
|
42 | 'color-background-primary-dark': (#002ca6),
|
43 | // Light background for primary actions or highlights
|
44 | 'color-background-primary-light': (#baccff),
|
45 | // Lightest warning background color
|
46 | 'color-background-warning-lightest': (#ffecd8),
|
47 | // Background color of the main page body
|
48 | 'color-background-body': (#ffffff),
|
49 | // Default background color for any container
|
50 | 'color-background': (#f3f4f6),
|
51 | // Highlight brand background, accessible with black text
|
52 | 'color-background-brand-highlight': (#f22f46),
|
53 | // Inverse background color for any container
|
54 | 'color-background-inverse': (#08152c),
|
55 | // Destructive focus border color
|
56 | 'color-border-destructive-lighter': (#ffb9b3),
|
57 | // Lighter primary border color
|
58 | 'color-border-primary-lighter': (#dbe6ff),
|
59 | // Input hover border color
|
60 | 'color-border-input-hover': (#003adb),
|
61 | // Darker primary border color
|
62 | 'color-border-primary-darker': (#001f75),
|
63 | // Warning border color
|
64 | 'color-border-warning': (#e46216),
|
65 | // Darker destructive hover border color
|
66 | 'color-border-destructive-darker': (#470500),
|
67 | // Destructive border color
|
68 | 'color-border-destructive': (#ce241a),
|
69 | // Primary border color
|
70 | 'color-border-primary': (#3368fa),
|
71 | // Success border color
|
72 | 'color-border-success': (#00994a),
|
73 | // Lightest error border color
|
74 | 'color-border-error-lightest': (#ffe9e7),
|
75 | // Dark border color
|
76 | 'color-border-dark': (#9ca7ba),
|
77 | // Light warning border color
|
78 | 'color-border-warning-light': (#fa9c66),
|
79 | // Lightest success border color
|
80 | 'color-border-success-lightest': (#e0ffef),
|
81 | // Error border color
|
82 | 'color-border-error': (#ac1e16),
|
83 | // Input border color
|
84 | 'color-border-input': (#8894aa),
|
85 | // Destructive focus border color
|
86 | 'color-border-destructive-light': (#ff8c85),
|
87 | // Light primary border color
|
88 | 'color-border-primary-light': (#baccff),
|
89 | // Default border color
|
90 | 'color-border': (#b6bfce),
|
91 | // Lightest warning border color
|
92 | 'color-border-warning-lightest': (#ffecd8),
|
93 | // Dark primary border color
|
94 | 'color-border-primary-dark': (#002ca6),
|
95 | // Destructive focus border color
|
96 | 'color-border-destructive-dark': (#700600),
|
97 | // Light neutral border color
|
98 | 'color-border-neutral-light': (#b6bfce),
|
99 | // Light error border color
|
100 | 'color-border-error-light': (#e8534a),
|
101 | // Input focus border color
|
102 | 'color-border-input-focus': (#003adb),
|
103 | // Light border color
|
104 | 'color-border-light': (#ccd2dc),
|
105 | // Border radius reset
|
106 | 'border-radius-0': (0),
|
107 | // Small border radius
|
108 | 'border-radius-10': (3px),
|
109 | // Large border radius
|
110 | 'border-radius-20': (4px),
|
111 | // Larger border radius
|
112 | 'border-radius-30': (8px),
|
113 | // Circular border radius
|
114 | 'border-radius-circle': (50%),
|
115 | // Border width reset
|
116 | 'border-width-0': (0),
|
117 | // Small border width
|
118 | 'border-width-10': (1px),
|
119 | // Large border width
|
120 | 'border-width-20': (2px),
|
121 | // Shadow for cards.
|
122 | 'shadow-card': (0 2px 4px 0 rgba(18, 28, 45, 0.3)),
|
123 | // Shadow for focus ring on interactive elements
|
124 | 'shadow-focus': (0 0 0 4px rgba(51, 104, 250, 0.8)),
|
125 | // Shadow border for inputs.
|
126 | 'shadow-border-input': (0 0 0 1px #8894aa),
|
127 | // Shadow border for inputs hover.
|
128 | 'shadow-border-input-hover': (0 0 0 1px #001f75),
|
129 | // Shadow border for error inputs.
|
130 | 'shadow-border-input-error': (0 0 0 1px #d61f1f),
|
131 | // Shadow border for error inputs hover.
|
132 | 'shadow-border-input-error-hover': (0 0 0 1px #940800),
|
133 | // Shadow border for disabled inputs.
|
134 | 'shadow-border-input-disabled': (0 0 0 1px #ccd2dc),
|
135 | 'font-family-text': ('Colfax', Helvetica, Arial, sans-serif),
|
136 | 'font-family-code': ('Fira Mono', 'Courier New', Courier, monospace),
|
137 | // Constant typography token for font size 110
|
138 | 'font-size-110': (3rem),
|
139 | // Constant typography token for font size 100
|
140 | 'font-size-100': (2.5rem),
|
141 | // Constant typography token for font size 90
|
142 | 'font-size-90': (2rem),
|
143 | // Constant typography token for font size 80
|
144 | 'font-size-80': (1.75rem),
|
145 | // Constant typography token for font size 70
|
146 | 'font-size-70': (1.5rem),
|
147 | // Constant typography token for font size 60
|
148 | 'font-size-60': (1.25rem),
|
149 | // Constant typography token for font size 50
|
150 | 'font-size-50': (1.125rem),
|
151 | // Constant typography token for font size 40
|
152 | 'font-size-40': (1rem),
|
153 | // Constant typography token for font size 30
|
154 | 'font-size-30': (0.875rem),
|
155 | // Constant typography token for font size 20
|
156 | 'font-size-20': (0.75rem),
|
157 | // Constant typography token for font size 10
|
158 | 'font-size-10': (0.625rem),
|
159 | // Font weight for light weight
|
160 | 'font-weight-light': (300),
|
161 | // Font weight for normal weight
|
162 | 'font-weight-normal': (400),
|
163 | // Font weight for medium weight
|
164 | 'font-weight-medium': (500),
|
165 | // Font weight for semibold weight
|
166 | 'font-weight-semibold': (600),
|
167 | // Font weight for bold weight
|
168 | 'font-weight-bold': (700),
|
169 | // fontSize110's lineHeight mapping. fontSize110 * 1.25 = 60px / 16 = 3.75rem
|
170 | 'line-height-110': (3.75rem),
|
171 |
|
172 | 'line-height-90': (2.5rem),
|
173 |
|
174 | 'line-height-100': (3.25rem),
|
175 |
|
176 | 'line-height-80': (2.25rem),
|
177 |
|
178 | 'line-height-70': (2rem),
|
179 |
|
180 | 'line-height-60': (1.75rem),
|
181 |
|
182 | 'line-height-50': (1.75rem),
|
183 |
|
184 | 'line-height-40': (1.75rem),
|
185 |
|
186 | 'line-height-30': (1.5rem),
|
187 |
|
188 | 'line-height-20': (1.25rem),
|
189 |
|
190 | 'line-height-10': (1rem),
|
191 |
|
192 | 'color-brand-highlight': (#3368fa),
|
193 |
|
194 | 'color-gray-0': (#ffffff),
|
195 |
|
196 | 'color-gray-100': (#08152c),
|
197 |
|
198 | 'color-gray-90': (#1d2944),
|
199 |
|
200 | 'color-gray-80': (#475672),
|
201 |
|
202 | 'color-gray-70': (#8894aa),
|
203 |
|
204 | 'color-gray-60': (#9ca7ba),
|
205 |
|
206 | 'color-gray-50': (#b6bfce),
|
207 |
|
208 | 'color-gray-40': (#ccd2dc),
|
209 |
|
210 | 'color-brand': (#08152c),
|
211 |
|
212 | 'color-gray-30': (#e5e7ec),
|
213 |
|
214 | 'color-gray-20': (#f3f4f6),
|
215 |
|
216 | 'color-gray-10': (#f9fafb),
|
217 |
|
218 | 'size-icon-80': (2.25rem),
|
219 |
|
220 | 'size-icon-70': (2rem),
|
221 |
|
222 | 'size-icon-60': (1.75rem),
|
223 |
|
224 | 'size-90': (57.5rem),
|
225 |
|
226 | 'size-120': (77rem),
|
227 |
|
228 | 'size-icon-50': (1.75rem),
|
229 |
|
230 | 'size-80': (51rem),
|
231 |
|
232 | 'size-0': (0),
|
233 |
|
234 | 'size-110': (70.5rem),
|
235 |
|
236 | 'size-icon-40': (1.75rem),
|
237 |
|
238 | 'size-70': (44.5rem),
|
239 |
|
240 | 'size-100': (64rem),
|
241 |
|
242 | 'size-icon-30': (1.5rem),
|
243 |
|
244 | 'size-60': (38rem),
|
245 |
|
246 | 'size-icon-20': (1.25rem),
|
247 |
|
248 | 'size-icon-10': (1rem),
|
249 |
|
250 | 'size-50': (31.5rem),
|
251 |
|
252 | 'size-icon-110': (3.75rem),
|
253 |
|
254 | 'size-40': (25rem),
|
255 |
|
256 | 'size-icon-100': (3.25rem),
|
257 |
|
258 | 'size-30': (18.5rem),
|
259 |
|
260 | 'size-20': (12rem),
|
261 |
|
262 | 'size-10': (5.5rem),
|
263 |
|
264 | 'size-icon-90': (2.5rem),
|
265 | 'space-70': (1.5rem),
|
266 | 'space-60': (1.25rem),
|
267 | 'space-190': (4.5rem),
|
268 | 'space-50': (1rem),
|
269 | 'space-180': (4.25rem),
|
270 | 'space-40': (0.75rem),
|
271 | 'space-170': (4rem),
|
272 | 'space-30': (0.5rem),
|
273 | 'space-160': (3.75rem),
|
274 | 'space-20': (0.25rem),
|
275 | 'space-150': (3.5rem),
|
276 | 'space-10': (0.125rem),
|
277 | 'space-140': (3.25rem),
|
278 | 'space-130': (3rem),
|
279 | 'space-120': (2.75rem),
|
280 | 'space-110': (2.5rem),
|
281 | 'space-0': (0),
|
282 | 'space-100': (2.25rem),
|
283 | 'space-200': (4.75rem),
|
284 | 'space-90': (2rem),
|
285 | 'space-80': (1.75rem),
|
286 |
|
287 | 'color-text-link-darker': (#001f75),
|
288 |
|
289 | 'color-text-link-destructive': (#ce241a),
|
290 |
|
291 | 'color-text-warning': (#e46216),
|
292 |
|
293 | 'color-text-inverse-weak': (#9ca7ba),
|
294 |
|
295 | 'color-text-link-destructive-darker': (#470500),
|
296 |
|
297 | 'color-text-success': (#00994a),
|
298 |
|
299 | 'color-text-weak': (#475672),
|
300 |
|
301 | 'color-text-link-destructive-light': (#e8534a),
|
302 |
|
303 | 'color-text-icon': (#8894aa),
|
304 |
|
305 | 'color-text-link': (#003adb),
|
306 |
|
307 | 'color-text-error-dark': (#940800),
|
308 |
|
309 | 'color-text-error': (#ac1e16),
|
310 |
|
311 | 'color-text-link-dark': (#002ca6),
|
312 |
|
313 | 'color-text-brand-inverse': (#ffffff),
|
314 |
|
315 | 'color-text': (#08152c),
|
316 |
|
317 | 'color-text-brand-highlight': (#f22f46),
|
318 |
|
319 | 'color-text-link-light': (#85a5ff),
|
320 |
|
321 | 'color-text-inverse': (#ffffff),
|
322 |
|
323 | 'color-text-placeholder': (#8894aa),
|
324 |
|
325 | 'color-text-warning-dark': (#a83e00),
|
326 |
|
327 | 'color-text-link-destructive-dark': (#700600),
|
328 |
|
329 | 'color-text-label': (#08152c),
|
330 | 'z-index-0': (0),
|
331 | 'z-index-90': (90),
|
332 | 'z-index-80': (80),
|
333 | 'z-index-70': (70),
|
334 | 'z-index-60': (60),
|
335 | 'z-index-50': (50),
|
336 | 'z-index-40': (40),
|
337 | 'z-index-30': (30),
|
338 | 'z-index-20': (20),
|
339 | 'z-index-10': (10),
|
340 | );
|