@eui/styles 21.0.0-alpha.8 → 21.0.0-next.1

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.
Files changed (63) hide show
  1. package/README.md +1 -1
  2. package/dist/assets/ecl/ec/logo/negative/logo-ec--gl.svg +251 -0
  3. package/dist/assets/ecl/ec/logo/negative/logo-ec--kl.svg +251 -0
  4. package/dist/assets/ecl/ec/logo/positive/logo-ec--gl.svg +247 -0
  5. package/dist/assets/ecl/ec/logo/positive/logo-ec--kl.svg +247 -0
  6. package/dist/assets/ecl/eu/logo/standard-version/negative/logo-eu--gl.svg +197 -0
  7. package/dist/assets/ecl/eu/logo/standard-version/negative/logo-eu--kl.svg +197 -0
  8. package/dist/assets/ecl/eu/logo/standard-version/positive/logo-eu--gl.svg +188 -0
  9. package/dist/assets/ecl/eu/logo/standard-version/positive/logo-eu--kl.svg +188 -0
  10. package/dist/assets/icons/sprites/ecl.json +103 -0
  11. package/dist/assets/icons/sprites/ecl.svg +1 -0
  12. package/dist/assets/icons/sprites/eui.json +55 -138
  13. package/dist/assets/icons/sprites/eui.svg +1 -1
  14. package/dist/assets/icons/sprites/{phosphor-duotone.json → fill.json} +1 -1
  15. package/dist/assets/icons/sprites/fill.svg +1 -0
  16. package/dist/assets/icons/sprites/{phosphor-light.json → light.json} +1 -1
  17. package/dist/assets/icons/sprites/light.svg +1 -0
  18. package/dist/assets/icons/sprites/{phosphor-fill.json → regular.json} +1 -1
  19. package/dist/assets/icons/sprites/regular.svg +1 -0
  20. package/dist/base/01-base/functions/_other.functions.scss +15 -1
  21. package/dist/base/01-base/mixins/_accessibility.mixins.scss +10 -4
  22. package/dist/base/01-base/mixins/_eui-input.scss +6 -5
  23. package/dist/base/01-base/mixins/_eui-loading.scss +1 -1
  24. package/dist/base/01-base/mixins/_eui-scrollbars.scss +26 -3
  25. package/dist/base/01-base/mixins/_icon-svg.mixins.scss +3 -3
  26. package/dist/base/02-tokens/maps-dark-theme.scss +13 -127
  27. package/dist/base/02-tokens/maps.scss +521 -401
  28. package/dist/base/03-vars/vars-dark-theme.scss +14 -12
  29. package/dist/base/03-vars/vars-extras.scss +24 -24
  30. package/dist/base/03-vars/vars.scss +110 -121
  31. package/dist/base/05-assets/flags/_icons-generics.scss +5 -5
  32. package/dist/base/99-utilities/default/others/_eui-u-border-states.scss +6 -10
  33. package/dist/base/99-utilities/default/tokens/_color-states.scss +9 -9
  34. package/dist/base/99-utilities/default/tokens/_colors.scss +43 -16
  35. package/dist/base/99-utilities/default/tokens/_typography.scss +13 -7
  36. package/dist/eui-base.css +1 -1
  37. package/dist/eui-base.css.map +1 -1
  38. package/dist/eui-ecl-ec.css +2 -2
  39. package/dist/eui-ecl-ec.css.map +1 -1
  40. package/dist/eui-ecl-eu.css +2 -2
  41. package/dist/eui-ecl-eu.css.map +1 -1
  42. package/dist/eui-extra-vars.css +0 -1
  43. package/dist/eui-extra-vars.css.map +1 -1
  44. package/dist/eui-icons-flags.css +1 -1
  45. package/dist/eui-icons-flags.css.map +1 -1
  46. package/dist/eui-showcase-all.css +1 -1
  47. package/dist/eui-showcase-all.css.map +1 -1
  48. package/dist/eui-theme-compact.css +1 -1
  49. package/dist/eui-theme-compact.css.map +1 -1
  50. package/dist/eui-theme-dark.css +1 -1
  51. package/dist/eui-theme-dark.css.map +1 -1
  52. package/dist/eui-utilities-extras.css +1 -1
  53. package/dist/eui-utilities-extras.css.map +1 -1
  54. package/dist/eui-utilities.css +1 -1
  55. package/dist/eui-utilities.css.map +1 -1
  56. package/dist/eui.css +1 -1
  57. package/dist/eui.css.map +1 -1
  58. package/package.json +3 -7
  59. package/dist/assets/icons/sprites/phosphor-duotone.svg +0 -1
  60. package/dist/assets/icons/sprites/phosphor-fill.svg +0 -1
  61. package/dist/assets/icons/sprites/phosphor-light.svg +0 -1
  62. package/dist/base/02-tokens/maps-legacy-theme.scss +0 -132
  63. package/dist/base/99-utilities/utilities-legacy-theme.scss +0 -52
@@ -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,
@@ -88,24 +96,6 @@ $opacity-map: (
88
96
 
89
97
  // SPACING
90
98
 
91
- // $old-spacing-map: (
92
- // none: 0,
93
- // 4xs: 0.0625rem, // => 5xs
94
- // 3xs: 0.125rem, // => 4xs
95
- // 2xs: 0.25rem, // => 3xs
96
- // xs: 0.5rem, // ======
97
- // s: 0.75rem, // ======
98
- // m: 1rem, // ======
99
- // l: 1.25rem, // ======
100
- // xl: 1.5rem, // ======
101
- // 2xl: 2rem, // => 3xl
102
- // 3xl: 2.5rem, // => 5xl
103
- // 4xl: 3rem, // => 6xl
104
- // 5xl: 3.5rem, // => 7xl
105
- // 6xl: 4rem, // => 8xl
106
- // 7xl: 5rem // => 10xl
107
- // );
108
-
109
99
  $spacing-map: (
110
100
  none: 0,
111
101
  5xs: 0.0625rem, // 4xs
@@ -193,20 +183,6 @@ $ecl-colors: (
193
183
  'secondary-900': #9e4107,
194
184
  'secondary-950': #763105,
195
185
 
196
- 'neutral-25': #f9fafd,
197
- 'neutral-50': #eceff9,
198
- 'neutral-75': #d1d9f1,
199
- 'neutral-100': #c1ccec,
200
- 'neutral-200': #b0bde6,
201
- 'neutral-300': #9eaee1,
202
- 'neutral-400': #8ea1dc,
203
- 'neutral-500': #7c92d6,
204
- 'neutral-600': #6c85d1,
205
- 'neutral-700': #51649d,
206
- 'neutral-800': #41507d,
207
- 'neutral-900': #313c5e,
208
- 'neutral-950': #26324b,
209
-
210
186
  'grey-25': #fafafb,
211
187
  'grey-50': #f6f6f8,
212
188
  'grey-75': #ededf0,
@@ -279,271 +255,349 @@ $ecl-colors: (
279
255
  'warning-950': #512c0a
280
256
  );
281
257
 
282
-
283
258
  $color-map: (
284
- branding: (
285
- 120: map-get($ecl-colors, 'grey-950'),
286
- 100: map-get($ecl-colors, 'grey-900'),
287
- 80: map-get($ecl-colors, 'grey-800')
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')
288
264
  ),
289
- primary: (
290
- 160: map-get($ecl-colors, 'primary-950'),
291
- 140: map-get($ecl-colors, 'primary-900'),
292
- 120: map-get($ecl-colors, 'primary-800'),
293
- 110: map-get($ecl-colors, 'primary-700'),
294
- 100: map-get($ecl-colors, 'primary-600'),
295
- 80: map-get($ecl-colors, 'primary-500'),
296
- 60: map-get($ecl-colors, 'primary-400'),
297
- 40: map-get($ecl-colors, 'primary-300'),
298
- 20: map-get($ecl-colors, 'primary-200'),
299
- 10: map-get($ecl-colors, 'primary-100'),
300
- 5: map-get($ecl-colors, 'primary-75'),
301
- 0: map-get($ecl-colors, 'primary-50')
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')
302
279
  ),
303
- neutral: (
304
- 160: map-get($ecl-colors, 'grey-950'),
305
- 140: map-get($ecl-colors, 'grey-900'),
306
- 120: map-get($ecl-colors, 'grey-800'),
307
- 110: map-get($ecl-colors, 'grey-700'),
308
- 100: map-get($ecl-colors, 'grey-600'),
309
- 80: map-get($ecl-colors, 'grey-500'),
310
- 60: map-get($ecl-colors, 'grey-400'),
311
- 40: map-get($ecl-colors, 'grey-300'),
312
- 20: map-get($ecl-colors, 'grey-200'),
313
- 10: map-get($ecl-colors, 'grey-100'),
314
- 5: map-get($ecl-colors, 'grey-75'),
315
- 2: map-get($ecl-colors, 'grey-50'),
316
- 0: map-get($ecl-colors, 'grey-25')
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
+ // 50: #f3f3f6,
294
+ 25: map.get($ecl-colors, 'grey-25')
317
295
  ),
318
- info: (
319
- 160: map-get($ecl-colors, 'info-900'),
320
- 140: map-get($ecl-colors, 'info-800'),
321
- 120: map-get($ecl-colors, 'info-700'),
322
- 110: map-get($ecl-colors, 'info-600'),
323
- 100: map-get($ecl-colors, 'info-500'),
324
- 80: map-get($ecl-colors, 'info-400'),
325
- 60: map-get($ecl-colors, 'info-300'),
326
- 40: map-get($ecl-colors, 'info-200'),
327
- 20: map-get($ecl-colors, 'info-100'),
328
- 10: map-get($ecl-colors, 'info-75'),
329
- 5: map-get($ecl-colors, 'info-50'),
330
- 0: map-get($ecl-colors, 'info-25')
296
+ grn: (
297
+ 950: #171717,
298
+ 900: #313131,
299
+ 800: #474747,
300
+ 700: #606060,
301
+ 600: #777777,
302
+ 500: #909090,
303
+ 400: #a9a9a9,
304
+ 300: #bfbfbf,
305
+ 200: #d8d8d8,
306
+ 100: #e4e4e4,
307
+ 75: #efefef,
308
+ 50: #f7f7f7,
309
+ // 50: #f5f5f5,
310
+ 25: #fbfbfb
331
311
  ),
332
- success: (
333
- 160: map-get($ecl-colors, 'success-950'),
334
- 140: map-get($ecl-colors, 'success-950'),
335
- 120: map-get($ecl-colors, 'success-900'),
336
- 110: map-get($ecl-colors, 'success-800'),
337
- 100: map-get($ecl-colors, 'success-700'),
338
- 80: map-get($ecl-colors, 'success-600'),
339
- 60: map-get($ecl-colors, 'success-500'),
340
- 40: map-get($ecl-colors, 'success-400'),
341
- 20: map-get($ecl-colors, 'success-300'),
342
- 10: map-get($ecl-colors, 'success-200'),
343
- 5: map-get($ecl-colors, 'success-100'),
344
- 0: map-get($ecl-colors, 'success-75')
312
+ in: (
313
+ 950: map.get($ecl-colors, 'info-950'),
314
+ 900: map.get($ecl-colors, 'info-900'),
315
+ 800: map.get($ecl-colors, 'info-800'),
316
+ 700: map.get($ecl-colors, 'info-700'),
317
+ 600: map.get($ecl-colors, 'info-600'),
318
+ 500: map.get($ecl-colors, 'info-500'),
319
+ 400: map.get($ecl-colors, 'info-400'),
320
+ 300: map.get($ecl-colors, 'info-300'),
321
+ 200: map.get($ecl-colors, 'info-200'),
322
+ 100: map.get($ecl-colors, 'info-100'),
323
+ 75: map.get($ecl-colors, 'info-75'),
324
+ 50: map.get($ecl-colors, 'info-50'),
325
+ 25: map.get($ecl-colors, 'info-25')
345
326
  ),
346
- warning: (
347
- 160: map-get($ecl-colors, 'warning-900'),
348
- 140: map-get($ecl-colors, 'warning-800'),
349
- 120: map-get($ecl-colors, 'warning-700'),
350
- 110: map-get($ecl-colors, 'warning-600'),
351
- 100: map-get($ecl-colors, 'warning-500'),
352
- 80: map-get($ecl-colors, 'warning-400'),
353
- 60: map-get($ecl-colors, 'warning-300'),
354
- 40: map-get($ecl-colors, 'warning-200'),
355
- 20: map-get($ecl-colors, 'warning-100'),
356
- 10: map-get($ecl-colors, 'warning-75'),
357
- 5: map-get($ecl-colors, 'warning-50'),
358
- 0: map-get($ecl-colors, 'warning-25')
359
- ),
360
- danger: (
361
- 160: map-get($ecl-colors, 'error-950'),
362
- 140: map-get($ecl-colors, 'error-900'),
363
- 120: map-get($ecl-colors, 'error-800'),
364
- 110: map-get($ecl-colors, 'error-700'),
365
- 100: map-get($ecl-colors, 'error-600'),
366
- 80: map-get($ecl-colors, 'error-500'),
367
- 60: map-get($ecl-colors, 'error-400'),
368
- 40: map-get($ecl-colors, 'error-300'),
369
- 20: map-get($ecl-colors, 'error-200'),
370
- 10: map-get($ecl-colors, 'error-100'),
371
- 5: map-get($ecl-colors, 'error-75'),
372
- 0: map-get($ecl-colors, 'error-50')
327
+ su: (
328
+ 950: map.get($ecl-colors, 'success-950'),
329
+ 900: map.get($ecl-colors, 'success-900'),
330
+ 800: map.get($ecl-colors, 'success-800'),
331
+ 700: map.get($ecl-colors, 'success-700'),
332
+ 600: map.get($ecl-colors, 'success-600'),
333
+ 500: map.get($ecl-colors, 'success-500'),
334
+ 400: map.get($ecl-colors, 'success-400'),
335
+ 300: map.get($ecl-colors, 'success-300'),
336
+ 200: map.get($ecl-colors, 'success-200'),
337
+ 100: map.get($ecl-colors, 'success-100'),
338
+ 75: map.get($ecl-colors, 'success-75'),
339
+ 50: map.get($ecl-colors, 'success-50'),
340
+ 25: map.get($ecl-colors, 'success-25')
373
341
  ),
374
- cta: (
375
- 160: map-get($ecl-colors, 'secondary-800'),
376
- 140: map-get($ecl-colors, 'secondary-700'),
377
- 120: map-get($ecl-colors, 'secondary-600'),
378
- 110: map-get($ecl-colors, 'secondary-500'),
379
- 100: map-get($ecl-colors, 'secondary-400'),
380
- 80: map-get($ecl-colors, 'secondary-300'),
381
- 60: map-get($ecl-colors, 'secondary-200'),
382
- 40: map-get($ecl-colors, 'secondary-100'),
383
- 20: map-get($ecl-colors, 'secondary-75'),
384
- 10: map-get($ecl-colors, 'secondary-50'),
385
- 5: map-get($ecl-colors, 'secondary-25'),
386
- 0: map-get($ecl-colors, 'secondary-25')
387
- )
388
- );
389
-
390
- // COLOR CONTEXT
391
-
392
- $color-context-map: (
393
- branding: (
394
- base: '100', dark: '120', light: '80'
342
+ wa: (
343
+ 950: map.get($ecl-colors, 'warning-950'),
344
+ 900: map.get($ecl-colors, 'warning-900'),
345
+ 800: map.get($ecl-colors, 'warning-800'),
346
+ 700: map.get($ecl-colors, 'warning-700'),
347
+ 600: map.get($ecl-colors, 'warning-600'),
348
+ 500: map.get($ecl-colors, 'warning-500'),
349
+ 400: map.get($ecl-colors, 'warning-400'),
350
+ 300: map.get($ecl-colors, 'warning-300'),
351
+ 200: map.get($ecl-colors, 'warning-200'),
352
+ 100: map.get($ecl-colors, 'warning-100'),
353
+ 75: map.get($ecl-colors, 'warning-75'),
354
+ 50: map.get($ecl-colors, 'warning-50'),
355
+ 25: map.get($ecl-colors, 'warning-25')
395
356
  ),
396
- neutral: (
397
- base: '100', darkest: '160', darker: '140', dark: '110', light: '80', lighter: '40', lightest: '20', bg: '10', bg-light: '5', bg-lighter: '3'
357
+ da: (
358
+ 950: map.get($ecl-colors, 'error-950'),
359
+ 900: map.get($ecl-colors, 'error-900'),
360
+ 800: map.get($ecl-colors, 'error-800'),
361
+ 700: map.get($ecl-colors, 'error-700'),
362
+ 600: map.get($ecl-colors, 'error-600'),
363
+ 500: map.get($ecl-colors, 'error-500'),
364
+ 400: map.get($ecl-colors, 'error-400'),
365
+ 300: map.get($ecl-colors, 'error-300'),
366
+ 200: map.get($ecl-colors, 'error-200'),
367
+ 100: map.get($ecl-colors, 'error-100'),
368
+ 75: map.get($ecl-colors, 'error-75'),
369
+ 50: map.get($ecl-colors, 'error-50'),
370
+ 25: map.get($ecl-colors, 'error-25')
398
371
  ),
399
372
  cta: (
400
- base: '100', darkest: '160', darker: '140', dark: '110', light: '80', lighter: '40', lightest: '20', bg: '10', bg-light: '5'
401
- ),
402
- primary: (
403
- base: '100', darkest: '160', darker: '140', dark: '110', light: '80', lighter: '40', lightest: '20', bg: '10', bg-light: '5'
404
- ),
405
- info: (
406
- base: '100', darkest: '160', darker: '140', dark: '110', light: '80', lighter: '40', lightest: '20', bg: '10', bg-light: '5'
407
- ),
408
- success: (
409
- base: '100', darkest: '160', darker: '140', dark: '110', light: '80', lighter: '40', lightest: '20', bg: '10', bg-light: '5'
410
- ),
411
- warning: (
412
- base: '100', darkest: '160', darker: '140', dark: '110', light: '80', lighter: '40', lightest: '20', bg: '10', bg-light: '5'
413
- ),
414
- danger: (
415
- base: '100', darkest: '160', darker: '140', dark: '110', light: '80', lighter: '40', lightest: '20', bg: '10', bg-light: '5'
373
+ 950: map.get($ecl-colors, 'secondary-950'),
374
+ 900: map.get($ecl-colors, 'secondary-900'),
375
+ 800: map.get($ecl-colors, 'secondary-800'),
376
+ 700: map.get($ecl-colors, 'secondary-700'),
377
+ 600: map.get($ecl-colors, 'secondary-600'),
378
+ 500: map.get($ecl-colors, 'secondary-500'),
379
+ 400: map.get($ecl-colors, 'secondary-400'),
380
+ 300: map.get($ecl-colors, 'secondary-300'),
381
+ 200: map.get($ecl-colors, 'secondary-200'),
382
+ 100: map.get($ecl-colors, 'secondary-100'),
383
+ 75: map.get($ecl-colors, 'secondary-75'),
384
+ 50: map.get($ecl-colors, 'secondary-50'),
385
+ 25: map.get($ecl-colors, 'secondary-25')
416
386
  )
417
387
  );
418
388
 
419
-
420
389
  // COLOR STATES
421
390
 
422
391
  $color-state-map: (
423
392
  branding: (
424
- base: 'branding',
425
- default: 'branding',
426
- dark: 'branding-dark',
427
- light: 'branding-light'
428
- ),
393
+ base: 'br-900',
394
+ default: 'br-900',
395
+ lighter: 'br-700',
396
+ on-lighter: 'br-700-contrast',
397
+ light: 'br-800',
398
+ on-light: 'br-800-contrast',
399
+ dark: 'br-950',
400
+ on-dark: 'br-950-contrast',
401
+ ),
429
402
  primary: (
430
- base: 'primary',
431
- default: 'primary',
432
- on-surface-light: 'primary-darker',
433
- surface-light: 'primary-bg-light',
434
- surface-light-contrast: 'primary-bg-light-contrast',
435
- surface-light-hover: 'primary-lightest',
436
- surface-medium: 'primary-lightest',
437
- on-surface-medium: 'primary-darkest',
438
- border: 'primary-light',
439
- border-light: 'primary-lighter',
440
- border-lighter: 'primary-lightest',
441
- surface: 'primary',
442
- surface-contrast: 'primary-contrast',
443
- surface-hover: 'primary-dark',
444
- surface-hover-contrast: 'primary-dark-contrast'
403
+ base: 'pr-600',
404
+ default: 'pr-700',
405
+ lighter: 'pr-500',
406
+ on-lighter: 'pr-500-contrast',
407
+ light: 'pr-600',
408
+ on-light: 'pr-600-contrast',
409
+ dark: 'pr-900',
410
+ on-dark: 'pr-900-contrast',
411
+ darker: 'pr-950',
412
+ on-darker: 'pr-950-contrast',
413
+ surface-light: 'pr-75',
414
+ on-surface-light: 'pr-900',
415
+ surface-light-hover: 'pr-100',
416
+ on-surface-light-hover: 'pr-950',
417
+ surface-medium: 'pr-200',
418
+ on-surface-medium: 'pr-950',
419
+ surface: 'pr-600',
420
+ on-surface: 'pr-600-contrast',
421
+ surface-hover: 'pr-700',
422
+ on-surface-hover: 'pr-700-contrast',
423
+ border: 'pr-500',
424
+ border-light: 'pr-300',
425
+ border-lighter: 'pr-200'
445
426
  ),
446
427
  secondary: (
447
- base: 'neutral',
448
- default: 'neutral-darker',
449
- on-surface-light: 'neutral-darkest',
450
- surface-light: 'neutral-bg-light',
451
- surface-light-contrast: 'neutral-bg-light-contrast',
452
- surface-light-hover: 'neutral-bg',
453
- surface-medium: 'neutral-lightest',
454
- on-surface-medium: 'neutral-darkest',
455
- border: 'neutral-light',
456
- border-light: 'neutral-light',
457
- border-lighter: 'neutral-lightr',
458
- surface: 'neutral-light',
459
- surface-contrast: 'neutral-light-contrast',
460
- surface-hover: 'neutral-lightest',
461
- surface-hover-contrast: 'neutral-lightest-contrast'
428
+ base: 'gr-500',
429
+ default: 'gr-800',
430
+ lighter: 'gr-600',
431
+ on-lighter: 'gr-600-contrast',
432
+ light: 'gr-700',
433
+ on-light: 'gr-700-contrast',
434
+ dark: 'gr-900',
435
+ on-dark: 'gr-900-contrast',
436
+ darker: 'gr-950',
437
+ on-darker: 'gr-950-contrast',
438
+ surface-light: 'gr-75',
439
+ on-surface-light: 'gr-900',
440
+ surface-light-hover: 'gr-100',
441
+ on-surface-light-hover: 'gr-950',
442
+ surface-medium: 'gr-200',
443
+ on-surface-medium: 'gr-900',
444
+ surface: 'gr-600',
445
+ on-surface: 'gr-600-contrast',
446
+ surface-hover: 'gr-700',
447
+ on-surface-hover: 'gr-700-contrast',
448
+ border: 'gr-500',
449
+ border-light: 'gr-400',
450
+ border-lighter: 'gr-300'
451
+ ),
452
+ neutral: (
453
+ base: 'grn-500',
454
+ default: 'grn-800',
455
+ lighter: 'grn-600',
456
+ on-lighter: 'grn-600-contrast',
457
+ light: 'grn-700',
458
+ on-light: 'grn-700-contrast',
459
+ dark: 'grn-900',
460
+ on-dark: 'grn-900-contrast',
461
+ darker: 'grn-950',
462
+ on-darker: 'grn-950-contrast',
463
+ surface-light: 'grn-50',
464
+ on-surface-light: 'grn-900',
465
+ surface-light-hover: 'grn-75',
466
+ on-surface-light-hover: 'grn-950',
467
+ surface-medium: 'grn-100',
468
+ on-surface-medium: 'grn-900',
469
+ surface: 'grn-400',
470
+ on-surface: 'grn-400-contrast',
471
+ surface-hover: 'grn-300',
472
+ on-surface-hover: 'grn-300-contrast',
473
+ border: 'grn-500',
474
+ border-light: 'grn-400',
475
+ border-lighter: 'grn-300'
462
476
  ),
463
477
  cta: (
464
- base: 'cta',
465
- default: 'cta-darker',
466
- on-surface-light: 'cta-darker',
467
- surface-light: 'cta-bg-light',
468
- surface-light-contrast: 'cta-bg-light-contrast',
469
- surface-light-hover: 'cta-lightest',
470
- surface-medium: 'cta-lightest',
471
- on-surface-medium: 'cta-darkest',
472
- border: 'cta-light',
473
- border-light: 'cta-lighter',
474
- border-lighter: 'cta-lightest',
475
- surface: 'cta',
476
- surface-contrast: 'cta-contrast',
477
- surface-hover: 'cta-dark',
478
- surface-hover-contrast: 'cta-dark-contrast'
478
+ base: 'cta-400',
479
+ default: 'cta-900',
480
+ lighter: 'cta-400',
481
+ on-lighter: 'cta-400-contrast',
482
+ light: 'cta-500',
483
+ on-light: 'cta-500-contrast',
484
+ dark: 'cta-800',
485
+ on-dark: 'cta-800-contrast',
486
+ darker: 'cta-900',
487
+ on-darker: 'cta-900-contrast',
488
+ surface-light: 'cta-25',
489
+ on-surface-light: 'cta-800',
490
+ surface-light-hover: 'cta-50',
491
+ on-surface-light-hover: 'cta-950',
492
+ surface-medium: 'cta-75',
493
+ on-surface-medium: 'cta-900',
494
+ surface: 'cta-400',
495
+ on-surface: 'cta-400-contrast',
496
+ surface-hover: 'cta-500',
497
+ on-surface-hover: 'cta-500-contrast',
498
+ border: 'cta-300',
499
+ border-light: 'cta-100',
500
+ border-lighter: 'cta-75'
479
501
  ),
480
502
  info: (
481
- base: 'info',
482
- default: 'info-dark',
483
- on-surface-light: 'info-dark',
484
- surface-light: 'info-bg-light',
485
- surface-light-contrast: 'info-bg-light-contrast',
486
- surface-light-hover: 'info-lightest',
487
- surface-medium: 'info-lightest',
488
- on-surface-medium: 'info-darkest',
489
- border: 'info-light',
490
- border-light: 'info-lighter',
491
- border-lighter: 'info-lightest',
492
- surface: 'info-dark',
493
- surface-contrast: 'info-dark-contrast',
494
- surface-hover: 'info-darker',
495
- surface-hover-contrast: 'info-darker-contrast'
503
+ base: 'in-500',
504
+ default: 'in-600',
505
+ lighter: 'in-400',
506
+ on-lighter: 'in-400-contrast',
507
+ light: 'in-500',
508
+ on-light: 'in-500-contrast',
509
+ dark: 'in-800',
510
+ on-dark: 'in-800-contrast',
511
+ darker: 'in-900',
512
+ on-darker: 'in-900-contrast',
513
+ surface-light: 'in-50',
514
+ on-surface-light: 'in-600',
515
+ surface-light-hover: 'in-75',
516
+ on-surface-light-hover: 'in-800',
517
+ surface-medium: 'in-100',
518
+ on-surface-medium: 'in-950',
519
+ surface: 'in-600',
520
+ on-surface: 'in-600-contrast',
521
+ surface-hover: 'in-800',
522
+ on-surface-hover: 'in-800-contrast',
523
+ border: 'in-400',
524
+ border-light: 'in-200',
525
+ border-lighter: 'in-100'
496
526
  ),
497
527
  success: (
498
- base: 'success',
499
- default: 'success-darker',
500
- on-surface-light: 'success-darker',
501
- surface-light: 'success-bg-light',
502
- surface-light-contrast: 'success-bg-light-contrast',
503
- surface-light-hover: 'success-lightest',
504
- surface-medium: 'success-lightest',
505
- on-surface-medium: 'success-darkest',
506
- border: 'success-light',
507
- border-light: 'success-lighter',
508
- border-lighter: 'success-lightest',
509
- surface: 'success-darker',
510
- surface-contrast: 'success-darker-contrast',
511
- surface-hover: 'success-darkest',
512
- surface-hover-contrast: 'success-darkest-contrast'
528
+ base: 'su-700',
529
+ default: 'su-900',
530
+ lighter: 'su-700',
531
+ on-lighter: 'su-700-contrast',
532
+ light: 'su-800',
533
+ on-light: 'su-800-contrast',
534
+ dark: 'su-900',
535
+ on-dark: 'su-900-contrast',
536
+ darker: 'su-950',
537
+ on-darker: 'su-950-contrast',
538
+ surface-light: 'su-100',
539
+ on-surface-light: 'su-950',
540
+ surface-light-hover: 'su-200',
541
+ on-surface-light-hover: 'su-950',
542
+ surface-medium: 'su-300',
543
+ on-surface-medium: 'su-950',
544
+ surface: 'su-900',
545
+ on-surface: 'su-950-contrast',
546
+ surface-hover: 'su-950',
547
+ on-surface-hover: 'su-950-contrast',
548
+ border: 'su-600',
549
+ border-light: 'su-400',
550
+ border-lighter: 'su-300'
513
551
  ),
514
552
  warning: (
515
- base: 'warning',
516
- default: 'warning-darker',
517
- on-surface-light: 'warning-darker',
518
- surface-light: 'warning-bg-light',
519
- surface-light-contrast: 'warning-bg-light-contrast',
520
- surface-light-hover: 'warning-lightest',
521
- surface-medium: 'warning-lightest',
522
- on-surface-medium: 'warning-darkest',
523
- border: 'warning-light',
524
- border-light: 'warning-lighter',
525
- border-lighter: 'warning-lightest',
526
- surface: 'warning',
527
- surface-contrast: 'warning-contrast',
528
- surface-hover: 'warning-dark',
529
- surface-hover-contrast: 'warning-dark-contrast'
553
+ base: 'wa-500',
554
+ default: 'wa-800',
555
+ lighter: 'wa-500',
556
+ on-lighter: 'wa-500-contrast',
557
+ light: 'wa-600',
558
+ on-light: 'wa-600-contrast',
559
+ dark: 'wa-900',
560
+ on-dark: 'wa-900-contrast',
561
+ darker: 'wa-950',
562
+ on-darker: 'wa-950-contrast',
563
+ surface-light: 'wa-50',
564
+ on-surface-light: 'wa-900',
565
+ surface-light-hover: 'wa-75',
566
+ on-surface-light-hover: 'wa-950',
567
+ surface-medium: 'wa-100',
568
+ on-surface-medium: 'wa-900',
569
+ surface: 'wa-500',
570
+ on-surface: 'wa-500-contrast',
571
+ surface-hover: 'wa-600',
572
+ on-surface-hover: 'wa-600-contrast',
573
+ border: 'wa-400',
574
+ border-light: 'wa-200',
575
+ border-lighter: 'wa-100'
530
576
  ),
531
577
  danger: (
532
- base: 'danger',
533
- default: 'danger',
534
- on-surface-light: 'danger-dark',
535
- surface-light: 'danger-bg-light',
536
- surface-light-contrast: 'danger-bg-light-contrast',
537
- surface-light-hover: 'danger-lightest',
538
- surface-medium: 'danger-lightest',
539
- on-surface-medium: 'danger-darker',
540
- border: 'danger-light',
541
- border-light: 'danger-lighter',
542
- border-lighter: 'danger-lightest',
543
- surface: 'danger',
544
- surface-contrast: 'danger-contrast',
545
- surface-hover: 'danger',
546
- surface-hover-contrast: 'danger-contrast'
578
+ base: 'da-600',
579
+ default: 'da-600',
580
+ lighter: 'da-400',
581
+ on-lighter: 'da-400-contrast',
582
+ light: 'da-500',
583
+ on-light: 'da-500-contrast',
584
+ dark: 'da-700',
585
+ on-dark: 'da-700-contrast',
586
+ darker: 'da-800',
587
+ on-darker: 'da-800-contrast',
588
+ surface-light: 'da-75',
589
+ on-surface-light: 'da-700',
590
+ surface-light-hover: 'da-100',
591
+ on-surface-light-hover: 'da-900',
592
+ surface-medium: 'da-200',
593
+ on-surface-medium: 'da-900',
594
+ surface: 'da-600',
595
+ on-surface: 'da-600-contrast',
596
+ surface-hover: 'da-700',
597
+ on-surface-hover: 'da-700-contrast',
598
+ border: 'da-500',
599
+ border-light: 'da-300',
600
+ border-lighter: 'da-200'
547
601
  ),
548
602
  );
549
603
 
@@ -560,121 +614,14 @@ $ecl-shadow: (
560
614
 
561
615
  $box-shadow-map: (
562
616
  0: none,
563
- 1: map-get($ecl-shadow, 1),
564
- 2: map-get($ecl-shadow, 2),
565
- 3: map-get($ecl-shadow, 5),
566
- 4: map-get($ecl-shadow, 4),
567
- 5: map-get($ecl-shadow, 5)
617
+ 1: map.get($ecl-shadow, 1),
618
+ 2: map.get($ecl-shadow, 2),
619
+ 3: map.get($ecl-shadow, 5),
620
+ 4: map.get($ecl-shadow, 4),
621
+ 5: map.get($ecl-shadow, 5)
568
622
  );
569
623
 
570
624
 
571
- // TYPOGRAPHY
572
-
573
- $font-weight-map: (
574
- 'regular': 400,
575
- 'medium': 500,
576
- 'semi-bold': 600,
577
- 'bold': 700
578
- );
579
-
580
- $font-map-responsive: (
581
- 'display': (
582
- 'm': (
583
- 'desktop': (
584
- 'size': 3rem,
585
- 'line-height': 3.5rem
586
- ),
587
- 'tablet': (
588
- 'size': 2.75rem,
589
- 'line-height': 3.25rem
590
- ),
591
- 'mobile': (
592
- 'size': 2rem,
593
- 'line-height': 2.25rem
594
- )
595
- )
596
- ),
597
- 'title': (
598
- 'xl': (
599
- 'desktop': (
600
- 'size': 2.5rem,
601
- 'line-height': 3rem
602
- ),
603
- 'tablet': (
604
- 'size': 2rem,
605
- 'line-height': 2.75rem
606
- ),
607
- 'mobile': (
608
- 'size': 1.75rem,
609
- 'line-height': 2.5rem
610
- )
611
- ),
612
- 'xs': (
613
- 'desktop': (
614
- 'size': 1.25rem,
615
- 'line-height': 1.75rem
616
- ),
617
- 'tablet': (
618
- 'size': 1.25rem,
619
- 'line-height': 1.75rem
620
- ),
621
- 'mobile': (
622
- 'size': 1.2rem,
623
- 'line-height': 1.5rem
624
- )
625
- )
626
- )
627
- );
628
-
629
- $font-map: (
630
- 'title': (
631
- '2xs': (
632
- 'size': 1rem,
633
- 'line-height': 1.5rem
634
- )
635
- ),
636
- 'card-title': (
637
- 'm': (
638
- 'size': 1.125rem,
639
- 'line-height': 1.5rem
640
- )
641
- ),
642
- 'label': (
643
- 'm': (
644
- 'size': 0.875rem,
645
- 'line-height': 1.25rem
646
- ),
647
- 'l': (
648
- 'size': 1rem,
649
- 'line-height': 1.5rem
650
- )
651
- ),
652
- 'body': (
653
- 's': (
654
- 'size': 0.875rem,
655
- 'line-height': 1.25rem
656
- ),
657
- 'm': (
658
- 'size': 1rem,
659
- 'line-height': 1.5rem
660
- ),
661
- 'l': (
662
- 'size': 1.25rem,
663
- 'line-height': 1.75rem
664
- ),
665
- 'xl': (
666
- 'size': 1.5rem,
667
- 'line-height': 2rem
668
- )
669
- ),
670
- 'microcopy': (
671
- 'm': (
672
- 'size': 0.75rem,
673
- 'line-height': 1rem
674
- )
675
- )
676
- );
677
-
678
625
  // TYPOGRAPHY
679
626
 
680
627
  $font-size-list: (
@@ -682,27 +629,6 @@ $font-size-list: (
682
629
  '2xs-compact', 'xs-compact', 's-compact', 'm-compact', 'l-compact', 'xl-compact', '2xl-compact', '3xl-compact', '4xl-compact', '5xl-compact', '6xl-compact'
683
630
  );
684
631
 
685
- $font-size-map: (
686
- 2xs: 0.675rem,
687
- xs: 0.75rem,
688
- s: 0.875rem,
689
- m: 1rem,
690
- l: 1.25rem,
691
- xl: 1.5rem,
692
- 2xl: 1.75rem,
693
- 3xl: 2rem,
694
- 4xl: 2.5rem,
695
- 5xl: 2.75rem,
696
- 6xl: 3rem
697
- );
698
-
699
- $font-weight-map: (
700
- regular: 400,
701
- medium: 400,
702
- semi-bold: 700,
703
- bold: 700
704
- );
705
-
706
632
  $font-line-height-map: (
707
633
  2xs: 1rem,
708
634
  xs: 1.25rem,
@@ -726,4 +652,198 @@ $font-line-height-map: (
726
652
  4xl-compact: 2.75rem,
727
653
  5xl-compact: 3rem,
728
654
  6xl-compact: 3.25rem
729
- );
655
+ );
656
+
657
+ $font-size-map: (
658
+ 2xs: 0.675rem, // 10px
659
+ xs: 0.75rem, // 12px
660
+ s: 0.875rem, // 14px
661
+ m: 1rem, // 16px
662
+ l: 1.25rem, // 20px
663
+ xl: 1.5rem, // 24px
664
+ 2xl: 1.75rem, // 28px
665
+ 3xl: 2rem, // 32px
666
+ 4xl: 2.5rem, // 40px
667
+ 5xl: 2.75rem, // 44px
668
+ 6xl: 3rem // 48px
669
+ );
670
+
671
+ $font-weight-map: (
672
+ 'regular': 400,
673
+ 'medium': 500,
674
+ 'semi-bold': 600,
675
+ 'bold': 700
676
+ );
677
+
678
+ // ecl font sizes for example, but driven by m = 18px base
679
+
680
+ // $ecl-font-size: (
681
+ // '10xl': 6rem,
682
+ // '9xl': 4.5rem,
683
+ // '8xl': 3.75rem,
684
+ // '7xl': 3.25rem,
685
+ // '6xl': 2.5rem,
686
+ // '5xl': 2.25rem,
687
+ // '4xl': 2rem,
688
+ // '3xl': 1.75rem,
689
+ // '2xl': 1.5rem,
690
+ // 'xl': 1.375rem,
691
+ // 'l': 1.25rem,
692
+ // 'm': 1.125rem,
693
+ // 's': 1rem,
694
+ // 'xs': 0.875rem,
695
+ // '2xs': 0.75rem
696
+ // );
697
+
698
+ // $ecl-line-height: (
699
+ // '10xl': 6.25rem,
700
+ // '9xl': 4.875rem,
701
+ // '8xl': 4.25rem,
702
+ // '7xl': 3.75rem,
703
+ // '6xl': 3.5rem,
704
+ // '5xl': 3.25rem,
705
+ // '4xl': 3rem,
706
+ // '3xl': 2.75rem,
707
+ // '2xl': 2.5rem,
708
+ // 'xl': 2.25rem,
709
+ // 'l': 2rem,
710
+ // 'm': 1.75rem,
711
+ // 's': 1.5rem,
712
+ // 'xs': 1.25rem,
713
+ // '2xs': 1rem,
714
+ // '3xs': 0.875rem,
715
+ // );
716
+ // $ecl-font: (
717
+ // '10xl': #{map.get($font-size, '10xl') + '/' + map.get($line-height, '10xl')}
718
+ // #{map.get($font-family, 'default')},
719
+ // '9xl': #{map.get($font-size, '9xl') + '/' + map.get($line-height, '9xl')}
720
+ // #{map.get($font-family, 'default')},
721
+ // '8xl': #{map.get($font-size, '8xl') + '/' + map.get($line-height, '8xl')}
722
+ // #{map.get($font-family, 'default')},
723
+ // '7xl': #{map.get($font-size, '7xl') + '/' + map.get($line-height, '7xl')}
724
+ // #{map.get($font-family, 'default')},
725
+ // '6xl': #{map.get($font-size, '6xl') + '/' + map.get($line-height, '4xl')}
726
+ // #{map.get($font-family, 'default')},
727
+ // '5xl': #{map.get($font-size, '5xl') + '/' + map.get($line-height, '4xl')}
728
+ // #{map.get($font-family, 'default')},
729
+ // '4xl': #{map.get($font-size, '4xl') + '/' + map.get($line-height, '3xl')}
730
+ // #{map.get($font-family, 'default')},
731
+ // '3xl': #{map.get($font-size, '3xl') + '/' + map.get($line-height, 'xl')}
732
+ // #{map.get($font-family, 'default')},
733
+ // '2xl': #{map.get($font-size, '2xl') + '/' + map.get($line-height, 'xl')}
734
+ // #{map.get($font-family, 'default')},
735
+ // 'xl': #{map.get($font-size, 'xl') + '/' + map.get($line-height, 'l')}
736
+ // #{map.get($font-family, 'default')},
737
+ // 'l': #{map.get($font-size, 'l') + '/' + map.get($line-height, 'm')}
738
+ // #{map.get($font-family, 'default')},
739
+ // 'm': #{map.get($font-size, 'm') + '/' + map.get($line-height, 'm')}
740
+ // #{map.get($font-family, 'default')},
741
+ // 's': #{map.get($font-size, 's') + '/' + map.get($line-height, 's')}
742
+ // #{map.get($font-family, 'default')},
743
+ // 'xs': #{map.get($font-size, 'xs') + '/' + map.get($line-height, 'xs')}
744
+ // #{map.get($font-family, 'default')},
745
+ // '2xs': #{map.get($font-size, '2xs') + '/' + map.get($line-height, '3xs')}
746
+ // #{map.get($font-family, 'default')}
747
+ // );
748
+
749
+
750
+ // based on new EDS specs, but not convenient, better to have a flat list of sizes rather than too much semantic and overlaps
751
+
752
+ // $font-map-responsive: (
753
+ // 'display': (
754
+ // 'm': (
755
+ // 'desktop': (
756
+ // 'size': 3rem,
757
+ // 'line-height': 3.5rem
758
+ // ),
759
+ // 'tablet': (
760
+ // 'size': 2.75rem,
761
+ // 'line-height': 3.25rem
762
+ // ),
763
+ // 'mobile': (
764
+ // 'size': 2rem,
765
+ // 'line-height': 2.25rem
766
+ // )
767
+ // )
768
+ // ),
769
+ // 'title': (
770
+ // 'xl': (
771
+ // 'desktop': (
772
+ // 'size': 2.5rem,
773
+ // 'line-height': 3rem
774
+ // ),
775
+ // 'tablet': (
776
+ // 'size': 2rem,
777
+ // 'line-height': 2.75rem
778
+ // ),
779
+ // 'mobile': (
780
+ // 'size': 1.75rem,
781
+ // 'line-height': 2.5rem
782
+ // )
783
+ // ),
784
+ // 'xs': (
785
+ // 'desktop': (
786
+ // 'size': 1.25rem,
787
+ // 'line-height': 1.75rem
788
+ // ),
789
+ // 'tablet': (
790
+ // 'size': 1.25rem,
791
+ // 'line-height': 1.75rem
792
+ // ),
793
+ // 'mobile': (
794
+ // 'size': 1.2rem,
795
+ // 'line-height': 1.5rem
796
+ // )
797
+ // )
798
+ // )
799
+ // );
800
+
801
+ // $font-map: (
802
+ // 'title': (
803
+ // '2xs': (
804
+ // 'size': 1rem,
805
+ // 'line-height': 1.5rem
806
+ // )
807
+ // ),
808
+ // 'card-title': (
809
+ // 'm': (
810
+ // 'size': 1.125rem,
811
+ // 'line-height': 1.5rem
812
+ // )
813
+ // ),
814
+ // 'label': (
815
+ // 'm': (
816
+ // 'size': 0.875rem,
817
+ // 'line-height': 1.25rem
818
+ // ),
819
+ // 'l': (
820
+ // 'size': 1rem,
821
+ // 'line-height': 1.5rem
822
+ // )
823
+ // ),
824
+ // 'body': (
825
+ // 's': (
826
+ // 'size': 0.875rem,
827
+ // 'line-height': 1.25rem
828
+ // ),
829
+ // 'm': (
830
+ // 'size': 1rem,
831
+ // 'line-height': 1.5rem
832
+ // ),
833
+ // 'l': (
834
+ // 'size': 1.25rem,
835
+ // 'line-height': 1.75rem
836
+ // ),
837
+ // 'xl': (
838
+ // 'size': 1.5rem,
839
+ // 'line-height': 2rem
840
+ // )
841
+ // ),
842
+ // 'microcopy': (
843
+ // 'm': (
844
+ // 'size': 0.75rem,
845
+ // 'line-height': 1rem
846
+ // )
847
+ // )
848
+ // );
849
+