1 |
|
2 | $tokens-map: (
|
3 | /* Darker background for primary actions or highlights */
|
4 | 'color-background-primary-darker': (rgb(3, 44, 94)),
|
5 | /* Lighter background for primary actions or highlights */
|
6 | 'color-background-primary-lighter': (rgb(220, 234, 244)),
|
7 | /* Darker background for destructive actions or highlights */
|
8 | 'color-background-destructive-darker': (rgb(96, 1, 1)),
|
9 | /* Lighter background for destructive actions or highlights */
|
10 | 'color-background-destructive-lighter': (rgb(245, 221, 221)),
|
11 | /* Warning background color */
|
12 | 'color-background-warning': (rgb(228, 98, 22)),
|
13 | /* Lightest error background color */
|
14 | 'color-background-error-lightest': (rgb(255, 233, 231)),
|
15 | /* Lightest neutral background color */
|
16 | 'color-background-neutral-lightest': (rgb(245, 248, 255)),
|
17 | /* Dark default background color */
|
18 | 'color-background-dark': (rgb(228, 231, 233)),
|
19 | /* Background for destructive actions or highlights */
|
20 | 'color-background-destructive': (rgb(226, 37, 37)),
|
21 | /* Background for primary actions or highlights */
|
22 | 'color-background-primary': (rgb(2, 122, 197)),
|
23 | /* Success background color */
|
24 | 'color-background-success': (rgb(0, 153, 74)),
|
25 | /* Background color for alternative striped rows */
|
26 | 'color-background-row-striped': (rgb(248, 248, 249)),
|
27 | /* Lightest success background color */
|
28 | 'color-background-success-lightest': (rgb(224, 255, 239)),
|
29 | /* Lightest background for destructive actions or highlights */
|
30 | 'color-background-destructive-lightest': (rgb(255, 233, 231)),
|
31 | /* Dark error background color */
|
32 | 'color-background-error-dark': (rgb(146, 18, 0)),
|
33 | /* Lightest background for primary actions or highlights */
|
34 | 'color-background-primary-lightest': (rgb(245, 248, 255)),
|
35 | /* Primary brand background, accessible with inverse text */
|
36 | 'color-background-brand': (rgb(35, 54, 89)),
|
37 | /* Error background color */
|
38 | 'color-background-error': (rgb(226, 37, 37)),
|
39 | /* Required background color */
|
40 | 'color-background-required': (rgb(222, 88, 88)),
|
41 | /* Dark background for destructive actions or highlights */
|
42 | 'color-background-destructive-dark': (rgb(146, 18, 0)),
|
43 | /* Light background for destructive actions or highlights */
|
44 | 'color-background-destructive-light': (rgb(236, 182, 182)),
|
45 | /* Dark background for primary actions or highlights */
|
46 | 'color-background-primary-dark': (rgb(0, 62, 130)),
|
47 | /* Light background for primary actions or highlights */
|
48 | 'color-background-primary-light': (rgb(179, 211, 233)),
|
49 | /* Lightest warning background color */
|
50 | 'color-background-warning-lightest': (rgb(255, 236, 216)),
|
51 | /* Background color of the main page body */
|
52 | 'color-background-body': (rgb(255, 255, 255)),
|
53 | /* Darker default background color */
|
54 | 'color-background-darker': (rgb(200, 204, 207)),
|
55 | /* Default background color for any container */
|
56 | 'color-background': (rgb(248, 248, 249)),
|
57 | /* Highlight brand background, accessible with black text */
|
58 | 'color-background-brand-highlight': (rgb(242, 47, 70)),
|
59 | /* Inverse background color for any container, the darkest gray in the system */
|
60 | 'color-background-inverse': (rgb(40, 42, 43)),
|
61 | /* Default background for overlays */
|
62 | 'color-background-overlay': (rgba(40, 42, 43, 0.5)),
|
63 | /* Darkest default background color */
|
64 | 'color-background-darkest': (rgb(112, 117, 120)),
|
65 | /* Destructive focus border color */
|
66 | 'color-border-destructive-lighter': (rgb(245, 221, 221)),
|
67 | /* Lighter primary border color */
|
68 | 'color-border-primary-lighter': (rgb(220, 234, 244)),
|
69 | /* Darker primary border color */
|
70 | 'color-border-primary-darker': (rgb(3, 44, 94)),
|
71 | /* Warning border color */
|
72 | 'color-border-warning': (rgb(228, 98, 22)),
|
73 | /* Darker destructive hover border color */
|
74 | 'color-border-destructive-darker': (rgb(96, 1, 1)),
|
75 | /* Destructive border color */
|
76 | 'color-border-destructive': (rgb(226, 37, 37)),
|
77 | /* Primary border color */
|
78 | 'color-border-primary': (rgb(2, 122, 197)),
|
79 | /* Success border color */
|
80 | 'color-border-success': (rgb(0, 153, 74)),
|
81 | /* Lightest error border color */
|
82 | 'color-border-error-lightest': (rgb(255, 233, 231)),
|
83 | /* Dark border color */
|
84 | 'color-border-dark': (rgb(136, 140, 142)),
|
85 | /* Light warning border color */
|
86 | 'color-border-warning-light': (rgb(242, 133, 16)),
|
87 | /* Lightest success border color */
|
88 | 'color-border-success-lightest': (rgb(224, 255, 239)),
|
89 | /* Error border color */
|
90 | 'color-border-error': (rgb(226, 37, 37)),
|
91 | /* Dark error border color */
|
92 | 'color-border-error-dark': (rgb(146, 18, 0)),
|
93 | /* Destructive focus border color */
|
94 | 'color-border-destructive-light': (rgb(236, 182, 182)),
|
95 | /* Light primary border color */
|
96 | 'color-border-primary-light': (rgb(179, 211, 233)),
|
97 | /* Default border color */
|
98 | 'color-border': (rgb(136, 140, 142)),
|
99 | /* Lightest warning border color */
|
100 | 'color-border-warning-lightest': (rgb(255, 236, 216)),
|
101 | /* Dark primary border color */
|
102 | 'color-border-primary-dark': (rgb(0, 62, 130)),
|
103 | /* Destructive focus border color */
|
104 | 'color-border-destructive-dark': (rgb(146, 18, 0)),
|
105 | /* Light neutral border color */
|
106 | 'color-border-neutral-light': (rgb(200, 204, 207)),
|
107 | /* Border on inverse backgrounds */
|
108 | 'color-border-inverse': (rgb(255, 255, 255)),
|
109 | /* Light error border color */
|
110 | 'color-border-error-light': (rgb(222, 88, 88)),
|
111 | /* Light border color */
|
112 | 'color-border-light': (rgb(228, 231, 233)),
|
113 | /* Border radius reset */
|
114 | 'border-radius-0': (0),
|
115 | /* Small border radius */
|
116 | 'border-radius-10': (3px),
|
117 | /* Large border radius */
|
118 | 'border-radius-20': (4px),
|
119 | /* Larger border radius */
|
120 | 'border-radius-30': (8px),
|
121 | /* Circular border radius */
|
122 | 'border-radius-circle': (50%),
|
123 | /* Border width reset */
|
124 | 'border-width-0': (0),
|
125 | /* Small border width */
|
126 | 'border-width-10': (1px),
|
127 | /* Large border width */
|
128 | 'border-width-20': (2px),
|
129 | /* Small border width */
|
130 | 'border-width-30': (4px),
|
131 | /* Large border width */
|
132 | 'border-width-40': (8px),
|
133 | /* Shadow for cards. */
|
134 | 'shadow-card': (0 2px 4px 0 rgba(40, 42, 43, 0.3)),
|
135 | /* Shadow for focus ring on interactive elements */
|
136 | 'shadow-focus': (0 0 0 4px rgba(2, 122, 197, 0.8)),
|
137 | /* Shadow border for disabled inputs. */
|
138 | 'shadow-border-light': (0 0 0 1px #e4e7e9),
|
139 | /* Shadow border for inputs. */
|
140 | 'shadow-border': (0 0 0 1px #888c8e),
|
141 | /* Shadow border for inputs hover. */
|
142 | 'shadow-border-primary-dark': (0 0 0 1px #003e82),
|
143 | /* Shadow border for inputs active. */
|
144 | 'shadow-border-primary-darker': (0 0 0 1px #032c5e),
|
145 | /* Shadow border for error inputs. */
|
146 | 'shadow-border-error': (0 0 0 1px #e22525),
|
147 | /* Shadow border for error inputs hover. */
|
148 | 'shadow-border-error-dark': (0 0 0 1px #921200),
|
149 | 'font-family-text': ('Whitney SSm A', 'Whitney SSm B', 'Helvetica Neue', Helvetica, Arial, sans-serif),
|
150 | 'font-family-code': ('Fira Mono', 'Courier New', Courier, monospace),
|
151 | /* Constant typography token for font size 110 */
|
152 | 'font-size-110': (3rem),
|
153 | /* Constant typography token for font size 100 */
|
154 | 'font-size-100': (2.5rem),
|
155 | /* Constant typography token for font size 90 */
|
156 | 'font-size-90': (2rem),
|
157 | /* Constant typography token for font size 80 */
|
158 | 'font-size-80': (1.75rem),
|
159 | /* Constant typography token for font size 70 */
|
160 | 'font-size-70': (1.5rem),
|
161 | /* Constant typography token for font size 60 */
|
162 | 'font-size-60': (1.25rem),
|
163 | /* Constant typography token for font size 50 */
|
164 | 'font-size-50': (1.125rem),
|
165 | /* Constant typography token for font size 40 */
|
166 | 'font-size-40': (1rem),
|
167 | /* Constant typography token for font size 30 */
|
168 | 'font-size-30': (0.875rem),
|
169 | /* Constant typography token for font size 20 */
|
170 | 'font-size-20': (0.75rem),
|
171 | /* Constant typography token for font size 10 */
|
172 | 'font-size-10': (0.625rem),
|
173 | /* Font weight for light weight */
|
174 | 'font-weight-light': (300),
|
175 | /* Font weight for normal weight */
|
176 | 'font-weight-normal': (400),
|
177 | /* Font weight for medium weight */
|
178 | 'font-weight-medium': (500),
|
179 | /* Font weight for semibold weight */
|
180 | 'font-weight-semibold': (500),
|
181 | /* Font weight for bold weight */
|
182 | 'font-weight-bold': (700),
|
183 | /* Constant line-height token for line-height 110 */
|
184 | 'line-height-110': (3.75rem),
|
185 | /* Constant line-height token for line-height 90 */
|
186 | 'line-height-90': (2.5rem),
|
187 | /* Constant line-height token for line-height 100 */
|
188 | 'line-height-100': (3.25rem),
|
189 | /* Constant line-height token for line-height 80 */
|
190 | 'line-height-80': (2.25rem),
|
191 | /* Constant line-height token for line-height 70 */
|
192 | 'line-height-70': (2rem),
|
193 | /* Constant line-height token for line-height 60 */
|
194 | 'line-height-60': (1.75rem),
|
195 | /* Constant line-height token for line-height 50 */
|
196 | 'line-height-50': (1.75rem),
|
197 | /* Constant line-height token for line-height 40 */
|
198 | 'line-height-40': (1.75rem),
|
199 | /* Constant line-height token for line-height 30 */
|
200 | 'line-height-30': (1.5rem),
|
201 | /* Constant line-height token for line-height 20 */
|
202 | 'line-height-20': (1.25rem),
|
203 | /* Constant line-height token for line-height 10 */
|
204 | 'line-height-10': (1rem),
|
205 | /* Twilio brand red */
|
206 | 'color-brand-highlight': (rgb(242, 47, 70)),
|
207 | /* Gray Color 0 */
|
208 | 'color-gray-0': (rgb(255, 255, 255)),
|
209 | /* Gray Color 10 */
|
210 | 'color-gray-100': (rgb(40, 42, 43)),
|
211 | /* Gray Color 9 */
|
212 | 'color-gray-90': (rgb(66, 69, 71)),
|
213 | /* Gray Color 8 */
|
214 | 'color-gray-80': (rgb(79, 83, 85)),
|
215 | /* Gray Color 7 */
|
216 | 'color-gray-70': (rgb(112, 117, 120)),
|
217 | /* Gray Color 6 */
|
218 | 'color-gray-60': (rgb(136, 140, 142)),
|
219 | /* Gray Color 5 */
|
220 | 'color-gray-50': (rgb(200, 204, 207)),
|
221 | /* Gray Color 4 */
|
222 | 'color-gray-40': (rgb(228, 231, 233)),
|
223 | /* Default branding color */
|
224 | 'color-brand': (rgb(35, 54, 89)),
|
225 | /* Gray Color 3 */
|
226 | 'color-gray-30': (rgb(242, 243, 244)),
|
227 | /* Gray Color 2 */
|
228 | 'color-gray-20': (rgb(248, 248, 249)),
|
229 | /* Gray Color 1 */
|
230 | 'color-gray-10': (rgb(249, 250, 251)),
|
231 | /* Generic square sizing token scale for UI components. */
|
232 | 'size-square-40': (0.75rem),
|
233 | /* Maps to line-height tokens 1:1 */
|
234 | 'size-icon-80': (2.25rem),
|
235 | /* Generic square sizing token scale for UI components. */
|
236 | 'size-square-30': (0.5rem),
|
237 | /* Maps to line-height tokens 1:1 */
|
238 | 'size-icon-70': (2rem),
|
239 | /* Generic square sizing token scale for UI components. */
|
240 | 'size-square-20': (0.25rem),
|
241 | /* Maps to line-height tokens 1:1 */
|
242 | 'size-icon-60': (1.75rem),
|
243 | /* Generic sizing token scale for UI components. */
|
244 | 'size-90': (57.5rem),
|
245 | /* Generic square sizing token scale for UI components. */
|
246 | 'size-square-10': (0.125rem),
|
247 | /* Generic sizing token scale for UI components. */
|
248 | 'size-120': (77rem),
|
249 | /* Maps to line-height tokens 1:1 */
|
250 | 'size-icon-50': (1.75rem),
|
251 | /* Generic sizing token scale for UI components. */
|
252 | 'size-80': (51rem),
|
253 | /* Generic sizing token scale for UI components. */
|
254 | 'size-0': (0),
|
255 | /* Generic sizing token scale for UI components. */
|
256 | 'size-110': (70.5rem),
|
257 | /* Maps to line-height tokens 1:1 */
|
258 | 'size-icon-40': (1.75rem),
|
259 | /* Generic square sizing token scale for UI components. */
|
260 | 'size-square-190': (4.5rem),
|
261 | /* Generic sizing token scale for UI components. */
|
262 | 'size-70': (44.5rem),
|
263 | /* Generic sizing token scale for UI components. */
|
264 | 'size-100': (64rem),
|
265 | /* Maps to line-height tokens 1:1 */
|
266 | 'size-icon-30': (1.5rem),
|
267 | /* Generic square sizing token scale for UI components. */
|
268 | 'size-square-180': (4.25rem),
|
269 | /* Generic sizing token scale for UI components. */
|
270 | 'size-60': (38rem),
|
271 | /* Maps to line-height tokens 1:1 */
|
272 | 'size-icon-20': (1.25rem),
|
273 | /* Generic square sizing token scale for UI components. */
|
274 | 'size-square-170': (4rem),
|
275 | /* Maps to line-height tokens 1:1 */
|
276 | 'size-icon-10': (1rem),
|
277 | /* Generic square sizing token scale for UI components. */
|
278 | 'size-square-25': (0.375rem),
|
279 | /* Generic square sizing token scale for UI components. */
|
280 | 'size-square-160': (3.75rem),
|
281 | /* Generic sizing token scale for UI components. */
|
282 | 'size-50': (31.5rem),
|
283 | /* Maps to line-height tokens 1:1 */
|
284 | 'size-icon-110': (3.75rem),
|
285 | /* Generic square sizing token scale for UI components. */
|
286 | 'size-square-150': (3.5rem),
|
287 | /* Generic sizing token scale for UI components. */
|
288 | 'size-40': (25rem),
|
289 | /* Maps to line-height tokens 1:1 */
|
290 | 'size-icon-100': (3.25rem),
|
291 | /* Generic square sizing token scale for UI components. */
|
292 | 'size-square-140': (3.25rem),
|
293 | /* Generic sizing token scale for UI components. */
|
294 | 'size-30': (18.5rem),
|
295 | /* Generic square sizing token scale for UI components. */
|
296 | 'size-square-130': (3rem),
|
297 | /* Generic sizing token scale for UI components. */
|
298 | 'size-20': (12rem),
|
299 | /* Generic square sizing token scale for UI components. */
|
300 | 'size-square-120': (2.75rem),
|
301 | /* Generic sizing token scale for UI components. */
|
302 | 'size-10': (5.5rem),
|
303 | /* Generic square sizing token scale for UI components. */
|
304 | 'size-square-110': (2.5rem),
|
305 | /* Generic square sizing token scale for UI components. */
|
306 | 'size-square-0': (0),
|
307 | /* Generic square sizing token scale for UI components. */
|
308 | 'size-square-100': (2.25rem),
|
309 | /* Generic square sizing token scale for UI components. */
|
310 | 'size-square-200': (4.75rem),
|
311 | /* Generic square sizing token scale for UI components. */
|
312 | 'size-square-90': (2rem),
|
313 | /* Generic square sizing token scale for UI components. */
|
314 | 'size-square-80': (1.75rem),
|
315 | /* Generic square sizing token scale for UI components. */
|
316 | 'size-square-70': (1.5rem),
|
317 | /* Generic square sizing token scale for UI components. */
|
318 | 'size-square-60': (1.25rem),
|
319 | /* Generic square sizing token scale for UI components. */
|
320 | 'size-square-50': (1rem),
|
321 | /* Maps to line-height tokens 1:1 */
|
322 | 'size-icon-90': (2.5rem),
|
323 | 'space-70': (1.5rem),
|
324 | 'space-60': (1.25rem),
|
325 | 'space-190': (4.5rem),
|
326 | 'space-50': (1rem),
|
327 | 'space-180': (4.25rem),
|
328 | 'space-40': (0.75rem),
|
329 | 'space-170': (4rem),
|
330 | 'space-30': (0.5rem),
|
331 | 'space-160': (3.75rem),
|
332 | 'space-20': (0.25rem),
|
333 | 'space-150': (3.5rem),
|
334 | 'space-10': (0.125rem),
|
335 | 'space-140': (3.25rem),
|
336 | 'space-130': (3rem),
|
337 | 'space-120': (2.75rem),
|
338 | 'space-110': (2.5rem),
|
339 | 'space-0': (0),
|
340 | 'space-100': (2.25rem),
|
341 | 'space-200': (4.75rem),
|
342 | 'space-90': (2rem),
|
343 | 'space-80': (1.75rem),
|
344 | /* Darker shade of link text to be used in interactions */
|
345 | 'color-text-link-darker': (rgb(3, 44, 94)),
|
346 | /* Destructive link text */
|
347 | 'color-text-link-destructive': (rgb(226, 37, 37)),
|
348 | /* Color for warning text. */
|
349 | 'color-text-warning': (rgb(228, 98, 22)),
|
350 | /* Weak inverse text color for dark backgrounds. Must pass AA color contrast with color-background-inverse. */
|
351 | 'color-text-inverse-weak': (rgb(200, 204, 207)),
|
352 | /* Darker shade of destructive link text to be used in interactions */
|
353 | 'color-text-link-destructive-darker': (rgb(146, 18, 0)),
|
354 | /* Text color for success text. */
|
355 | 'color-text-success': (rgb(0, 153, 74)),
|
356 | /* Weak body text for visual hierarchy. */
|
357 | 'color-text-weak': (rgb(112, 117, 120)),
|
358 | /* Light shade of destructive link text to be used in interactions */
|
359 | 'color-text-link-destructive-light': (rgb(236, 182, 182)),
|
360 | /* Default icon color. */
|
361 | 'color-text-icon': (rgb(112, 117, 120)),
|
362 | /* Link text */
|
363 | 'color-text-link': (rgb(0, 94, 166)),
|
364 | /* Dark error text for inputs and error misc */
|
365 | 'color-text-error-dark': (rgb(146, 18, 0)),
|
366 | /* Error text for inputs and error misc */
|
367 | 'color-text-error': (rgb(226, 37, 37)),
|
368 | /* Dark shade of link text to be used in interactions */
|
369 | 'color-text-link-dark': (rgb(0, 62, 130)),
|
370 | /* Text color used on any brand color */
|
371 | 'color-text-brand-inverse': (rgb(255, 255, 255)),
|
372 | /* Body text color */
|
373 | 'color-text': (rgb(40, 42, 43)),
|
374 | /* Twilio brand red, accessible on large text only. */
|
375 | 'color-text-brand-highlight': (rgb(242, 47, 70)),
|
376 | /* Light shade of link text to be used in interactions */
|
377 | 'color-text-link-light': (rgb(179, 211, 233)),
|
378 | /* Inverse text color for dark backgrounds. Must pass AA color contrast with color-background-inverse. */
|
379 | 'color-text-inverse': (rgb(255, 255, 255)),
|
380 | /* Weaker body text for visual hierarchy. Inaccessible unless used on disabled controls. */
|
381 | 'color-text-weaker': (rgb(200, 204, 207)),
|
382 | /* Input placeholder text. */
|
383 | 'color-text-placeholder': (rgb(112, 117, 120)),
|
384 | /* Color for dark warning text. */
|
385 | 'color-text-warning-dark': (rgb(168, 62, 0)),
|
386 | /* Dark shade of destructive link text to be used in interactions */
|
387 | 'color-text-link-destructive-dark': (rgb(178, 6, 0)),
|
388 | /* Text color for field labels. */
|
389 | 'color-text-label': (rgb(40, 42, 43)),
|
390 | 'z-index-0': (0),
|
391 | 'z-index-90': (90),
|
392 | 'z-index-80': (80),
|
393 | 'z-index-70': (70),
|
394 | 'z-index-60': (60),
|
395 | 'z-index-50': (50),
|
396 | 'z-index-40': (40),
|
397 | 'z-index-30': (30),
|
398 | 'z-index-20': (20),
|
399 | 'z-index-10': (10),
|
400 | );
|