@eui/styles 21.0.0-alpha.3 → 21.0.0-alpha.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/assets/icons/sprites/ecl.json +103 -0
- package/dist/assets/icons/sprites/ecl.svg +1 -0
- package/dist/assets/icons/sprites/eui.json +55 -138
- package/dist/assets/icons/sprites/eui.svg +1 -1
- package/dist/assets/icons/sprites/{phosphor-duotone.json → fill.json} +1 -1
- package/dist/assets/icons/sprites/fill.svg +1 -0
- package/dist/assets/icons/sprites/{phosphor-light.json → light.json} +1 -1
- package/dist/assets/icons/sprites/light.svg +1 -0
- package/dist/assets/icons/sprites/{phosphor-fill.json → regular.json} +1 -1
- package/dist/assets/icons/sprites/regular.svg +1 -0
- package/dist/base/01-base/functions/_other.functions.scss +15 -1
- package/dist/base/01-base/mixins/_accessibility.mixins.scss +6 -6
- package/dist/base/01-base/mixins/_eui-input.scss +8 -7
- package/dist/base/01-base/mixins/_eui-loading.scss +1 -1
- package/dist/base/01-base/mixins/_eui-scrollbars.scss +3 -3
- package/dist/base/01-base/mixins/_icon-svg.mixins.scss +3 -3
- package/dist/base/01-base/mixins/_loading-indicator.scss +2 -2
- package/dist/base/02-tokens/maps-dark-theme.scss +13 -127
- package/dist/base/02-tokens/maps.scss +539 -561
- package/dist/base/03-vars/vars-dark-theme.scss +12 -12
- package/dist/base/03-vars/vars-extras.scss +24 -24
- package/dist/base/03-vars/vars.scss +106 -103
- package/dist/base/05-assets/flags/_icons-generics.scss +8 -8
- package/dist/base/99-utilities/default/others/_eui-u-border-states.scss +6 -10
- package/dist/base/99-utilities/default/tokens/_color-states.scss +9 -9
- package/dist/base/99-utilities/default/tokens/_colors.scss +43 -16
- package/dist/base/99-utilities/default/tokens/_typography.scss +46 -15
- package/dist/eui-base.css +1 -1
- package/dist/eui-base.css.map +1 -1
- package/dist/eui-extra-vars.css +0 -1
- package/dist/eui-extra-vars.css.map +1 -1
- package/dist/eui-icons-flags.css +1 -1
- package/dist/eui-icons-flags.css.map +1 -1
- package/dist/eui-showcase-all.css +1 -1
- package/dist/eui-showcase-all.css.map +1 -1
- package/dist/eui-theme-compact.css +1 -1
- package/dist/eui-theme-compact.css.map +1 -1
- package/dist/eui-theme-dark.css +1 -1
- package/dist/eui-theme-dark.css.map +1 -1
- package/dist/eui-utilities-extras.css +1 -1
- package/dist/eui-utilities.css +1 -1
- package/dist/eui-utilities.css.map +1 -1
- package/dist/eui.css +1 -1
- package/dist/eui.css.map +1 -1
- package/package.json +3 -7
- package/dist/assets/icons/sprites/phosphor-duotone.svg +0 -1
- package/dist/assets/icons/sprites/phosphor-fill.svg +0 -1
- package/dist/assets/icons/sprites/phosphor-light.svg +0 -1
- package/dist/base/02-tokens/maps-legacy-theme.scss +0 -132
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
+
@use 'sass:color';
|
|
2
3
|
@use '../01-base/' as base;
|
|
3
4
|
|
|
4
5
|
// BORDER RADIUS
|
|
5
6
|
|
|
7
|
+
$ecl-border-radius: ( // v5.alpha.16
|
|
8
|
+
'xs': 2px,
|
|
9
|
+
's': 4px,
|
|
10
|
+
'm': 8px,
|
|
11
|
+
'l': 12px,
|
|
12
|
+
);
|
|
13
|
+
|
|
6
14
|
$border-radius-map: (
|
|
7
15
|
none: 0,
|
|
8
16
|
s: 2px,
|
|
@@ -89,22 +97,25 @@ $opacity-map: (
|
|
|
89
97
|
// SPACING
|
|
90
98
|
|
|
91
99
|
$spacing-map: (
|
|
92
|
-
none: 0,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
100
|
+
none: 0,
|
|
101
|
+
5xs: 0.0625rem, // 4xs
|
|
102
|
+
4xs: 0.125rem, // 3xs
|
|
103
|
+
3xs: 0.25rem, // 2xs
|
|
104
|
+
2xs: 0.375rem,
|
|
105
|
+
xs: 0.5rem, // ==
|
|
106
|
+
s: 0.75rem, // ==
|
|
107
|
+
m: 1rem, // ==
|
|
108
|
+
l: 1.25rem, // ==
|
|
109
|
+
xl: 1.5rem, // ==
|
|
110
|
+
2xl: 1.75rem, //
|
|
111
|
+
3xl: 2rem, // 2xl
|
|
112
|
+
4xl: 2.25rem, //
|
|
113
|
+
5xl: 2.5rem, // 3xl
|
|
114
|
+
6xl: 3rem, // 4xl
|
|
115
|
+
7xl: 3.5rem, // 5xl
|
|
116
|
+
8xl: 4rem, // 6xl
|
|
117
|
+
9xl: 4.5rem,
|
|
118
|
+
10xl: 5rem, // 7xl
|
|
108
119
|
);
|
|
109
120
|
|
|
110
121
|
|
|
@@ -141,39 +152,8 @@ $z-index-map: (
|
|
|
141
152
|
|
|
142
153
|
|
|
143
154
|
|
|
144
|
-
|
|
145
155
|
// COLORS
|
|
146
156
|
|
|
147
|
-
// eUI DEFAULT NEUTRAL
|
|
148
|
-
$eui-neutral-160: #131313;
|
|
149
|
-
$eui-neutral-140: #1d1d1d;
|
|
150
|
-
$eui-neutral-120: #262626;
|
|
151
|
-
$eui-neutral-110: #2b2b2b;
|
|
152
|
-
$eui-neutral-100: #303030;
|
|
153
|
-
$eui-neutral-80: #595959;
|
|
154
|
-
$eui-neutral-60: #838383;
|
|
155
|
-
$eui-neutral-40: #acacac;
|
|
156
|
-
$eui-neutral-20: #d6d6d6;
|
|
157
|
-
$eui-neutral-10: #eaeaea;
|
|
158
|
-
$eui-neutral-5: #f5f5f5;
|
|
159
|
-
$eui-neutral-2: #fcfcfc;
|
|
160
|
-
$eui-neutral-0: #fff;
|
|
161
|
-
|
|
162
|
-
// eui DEFAULT ACCENT (ec-yellow)
|
|
163
|
-
$eui-accent-160: #432105;
|
|
164
|
-
$eui-accent-140: #734110;
|
|
165
|
-
$eui-accent-120: #a46704;
|
|
166
|
-
$eui-accent-110: #ce9100;
|
|
167
|
-
$eui-accent-100: #efbc03;
|
|
168
|
-
$eui-accent-80: #ffd617;
|
|
169
|
-
$eui-accent-60: #ffe843;
|
|
170
|
-
$eui-accent-40: #fff587;
|
|
171
|
-
$eui-accent-20: #fffbc2;
|
|
172
|
-
$eui-accent-10: #fefde8;
|
|
173
|
-
$eui-accent-5: #fffcf7;
|
|
174
|
-
$eui-accent-0: #fff;
|
|
175
|
-
|
|
176
|
-
|
|
177
157
|
$ecl-colors: (
|
|
178
158
|
'primary-25': #f7f9ff,
|
|
179
159
|
'primary-50': #f2f6ff,
|
|
@@ -203,20 +183,6 @@ $ecl-colors: (
|
|
|
203
183
|
'secondary-900': #9e4107,
|
|
204
184
|
'secondary-950': #763105,
|
|
205
185
|
|
|
206
|
-
'neutral-25': #f9fafd,
|
|
207
|
-
'neutral-50': #eceff9,
|
|
208
|
-
'neutral-75': #d1d9f1,
|
|
209
|
-
'neutral-100': #c1ccec,
|
|
210
|
-
'neutral-200': #b0bde6,
|
|
211
|
-
'neutral-300': #9eaee1,
|
|
212
|
-
'neutral-400': #8ea1dc,
|
|
213
|
-
'neutral-500': #7c92d6,
|
|
214
|
-
'neutral-600': #6c85d1,
|
|
215
|
-
'neutral-700': #51649d,
|
|
216
|
-
'neutral-800': #41507d,
|
|
217
|
-
'neutral-900': #313c5e,
|
|
218
|
-
'neutral-950': #26324b,
|
|
219
|
-
|
|
220
186
|
'grey-25': #fafafb,
|
|
221
187
|
'grey-50': #f6f6f8,
|
|
222
188
|
'grey-75': #ededf0,
|
|
@@ -289,310 +255,348 @@ $ecl-colors: (
|
|
|
289
255
|
'warning-950': #512c0a
|
|
290
256
|
);
|
|
291
257
|
|
|
292
|
-
|
|
293
258
|
$color-map: (
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
60: map-get($ecl-colors, 'grey-800'),
|
|
300
|
-
40: map-get($ecl-colors, 'grey-700'),
|
|
301
|
-
20: map-get($ecl-colors, 'grey-600'),
|
|
302
|
-
10: map-get($ecl-colors, 'grey-500'),
|
|
303
|
-
5: map-get($ecl-colors, 'grey-400'),
|
|
304
|
-
2: map-get($ecl-colors, 'grey-300'),
|
|
305
|
-
0: map-get($ecl-colors, 'grey-200'),
|
|
259
|
+
br: (
|
|
260
|
+
950: map.get($ecl-colors, 'grey-950'),
|
|
261
|
+
900: map.get($ecl-colors, 'grey-900'),
|
|
262
|
+
800: map.get($ecl-colors, 'grey-800'),
|
|
263
|
+
700: map.get($ecl-colors, 'grey-700')
|
|
306
264
|
),
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
265
|
+
pr: (
|
|
266
|
+
950: map.get($ecl-colors, 'primary-950'),
|
|
267
|
+
900: map.get($ecl-colors, 'primary-900'),
|
|
268
|
+
800: map.get($ecl-colors, 'primary-800'),
|
|
269
|
+
700: map.get($ecl-colors, 'primary-700'),
|
|
270
|
+
600: map.get($ecl-colors, 'primary-600'),
|
|
271
|
+
500: map.get($ecl-colors, 'primary-500'),
|
|
272
|
+
400: map.get($ecl-colors, 'primary-400'),
|
|
273
|
+
300: map.get($ecl-colors, 'primary-300'),
|
|
274
|
+
200: map.get($ecl-colors, 'primary-200'),
|
|
275
|
+
100: map.get($ecl-colors, 'primary-100'),
|
|
276
|
+
75: map.get($ecl-colors, 'primary-75'),
|
|
277
|
+
50: map.get($ecl-colors, 'primary-50'),
|
|
278
|
+
25: map.get($ecl-colors, 'primary-25')
|
|
320
279
|
),
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
280
|
+
gr: (
|
|
281
|
+
950: map.get($ecl-colors, 'grey-950'),
|
|
282
|
+
900: map.get($ecl-colors, 'grey-900'),
|
|
283
|
+
800: map.get($ecl-colors, 'grey-800'),
|
|
284
|
+
700: map.get($ecl-colors, 'grey-700'),
|
|
285
|
+
600: map.get($ecl-colors, 'grey-600'),
|
|
286
|
+
500: map.get($ecl-colors, 'grey-500'),
|
|
287
|
+
400: map.get($ecl-colors, 'grey-400'),
|
|
288
|
+
300: map.get($ecl-colors, 'grey-300'),
|
|
289
|
+
200: map.get($ecl-colors, 'grey-200'),
|
|
290
|
+
100: map.get($ecl-colors, 'grey-100'),
|
|
291
|
+
75: map.get($ecl-colors, 'grey-75'),
|
|
292
|
+
50: map.get($ecl-colors, 'grey-50'),
|
|
293
|
+
25: map.get($ecl-colors, 'grey-25')
|
|
335
294
|
),
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
295
|
+
grn: (
|
|
296
|
+
950: #171717,
|
|
297
|
+
900: #313131,
|
|
298
|
+
800: #474747,
|
|
299
|
+
700: #606060,
|
|
300
|
+
600: #777777,
|
|
301
|
+
500: #909090,
|
|
302
|
+
400: #a9a9a9,
|
|
303
|
+
300: #bfbfbf,
|
|
304
|
+
200: #d8d8d8,
|
|
305
|
+
100: #e4e4e4,
|
|
306
|
+
75: #efefef,
|
|
307
|
+
50: #f7f7f7,
|
|
308
|
+
25: #fbfbfb
|
|
349
309
|
),
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
310
|
+
in: (
|
|
311
|
+
950: map.get($ecl-colors, 'info-950'),
|
|
312
|
+
900: map.get($ecl-colors, 'info-900'),
|
|
313
|
+
800: map.get($ecl-colors, 'info-800'),
|
|
314
|
+
700: map.get($ecl-colors, 'info-700'),
|
|
315
|
+
600: map.get($ecl-colors, 'info-600'),
|
|
316
|
+
500: map.get($ecl-colors, 'info-500'),
|
|
317
|
+
400: map.get($ecl-colors, 'info-400'),
|
|
318
|
+
300: map.get($ecl-colors, 'info-300'),
|
|
319
|
+
200: map.get($ecl-colors, 'info-200'),
|
|
320
|
+
100: map.get($ecl-colors, 'info-100'),
|
|
321
|
+
75: map.get($ecl-colors, 'info-75'),
|
|
322
|
+
50: map.get($ecl-colors, 'info-50'),
|
|
323
|
+
25: map.get($ecl-colors, 'info-25')
|
|
363
324
|
),
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
325
|
+
su: (
|
|
326
|
+
950: map.get($ecl-colors, 'success-950'),
|
|
327
|
+
900: map.get($ecl-colors, 'success-900'),
|
|
328
|
+
800: map.get($ecl-colors, 'success-800'),
|
|
329
|
+
700: map.get($ecl-colors, 'success-700'),
|
|
330
|
+
600: map.get($ecl-colors, 'success-600'),
|
|
331
|
+
500: map.get($ecl-colors, 'success-500'),
|
|
332
|
+
400: map.get($ecl-colors, 'success-400'),
|
|
333
|
+
300: map.get($ecl-colors, 'success-300'),
|
|
334
|
+
200: map.get($ecl-colors, 'success-200'),
|
|
335
|
+
100: map.get($ecl-colors, 'success-100'),
|
|
336
|
+
75: map.get($ecl-colors, 'success-75'),
|
|
337
|
+
50: map.get($ecl-colors, 'success-50'),
|
|
338
|
+
25: map.get($ecl-colors, 'success-25')
|
|
377
339
|
),
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
340
|
+
wa: (
|
|
341
|
+
950: map.get($ecl-colors, 'warning-950'),
|
|
342
|
+
900: map.get($ecl-colors, 'warning-900'),
|
|
343
|
+
800: map.get($ecl-colors, 'warning-800'),
|
|
344
|
+
700: map.get($ecl-colors, 'warning-700'),
|
|
345
|
+
600: map.get($ecl-colors, 'warning-600'),
|
|
346
|
+
500: map.get($ecl-colors, 'warning-500'),
|
|
347
|
+
400: map.get($ecl-colors, 'warning-400'),
|
|
348
|
+
300: map.get($ecl-colors, 'warning-300'),
|
|
349
|
+
200: map.get($ecl-colors, 'warning-200'),
|
|
350
|
+
100: map.get($ecl-colors, 'warning-100'),
|
|
351
|
+
75: map.get($ecl-colors, 'warning-75'),
|
|
352
|
+
50: map.get($ecl-colors, 'warning-50'),
|
|
353
|
+
25: map.get($ecl-colors, 'warning-25')
|
|
391
354
|
),
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
355
|
+
da: (
|
|
356
|
+
950: map.get($ecl-colors, 'error-950'),
|
|
357
|
+
900: map.get($ecl-colors, 'error-900'),
|
|
358
|
+
800: map.get($ecl-colors, 'error-800'),
|
|
359
|
+
700: map.get($ecl-colors, 'error-700'),
|
|
360
|
+
600: map.get($ecl-colors, 'error-600'),
|
|
361
|
+
500: map.get($ecl-colors, 'error-500'),
|
|
362
|
+
400: map.get($ecl-colors, 'error-400'),
|
|
363
|
+
300: map.get($ecl-colors, 'error-300'),
|
|
364
|
+
200: map.get($ecl-colors, 'error-200'),
|
|
365
|
+
100: map.get($ecl-colors, 'error-100'),
|
|
366
|
+
75: map.get($ecl-colors, 'error-75'),
|
|
367
|
+
50: map.get($ecl-colors, 'error-50'),
|
|
368
|
+
25: map.get($ecl-colors, 'error-25')
|
|
405
369
|
),
|
|
406
370
|
cta: (
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
371
|
+
950: map.get($ecl-colors, 'secondary-950'),
|
|
372
|
+
900: map.get($ecl-colors, 'secondary-900'),
|
|
373
|
+
800: map.get($ecl-colors, 'secondary-800'),
|
|
374
|
+
700: map.get($ecl-colors, 'secondary-700'),
|
|
375
|
+
600: map.get($ecl-colors, 'secondary-600'),
|
|
376
|
+
500: map.get($ecl-colors, 'secondary-500'),
|
|
377
|
+
400: map.get($ecl-colors, 'secondary-400'),
|
|
378
|
+
300: map.get($ecl-colors, 'secondary-300'),
|
|
379
|
+
200: map.get($ecl-colors, 'secondary-200'),
|
|
380
|
+
100: map.get($ecl-colors, 'secondary-100'),
|
|
381
|
+
75: map.get($ecl-colors, 'secondary-75'),
|
|
382
|
+
50: map.get($ecl-colors, 'secondary-50'),
|
|
383
|
+
25: map.get($ecl-colors, 'secondary-25')
|
|
419
384
|
)
|
|
420
385
|
);
|
|
421
386
|
|
|
422
|
-
// COLOR CONTEXT
|
|
423
|
-
|
|
424
|
-
$color-context-map: (
|
|
425
|
-
branding: (
|
|
426
|
-
base: '100', dark: '120', light: '80', lighter: '40', lightest: '20', bg: '10', bg-light: '5', bg-lighter: '2'
|
|
427
|
-
),
|
|
428
|
-
neutral: (
|
|
429
|
-
base: '100', darkest: '160', darker: '140', dark: '110', light: '80', lighter: '40', lightest: '20', bg: '10', bg-light: '5', bg-lighter: '3'
|
|
430
|
-
),
|
|
431
|
-
cta: (
|
|
432
|
-
base: '100', darkest: '160', darker: '140', dark: '110', light: '80', lighter: '40', lightest: '20', bg: '10', bg-light: '5'
|
|
433
|
-
),
|
|
434
|
-
primary: (
|
|
435
|
-
base: '100', darkest: '160', darker: '140', dark: '110', light: '80', lighter: '40', lightest: '20', bg: '10', bg-light: '5'
|
|
436
|
-
),
|
|
437
|
-
info: (
|
|
438
|
-
base: '100', darkest: '160', darker: '140', dark: '110', light: '80', lighter: '40', lightest: '20', bg: '10', bg-light: '5'
|
|
439
|
-
),
|
|
440
|
-
accent: (
|
|
441
|
-
base: '100', darkest: '160', darker: '140', dark: '110', light: '80', lighter: '40', lightest: '20', bg: '10', bg-light: '5'
|
|
442
|
-
),
|
|
443
|
-
success: (
|
|
444
|
-
base: '100', darkest: '160', darker: '140', dark: '110', light: '80', lighter: '40', lightest: '20', bg: '10', bg-light: '5'
|
|
445
|
-
),
|
|
446
|
-
warning: (
|
|
447
|
-
base: '100', darkest: '160', darker: '140', dark: '110', light: '80', lighter: '40', lightest: '20', bg: '10', bg-light: '5'
|
|
448
|
-
),
|
|
449
|
-
danger: (
|
|
450
|
-
base: '100', darkest: '160', darker: '140', dark: '110', light: '80', lighter: '40', lightest: '20', bg: '10', bg-light: '5'
|
|
451
|
-
)
|
|
452
|
-
);
|
|
453
|
-
|
|
454
|
-
|
|
455
387
|
// COLOR STATES
|
|
456
388
|
|
|
457
389
|
$color-state-map: (
|
|
458
|
-
|
|
390
|
+
branding: (
|
|
391
|
+
base: 'br-900',
|
|
392
|
+
default: 'br-900',
|
|
393
|
+
lighter: 'br-700',
|
|
394
|
+
on-lighter: 'br-700-contrast',
|
|
395
|
+
light: 'br-800',
|
|
396
|
+
on-light: 'br-800-contrast',
|
|
397
|
+
dark: 'br-950',
|
|
398
|
+
on-dark: 'br-950-contrast',
|
|
399
|
+
),
|
|
459
400
|
primary: (
|
|
460
|
-
base: '
|
|
461
|
-
default: '
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
on-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
surface: '
|
|
472
|
-
surface-
|
|
473
|
-
surface-hover: '
|
|
474
|
-
surface-
|
|
401
|
+
base: 'pr-600',
|
|
402
|
+
default: 'pr-700',
|
|
403
|
+
lighter: 'pr-500',
|
|
404
|
+
on-lighter: 'pr-500-contrast',
|
|
405
|
+
light: 'pr-600',
|
|
406
|
+
on-light: 'pr-600-contrast',
|
|
407
|
+
dark: 'pr-900',
|
|
408
|
+
on-dark: 'pr-900-contrast',
|
|
409
|
+
darker: 'pr-950',
|
|
410
|
+
on-darker: 'pr-950-contrast',
|
|
411
|
+
surface-light: 'pr-75',
|
|
412
|
+
on-surface-light: 'pr-900',
|
|
413
|
+
surface-light-hover: 'pr-100',
|
|
414
|
+
on-surface-light-hover: 'pr-950',
|
|
415
|
+
surface-medium: 'pr-200',
|
|
416
|
+
on-surface-medium: 'pr-950',
|
|
417
|
+
surface: 'pr-600',
|
|
418
|
+
on-surface: 'pr-600-contrast',
|
|
419
|
+
surface-hover: 'pr-700',
|
|
420
|
+
on-surface-hover: 'pr-700-contrast',
|
|
421
|
+
border: 'pr-500',
|
|
422
|
+
border-light: 'pr-300',
|
|
423
|
+
border-lighter: 'pr-200'
|
|
475
424
|
),
|
|
476
|
-
// base, darkest, darker, dark, light, lighter, lightest, bg, bg-light
|
|
477
425
|
secondary: (
|
|
478
|
-
base: '
|
|
479
|
-
default: '
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
on-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
surface: '
|
|
490
|
-
surface-
|
|
491
|
-
surface-hover: '
|
|
492
|
-
surface-
|
|
426
|
+
base: 'gr-500',
|
|
427
|
+
default: 'gr-800',
|
|
428
|
+
lighter: 'gr-600',
|
|
429
|
+
on-lighter: 'gr-600-contrast',
|
|
430
|
+
light: 'gr-700',
|
|
431
|
+
on-light: 'gr-700-contrast',
|
|
432
|
+
dark: 'gr-900',
|
|
433
|
+
on-dark: 'gr-900-contrast',
|
|
434
|
+
darker: 'gr-950',
|
|
435
|
+
on-darker: 'gr-950-contrast',
|
|
436
|
+
surface-light: 'gr-50',
|
|
437
|
+
on-surface-light: 'gr-900',
|
|
438
|
+
surface-light-hover: 'gr-75',
|
|
439
|
+
on-surface-light-hover: 'gr-950',
|
|
440
|
+
surface-medium: 'gr-200',
|
|
441
|
+
on-surface-medium: 'gr-900',
|
|
442
|
+
surface: 'gr-600',
|
|
443
|
+
on-surface: 'gr-600-contrast',
|
|
444
|
+
surface-hover: 'gr-700',
|
|
445
|
+
on-surface-hover: 'gr-700-contrast',
|
|
446
|
+
border: 'gr-500',
|
|
447
|
+
border-light: 'gr-400',
|
|
448
|
+
border-lighter: 'gr-300'
|
|
449
|
+
),
|
|
450
|
+
neutral: (
|
|
451
|
+
base: 'grn-500',
|
|
452
|
+
default: 'grn-800',
|
|
453
|
+
lighter: 'grn-600',
|
|
454
|
+
on-lighter: 'grn-600-contrast',
|
|
455
|
+
light: 'grn-700',
|
|
456
|
+
on-light: 'grn-700-contrast',
|
|
457
|
+
dark: 'grn-900',
|
|
458
|
+
on-dark: 'grn-900-contrast',
|
|
459
|
+
darker: 'grn-950',
|
|
460
|
+
on-darker: 'grn-950-contrast',
|
|
461
|
+
surface-light: 'grn-50',
|
|
462
|
+
on-surface-light: 'grn-900',
|
|
463
|
+
surface-light-hover: 'grn-75',
|
|
464
|
+
on-surface-light-hover: 'grn-950',
|
|
465
|
+
surface-medium: 'grn-100',
|
|
466
|
+
on-surface-medium: 'grn-900',
|
|
467
|
+
surface: 'grn-400',
|
|
468
|
+
on-surface: 'grn-400-contrast',
|
|
469
|
+
surface-hover: 'grn-300',
|
|
470
|
+
on-surface-hover: 'grn-300-contrast',
|
|
471
|
+
border: 'grn-500',
|
|
472
|
+
border-light: 'grn-400',
|
|
473
|
+
border-lighter: 'grn-300'
|
|
493
474
|
),
|
|
494
475
|
cta: (
|
|
495
|
-
base: 'cta',
|
|
496
|
-
default: 'cta-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
on-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
surface: 'cta',
|
|
507
|
-
surface-
|
|
508
|
-
surface-hover: 'cta-
|
|
509
|
-
surface-
|
|
476
|
+
base: 'cta-400',
|
|
477
|
+
default: 'cta-900',
|
|
478
|
+
lighter: 'cta-400',
|
|
479
|
+
on-lighter: 'cta-400-contrast',
|
|
480
|
+
light: 'cta-500',
|
|
481
|
+
on-light: 'cta-500-contrast',
|
|
482
|
+
dark: 'cta-800',
|
|
483
|
+
on-dark: 'cta-800-contrast',
|
|
484
|
+
darker: 'cta-900',
|
|
485
|
+
on-darker: 'cta-900-contrast',
|
|
486
|
+
surface-light: 'cta-25',
|
|
487
|
+
on-surface-light: 'cta-800',
|
|
488
|
+
surface-light-hover: 'cta-50',
|
|
489
|
+
on-surface-light-hover: 'cta-950',
|
|
490
|
+
surface-medium: 'cta-75',
|
|
491
|
+
on-surface-medium: 'cta-900',
|
|
492
|
+
surface: 'cta-400',
|
|
493
|
+
on-surface: 'cta-400-contrast',
|
|
494
|
+
surface-hover: 'cta-500',
|
|
495
|
+
on-surface-hover: 'cta-500-contrast',
|
|
496
|
+
border: 'cta-300',
|
|
497
|
+
border-light: 'cta-100',
|
|
498
|
+
border-lighter: 'cta-75'
|
|
510
499
|
),
|
|
511
500
|
info: (
|
|
512
|
-
base: '
|
|
513
|
-
default: '
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
on-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
surface: '
|
|
524
|
-
surface-
|
|
525
|
-
surface-hover: '
|
|
526
|
-
surface-
|
|
501
|
+
base: 'in-500',
|
|
502
|
+
default: 'in-600',
|
|
503
|
+
lighter: 'in-400',
|
|
504
|
+
on-lighter: 'in-400-contrast',
|
|
505
|
+
light: 'in-500',
|
|
506
|
+
on-light: 'in-500-contrast',
|
|
507
|
+
dark: 'in-800',
|
|
508
|
+
on-dark: 'in-800-contrast',
|
|
509
|
+
darker: 'in-900',
|
|
510
|
+
on-darker: 'in-900-contrast',
|
|
511
|
+
surface-light: 'in-50',
|
|
512
|
+
on-surface-light: 'in-600',
|
|
513
|
+
surface-light-hover: 'in-75',
|
|
514
|
+
on-surface-light-hover: 'in-800',
|
|
515
|
+
surface-medium: 'in-100',
|
|
516
|
+
on-surface-medium: 'in-950',
|
|
517
|
+
surface: 'in-600',
|
|
518
|
+
on-surface: 'in-600-contrast',
|
|
519
|
+
surface-hover: 'in-800',
|
|
520
|
+
on-surface-hover: 'in-800-contrast',
|
|
521
|
+
border: 'in-400',
|
|
522
|
+
border-light: 'in-200',
|
|
523
|
+
border-lighter: 'in-100'
|
|
527
524
|
),
|
|
528
525
|
success: (
|
|
529
|
-
base: '
|
|
530
|
-
default: '
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
on-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
surface: '
|
|
541
|
-
surface-
|
|
542
|
-
surface-hover: '
|
|
543
|
-
surface-
|
|
526
|
+
base: 'su-700',
|
|
527
|
+
default: 'su-900',
|
|
528
|
+
lighter: 'su-700',
|
|
529
|
+
on-lighter: 'su-700-contrast',
|
|
530
|
+
light: 'su-800',
|
|
531
|
+
on-light: 'su-800-contrast',
|
|
532
|
+
dark: 'su-900',
|
|
533
|
+
on-dark: 'su-900-contrast',
|
|
534
|
+
darker: 'su-950',
|
|
535
|
+
on-darker: 'su-950-contrast',
|
|
536
|
+
surface-light: 'su-100',
|
|
537
|
+
on-surface-light: 'su-950',
|
|
538
|
+
surface-light-hover: 'su-200',
|
|
539
|
+
on-surface-light-hover: 'su-950',
|
|
540
|
+
surface-medium: 'su-300',
|
|
541
|
+
on-surface-medium: 'su-950',
|
|
542
|
+
surface: 'su-900',
|
|
543
|
+
on-surface: 'su-950-contrast',
|
|
544
|
+
surface-hover: 'su-950',
|
|
545
|
+
on-surface-hover: 'su-950-contrast',
|
|
546
|
+
border: 'su-600',
|
|
547
|
+
border-light: 'su-400',
|
|
548
|
+
border-lighter: 'su-300'
|
|
544
549
|
),
|
|
545
550
|
warning: (
|
|
546
|
-
base: '
|
|
547
|
-
default: '
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
on-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
surface: '
|
|
558
|
-
surface-
|
|
559
|
-
surface-hover: '
|
|
560
|
-
surface-
|
|
551
|
+
base: 'wa-500',
|
|
552
|
+
default: 'wa-800',
|
|
553
|
+
lighter: 'wa-500',
|
|
554
|
+
on-lighter: 'wa-500-contrast',
|
|
555
|
+
light: 'wa-600',
|
|
556
|
+
on-light: 'wa-600-contrast',
|
|
557
|
+
dark: 'wa-900',
|
|
558
|
+
on-dark: 'wa-900-contrast',
|
|
559
|
+
darker: 'wa-950',
|
|
560
|
+
on-darker: 'wa-950-contrast',
|
|
561
|
+
surface-light: 'wa-50',
|
|
562
|
+
on-surface-light: 'wa-900',
|
|
563
|
+
surface-light-hover: 'wa-75',
|
|
564
|
+
on-surface-light-hover: 'wa-950',
|
|
565
|
+
surface-medium: 'wa-100',
|
|
566
|
+
on-surface-medium: 'wa-900',
|
|
567
|
+
surface: 'wa-500',
|
|
568
|
+
on-surface: 'wa-500-contrast',
|
|
569
|
+
surface-hover: 'wa-600',
|
|
570
|
+
on-surface-hover: 'wa-600-contrast',
|
|
571
|
+
border: 'wa-400',
|
|
572
|
+
border-light: 'wa-200',
|
|
573
|
+
border-lighter: 'wa-100'
|
|
561
574
|
),
|
|
562
575
|
danger: (
|
|
563
|
-
base: '
|
|
564
|
-
default: '
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
on-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
surface: '
|
|
575
|
-
surface-
|
|
576
|
-
surface-hover: '
|
|
577
|
-
surface-
|
|
576
|
+
base: 'da-600',
|
|
577
|
+
default: 'da-600',
|
|
578
|
+
lighter: 'da-400',
|
|
579
|
+
on-lighter: 'da-400-contrast',
|
|
580
|
+
light: 'da-500',
|
|
581
|
+
on-light: 'da-500-contrast',
|
|
582
|
+
dark: 'da-700',
|
|
583
|
+
on-dark: 'da-700-contrast',
|
|
584
|
+
darker: 'da-800',
|
|
585
|
+
on-darker: 'da-800-contrast',
|
|
586
|
+
surface-light: 'da-75',
|
|
587
|
+
on-surface-light: 'da-700',
|
|
588
|
+
surface-light-hover: 'da-100',
|
|
589
|
+
on-surface-light-hover: 'da-900',
|
|
590
|
+
surface-medium: 'da-200',
|
|
591
|
+
on-surface-medium: 'da-900',
|
|
592
|
+
surface: 'da-600',
|
|
593
|
+
on-surface: 'da-600-contrast',
|
|
594
|
+
surface-hover: 'da-700',
|
|
595
|
+
on-surface-hover: 'da-700-contrast',
|
|
596
|
+
border: 'da-500',
|
|
597
|
+
border-light: 'da-300',
|
|
598
|
+
border-lighter: 'da-200'
|
|
578
599
|
),
|
|
579
|
-
accent: (
|
|
580
|
-
base: 'accent',
|
|
581
|
-
default: 'accent-darkest',
|
|
582
|
-
on-surface-light: 'accent-darkest',
|
|
583
|
-
surface-light: 'accent-bg',
|
|
584
|
-
surface-light-contrast: 'accent-bg-contrast',
|
|
585
|
-
surface-light-hover: 'accent-lightest',
|
|
586
|
-
surface-medium: 'accent-lightest',
|
|
587
|
-
on-surface-medium: 'accent-darkest',
|
|
588
|
-
border: 'accent-light',
|
|
589
|
-
border-light: 'accent-lighter',
|
|
590
|
-
border-lighter: 'accent-lightest',
|
|
591
|
-
surface: 'accent-light',
|
|
592
|
-
surface-contrast: 'accent-light-contrast',
|
|
593
|
-
surface-hover: 'accent',
|
|
594
|
-
surface-hover-contrast: 'accent-contrast'
|
|
595
|
-
)
|
|
596
600
|
);
|
|
597
601
|
|
|
598
602
|
// SHADOWS
|
|
@@ -608,213 +612,14 @@ $ecl-shadow: (
|
|
|
608
612
|
|
|
609
613
|
$box-shadow-map: (
|
|
610
614
|
0: none,
|
|
611
|
-
1: map
|
|
612
|
-
2: map
|
|
613
|
-
3: map
|
|
614
|
-
4: map
|
|
615
|
-
5: map
|
|
616
|
-
6: map-get($ecl-shadow, 5),
|
|
617
|
-
8: map-get($ecl-shadow, 5),
|
|
618
|
-
9: map-get($ecl-shadow, 5),
|
|
619
|
-
12: map-get($ecl-shadow, 5),
|
|
620
|
-
16: map-get($ecl-shadow, 5),
|
|
621
|
-
24: map-get($ecl-shadow, 5),
|
|
622
|
-
card: map-get($ecl-shadow, 1),
|
|
615
|
+
1: map.get($ecl-shadow, 1),
|
|
616
|
+
2: map.get($ecl-shadow, 2),
|
|
617
|
+
3: map.get($ecl-shadow, 5),
|
|
618
|
+
4: map.get($ecl-shadow, 4),
|
|
619
|
+
5: map.get($ecl-shadow, 5)
|
|
623
620
|
);
|
|
624
621
|
|
|
625
622
|
|
|
626
|
-
// TYPOGRAPHY
|
|
627
|
-
|
|
628
|
-
$font-weight-map: (
|
|
629
|
-
'regular': 400,
|
|
630
|
-
'medium': 500,
|
|
631
|
-
'semi-bold': 600,
|
|
632
|
-
'bold': 700
|
|
633
|
-
);
|
|
634
|
-
|
|
635
|
-
$font-map: (
|
|
636
|
-
'display': (
|
|
637
|
-
'm': (
|
|
638
|
-
'desktop': (
|
|
639
|
-
'size': 3rem,
|
|
640
|
-
'line-height': 3.5rem
|
|
641
|
-
),
|
|
642
|
-
'tablet': (
|
|
643
|
-
'size': 2.75rem,
|
|
644
|
-
'line-height': 3.25rem
|
|
645
|
-
),
|
|
646
|
-
'mobile': (
|
|
647
|
-
'size': 2rem,
|
|
648
|
-
'line-height': 2.25rem
|
|
649
|
-
)
|
|
650
|
-
)
|
|
651
|
-
),
|
|
652
|
-
'title': (
|
|
653
|
-
'xl': (
|
|
654
|
-
'desktop': (
|
|
655
|
-
'size': 2.5rem,
|
|
656
|
-
'line-height': 3rem
|
|
657
|
-
),
|
|
658
|
-
'tablet': (
|
|
659
|
-
'size': 2rem,
|
|
660
|
-
'line-height': 2.75rem
|
|
661
|
-
),
|
|
662
|
-
'mobile': (
|
|
663
|
-
'size': 1.75rem,
|
|
664
|
-
'line-height': 2.5rem
|
|
665
|
-
)
|
|
666
|
-
),
|
|
667
|
-
'xs': (
|
|
668
|
-
'desktop': (
|
|
669
|
-
'size': 1.25rem,
|
|
670
|
-
'line-height': 1.75rem
|
|
671
|
-
),
|
|
672
|
-
'tablet': (
|
|
673
|
-
'size': 1.25rem,
|
|
674
|
-
'line-height': 1.75rem
|
|
675
|
-
),
|
|
676
|
-
'mobile': (
|
|
677
|
-
'size': 1.2rem,
|
|
678
|
-
'line-height': 1.5rem
|
|
679
|
-
)
|
|
680
|
-
),
|
|
681
|
-
'2xs': (
|
|
682
|
-
'desktop': (
|
|
683
|
-
'size': 1rem,
|
|
684
|
-
'line-height': 1.5rem
|
|
685
|
-
),
|
|
686
|
-
'tablet': (
|
|
687
|
-
'size': 1rem,
|
|
688
|
-
'line-height': 1.5rem
|
|
689
|
-
),
|
|
690
|
-
'mobile': (
|
|
691
|
-
'size': 1rem,
|
|
692
|
-
'line-height': 1.5rem
|
|
693
|
-
)
|
|
694
|
-
)
|
|
695
|
-
),
|
|
696
|
-
'card-title': (
|
|
697
|
-
'm': (
|
|
698
|
-
'desktop': (
|
|
699
|
-
'size': 1.125rem,
|
|
700
|
-
'line-height': 1.5rem
|
|
701
|
-
),
|
|
702
|
-
'tablet': (
|
|
703
|
-
'size': 1.125rem,
|
|
704
|
-
'line-height': 1.5rem
|
|
705
|
-
),
|
|
706
|
-
'mobile': (
|
|
707
|
-
'size': 1.125rem,
|
|
708
|
-
'line-height': 1.5rem
|
|
709
|
-
)
|
|
710
|
-
)
|
|
711
|
-
),
|
|
712
|
-
'label': (
|
|
713
|
-
'm': (
|
|
714
|
-
'desktop': (
|
|
715
|
-
'size': 0.875rem,
|
|
716
|
-
'line-height': 1.25rem
|
|
717
|
-
),
|
|
718
|
-
'tablet': (
|
|
719
|
-
'size': 0.875rem,
|
|
720
|
-
'line-height': 1.25rem
|
|
721
|
-
),
|
|
722
|
-
'mobile': (
|
|
723
|
-
'size': 0.875rem,
|
|
724
|
-
'line-height': 1.25rem
|
|
725
|
-
)
|
|
726
|
-
),
|
|
727
|
-
'l': (
|
|
728
|
-
'desktop': (
|
|
729
|
-
'size': 1rem,
|
|
730
|
-
'line-height': 1.5rem
|
|
731
|
-
),
|
|
732
|
-
'tablet': (
|
|
733
|
-
'size': 1rem,
|
|
734
|
-
'line-height': 1.5rem
|
|
735
|
-
),
|
|
736
|
-
'mobile': (
|
|
737
|
-
'size': 1rem,
|
|
738
|
-
'line-height': 1.5rem
|
|
739
|
-
)
|
|
740
|
-
)
|
|
741
|
-
),
|
|
742
|
-
'body': (
|
|
743
|
-
's': (
|
|
744
|
-
'desktop': (
|
|
745
|
-
'size': 0.875rem,
|
|
746
|
-
'line-height': 1.25rem
|
|
747
|
-
),
|
|
748
|
-
'tablet': (
|
|
749
|
-
'size': 0.875rem,
|
|
750
|
-
'line-height': 1.25rem
|
|
751
|
-
),
|
|
752
|
-
'mobile': (
|
|
753
|
-
'size': 0.875rem,
|
|
754
|
-
'line-height': 1.25rem
|
|
755
|
-
)
|
|
756
|
-
),
|
|
757
|
-
'm': (
|
|
758
|
-
'desktop': (
|
|
759
|
-
'size': 1rem,
|
|
760
|
-
'line-height': 1.5rem
|
|
761
|
-
),
|
|
762
|
-
'tablet': (
|
|
763
|
-
'size': 1rem,
|
|
764
|
-
'line-height': 1.5rem
|
|
765
|
-
),
|
|
766
|
-
'mobile': (
|
|
767
|
-
'size': 1rem,
|
|
768
|
-
'line-height': 1.5rem
|
|
769
|
-
)
|
|
770
|
-
),
|
|
771
|
-
'l': (
|
|
772
|
-
'desktop': (
|
|
773
|
-
'size': 1.25rem,
|
|
774
|
-
'line-height': 1.75rem
|
|
775
|
-
),
|
|
776
|
-
'tablet': (
|
|
777
|
-
'size': 1.25rem,
|
|
778
|
-
'line-height': 1.75rem
|
|
779
|
-
),
|
|
780
|
-
'mobile': (
|
|
781
|
-
'size': 1.25rem,
|
|
782
|
-
'line-height': 1.75rem
|
|
783
|
-
)
|
|
784
|
-
),
|
|
785
|
-
'xl': (
|
|
786
|
-
'desktop': (
|
|
787
|
-
'size': 1.5rem,
|
|
788
|
-
'line-height': 2rem
|
|
789
|
-
),
|
|
790
|
-
'tablet': (
|
|
791
|
-
'size': 1.5rem,
|
|
792
|
-
'line-height': 2rem
|
|
793
|
-
),
|
|
794
|
-
'mobile': (
|
|
795
|
-
'size': 1.5rem,
|
|
796
|
-
'line-height': 2rem
|
|
797
|
-
)
|
|
798
|
-
)
|
|
799
|
-
),
|
|
800
|
-
'microcopy': (
|
|
801
|
-
'm': (
|
|
802
|
-
'desktop': (
|
|
803
|
-
'size': 0.75rem,
|
|
804
|
-
'line-height': 1rem
|
|
805
|
-
),
|
|
806
|
-
'tablet': (
|
|
807
|
-
'size': 0.75rem,
|
|
808
|
-
'line-height': 1rem
|
|
809
|
-
),
|
|
810
|
-
'mobile': (
|
|
811
|
-
'size': 0.75rem,
|
|
812
|
-
'line-height': 1rem
|
|
813
|
-
)
|
|
814
|
-
)
|
|
815
|
-
)
|
|
816
|
-
);
|
|
817
|
-
|
|
818
623
|
// TYPOGRAPHY
|
|
819
624
|
|
|
820
625
|
$font-size-list: (
|
|
@@ -822,27 +627,6 @@ $font-size-list: (
|
|
|
822
627
|
'2xs-compact', 'xs-compact', 's-compact', 'm-compact', 'l-compact', 'xl-compact', '2xl-compact', '3xl-compact', '4xl-compact', '5xl-compact', '6xl-compact'
|
|
823
628
|
);
|
|
824
629
|
|
|
825
|
-
$font-size-map: (
|
|
826
|
-
2xs: 0.675rem,
|
|
827
|
-
xs: 0.75rem,
|
|
828
|
-
s: 0.875rem,
|
|
829
|
-
m: 1rem,
|
|
830
|
-
l: 1.25rem,
|
|
831
|
-
xl: 1.5rem,
|
|
832
|
-
2xl: 1.75rem,
|
|
833
|
-
3xl: 2rem,
|
|
834
|
-
4xl: 2.5rem,
|
|
835
|
-
5xl: 2.75rem,
|
|
836
|
-
6xl: 3rem
|
|
837
|
-
);
|
|
838
|
-
|
|
839
|
-
$font-weight-map: (
|
|
840
|
-
regular: 400,
|
|
841
|
-
medium: 400,
|
|
842
|
-
semi-bold: 700,
|
|
843
|
-
bold: 700
|
|
844
|
-
);
|
|
845
|
-
|
|
846
630
|
$font-line-height-map: (
|
|
847
631
|
2xs: 1rem,
|
|
848
632
|
xs: 1.25rem,
|
|
@@ -866,4 +650,198 @@ $font-line-height-map: (
|
|
|
866
650
|
4xl-compact: 2.75rem,
|
|
867
651
|
5xl-compact: 3rem,
|
|
868
652
|
6xl-compact: 3.25rem
|
|
869
|
-
);
|
|
653
|
+
);
|
|
654
|
+
|
|
655
|
+
$font-size-map: (
|
|
656
|
+
2xs: 0.675rem,
|
|
657
|
+
xs: 0.75rem,
|
|
658
|
+
s: 0.875rem,
|
|
659
|
+
m: 1rem,
|
|
660
|
+
l: 1.25rem,
|
|
661
|
+
xl: 1.5rem,
|
|
662
|
+
2xl: 1.75rem,
|
|
663
|
+
3xl: 2rem,
|
|
664
|
+
4xl: 2.5rem,
|
|
665
|
+
5xl: 2.75rem,
|
|
666
|
+
6xl: 3rem
|
|
667
|
+
);
|
|
668
|
+
|
|
669
|
+
$font-weight-map: (
|
|
670
|
+
'regular': 400,
|
|
671
|
+
'medium': 500,
|
|
672
|
+
'semi-bold': 600,
|
|
673
|
+
'bold': 700
|
|
674
|
+
);
|
|
675
|
+
|
|
676
|
+
// ecl font sizes for example, but driven by m = 18px base
|
|
677
|
+
|
|
678
|
+
// $ecl-font-size: (
|
|
679
|
+
// '10xl': 6rem,
|
|
680
|
+
// '9xl': 4.5rem,
|
|
681
|
+
// '8xl': 3.75rem,
|
|
682
|
+
// '7xl': 3.25rem,
|
|
683
|
+
// '6xl': 2.5rem,
|
|
684
|
+
// '5xl': 2.25rem,
|
|
685
|
+
// '4xl': 2rem,
|
|
686
|
+
// '3xl': 1.75rem,
|
|
687
|
+
// '2xl': 1.5rem,
|
|
688
|
+
// 'xl': 1.375rem,
|
|
689
|
+
// 'l': 1.25rem,
|
|
690
|
+
// 'm': 1.125rem,
|
|
691
|
+
// 's': 1rem,
|
|
692
|
+
// 'xs': 0.875rem,
|
|
693
|
+
// '2xs': 0.75rem
|
|
694
|
+
// );
|
|
695
|
+
|
|
696
|
+
// $ecl-line-height: (
|
|
697
|
+
// '10xl': 6.25rem,
|
|
698
|
+
// '9xl': 4.875rem,
|
|
699
|
+
// '8xl': 4.25rem,
|
|
700
|
+
// '7xl': 3.75rem,
|
|
701
|
+
// '6xl': 3.5rem,
|
|
702
|
+
// '5xl': 3.25rem,
|
|
703
|
+
// '4xl': 3rem,
|
|
704
|
+
// '3xl': 2.75rem,
|
|
705
|
+
// '2xl': 2.5rem,
|
|
706
|
+
// 'xl': 2.25rem,
|
|
707
|
+
// 'l': 2rem,
|
|
708
|
+
// 'm': 1.75rem,
|
|
709
|
+
// 's': 1.5rem,
|
|
710
|
+
// 'xs': 1.25rem,
|
|
711
|
+
// '2xs': 1rem,
|
|
712
|
+
// '3xs': 0.875rem,
|
|
713
|
+
// );
|
|
714
|
+
// $ecl-font: (
|
|
715
|
+
// '10xl': #{map.get($font-size, '10xl') + '/' + map.get($line-height, '10xl')}
|
|
716
|
+
// #{map.get($font-family, 'default')},
|
|
717
|
+
// '9xl': #{map.get($font-size, '9xl') + '/' + map.get($line-height, '9xl')}
|
|
718
|
+
// #{map.get($font-family, 'default')},
|
|
719
|
+
// '8xl': #{map.get($font-size, '8xl') + '/' + map.get($line-height, '8xl')}
|
|
720
|
+
// #{map.get($font-family, 'default')},
|
|
721
|
+
// '7xl': #{map.get($font-size, '7xl') + '/' + map.get($line-height, '7xl')}
|
|
722
|
+
// #{map.get($font-family, 'default')},
|
|
723
|
+
// '6xl': #{map.get($font-size, '6xl') + '/' + map.get($line-height, '4xl')}
|
|
724
|
+
// #{map.get($font-family, 'default')},
|
|
725
|
+
// '5xl': #{map.get($font-size, '5xl') + '/' + map.get($line-height, '4xl')}
|
|
726
|
+
// #{map.get($font-family, 'default')},
|
|
727
|
+
// '4xl': #{map.get($font-size, '4xl') + '/' + map.get($line-height, '3xl')}
|
|
728
|
+
// #{map.get($font-family, 'default')},
|
|
729
|
+
// '3xl': #{map.get($font-size, '3xl') + '/' + map.get($line-height, 'xl')}
|
|
730
|
+
// #{map.get($font-family, 'default')},
|
|
731
|
+
// '2xl': #{map.get($font-size, '2xl') + '/' + map.get($line-height, 'xl')}
|
|
732
|
+
// #{map.get($font-family, 'default')},
|
|
733
|
+
// 'xl': #{map.get($font-size, 'xl') + '/' + map.get($line-height, 'l')}
|
|
734
|
+
// #{map.get($font-family, 'default')},
|
|
735
|
+
// 'l': #{map.get($font-size, 'l') + '/' + map.get($line-height, 'm')}
|
|
736
|
+
// #{map.get($font-family, 'default')},
|
|
737
|
+
// 'm': #{map.get($font-size, 'm') + '/' + map.get($line-height, 'm')}
|
|
738
|
+
// #{map.get($font-family, 'default')},
|
|
739
|
+
// 's': #{map.get($font-size, 's') + '/' + map.get($line-height, 's')}
|
|
740
|
+
// #{map.get($font-family, 'default')},
|
|
741
|
+
// 'xs': #{map.get($font-size, 'xs') + '/' + map.get($line-height, 'xs')}
|
|
742
|
+
// #{map.get($font-family, 'default')},
|
|
743
|
+
// '2xs': #{map.get($font-size, '2xs') + '/' + map.get($line-height, '3xs')}
|
|
744
|
+
// #{map.get($font-family, 'default')}
|
|
745
|
+
// );
|
|
746
|
+
|
|
747
|
+
|
|
748
|
+
// based on new EDS specs, but not convenient, better to have a flat list of sizes rather than too much semantic and overlaps
|
|
749
|
+
|
|
750
|
+
// $font-map-responsive: (
|
|
751
|
+
// 'display': (
|
|
752
|
+
// 'm': (
|
|
753
|
+
// 'desktop': (
|
|
754
|
+
// 'size': 3rem,
|
|
755
|
+
// 'line-height': 3.5rem
|
|
756
|
+
// ),
|
|
757
|
+
// 'tablet': (
|
|
758
|
+
// 'size': 2.75rem,
|
|
759
|
+
// 'line-height': 3.25rem
|
|
760
|
+
// ),
|
|
761
|
+
// 'mobile': (
|
|
762
|
+
// 'size': 2rem,
|
|
763
|
+
// 'line-height': 2.25rem
|
|
764
|
+
// )
|
|
765
|
+
// )
|
|
766
|
+
// ),
|
|
767
|
+
// 'title': (
|
|
768
|
+
// 'xl': (
|
|
769
|
+
// 'desktop': (
|
|
770
|
+
// 'size': 2.5rem,
|
|
771
|
+
// 'line-height': 3rem
|
|
772
|
+
// ),
|
|
773
|
+
// 'tablet': (
|
|
774
|
+
// 'size': 2rem,
|
|
775
|
+
// 'line-height': 2.75rem
|
|
776
|
+
// ),
|
|
777
|
+
// 'mobile': (
|
|
778
|
+
// 'size': 1.75rem,
|
|
779
|
+
// 'line-height': 2.5rem
|
|
780
|
+
// )
|
|
781
|
+
// ),
|
|
782
|
+
// 'xs': (
|
|
783
|
+
// 'desktop': (
|
|
784
|
+
// 'size': 1.25rem,
|
|
785
|
+
// 'line-height': 1.75rem
|
|
786
|
+
// ),
|
|
787
|
+
// 'tablet': (
|
|
788
|
+
// 'size': 1.25rem,
|
|
789
|
+
// 'line-height': 1.75rem
|
|
790
|
+
// ),
|
|
791
|
+
// 'mobile': (
|
|
792
|
+
// 'size': 1.2rem,
|
|
793
|
+
// 'line-height': 1.5rem
|
|
794
|
+
// )
|
|
795
|
+
// )
|
|
796
|
+
// )
|
|
797
|
+
// );
|
|
798
|
+
|
|
799
|
+
// $font-map: (
|
|
800
|
+
// 'title': (
|
|
801
|
+
// '2xs': (
|
|
802
|
+
// 'size': 1rem,
|
|
803
|
+
// 'line-height': 1.5rem
|
|
804
|
+
// )
|
|
805
|
+
// ),
|
|
806
|
+
// 'card-title': (
|
|
807
|
+
// 'm': (
|
|
808
|
+
// 'size': 1.125rem,
|
|
809
|
+
// 'line-height': 1.5rem
|
|
810
|
+
// )
|
|
811
|
+
// ),
|
|
812
|
+
// 'label': (
|
|
813
|
+
// 'm': (
|
|
814
|
+
// 'size': 0.875rem,
|
|
815
|
+
// 'line-height': 1.25rem
|
|
816
|
+
// ),
|
|
817
|
+
// 'l': (
|
|
818
|
+
// 'size': 1rem,
|
|
819
|
+
// 'line-height': 1.5rem
|
|
820
|
+
// )
|
|
821
|
+
// ),
|
|
822
|
+
// 'body': (
|
|
823
|
+
// 's': (
|
|
824
|
+
// 'size': 0.875rem,
|
|
825
|
+
// 'line-height': 1.25rem
|
|
826
|
+
// ),
|
|
827
|
+
// 'm': (
|
|
828
|
+
// 'size': 1rem,
|
|
829
|
+
// 'line-height': 1.5rem
|
|
830
|
+
// ),
|
|
831
|
+
// 'l': (
|
|
832
|
+
// 'size': 1.25rem,
|
|
833
|
+
// 'line-height': 1.75rem
|
|
834
|
+
// ),
|
|
835
|
+
// 'xl': (
|
|
836
|
+
// 'size': 1.5rem,
|
|
837
|
+
// 'line-height': 2rem
|
|
838
|
+
// )
|
|
839
|
+
// ),
|
|
840
|
+
// 'microcopy': (
|
|
841
|
+
// 'm': (
|
|
842
|
+
// 'size': 0.75rem,
|
|
843
|
+
// 'line-height': 1rem
|
|
844
|
+
// )
|
|
845
|
+
// )
|
|
846
|
+
// );
|
|
847
|
+
|