@eui/styles 23.0.0-alpha.2 → 23.0.0-alpha.4

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 (36) hide show
  1. package/dist/base/02-tokens/colors-primitive.scss +0 -1
  2. package/dist/base/02-tokens/colors-semantic.scss +29 -7
  3. package/dist/base/02-tokens/dimensions-semantic.scss +8 -7
  4. package/dist/base/02-tokens/eds-colors-primitive.scss +249 -0
  5. package/dist/base/02-tokens/eds-colors-semantic-dark-theme.scss +156 -0
  6. package/dist/base/02-tokens/eds-colors-semantic.scss +156 -0
  7. package/dist/base/02-tokens/eds-maps.scss +37 -0
  8. package/dist/base/02-tokens/eds-typography-primitive.scss +69 -0
  9. package/dist/base/02-tokens/eds-typography-semantic.scss +116 -0
  10. package/dist/base/02-tokens/typography-primitive.scss +0 -35
  11. package/dist/base/02-tokens/typography-semantic.scss +0 -118
  12. package/dist/base/03-vars/eds-vars-colors-dark-theme.scss +7 -0
  13. package/dist/base/03-vars/eds-vars-colors.scss +7 -0
  14. package/dist/base/03-vars/eds-vars-typography.scss +55 -0
  15. package/dist/base/03-vars/eds-vars.scss +72 -0
  16. package/dist/base/03-vars/vars-typography.scss +15 -46
  17. package/dist/base/05-assets/icons/index.scss +26 -0
  18. package/dist/base/99-utilities/eds-utilities.scss +2 -0
  19. package/dist/base/99-utilities/tokens/_typography.scss +0 -9
  20. package/dist/base/99-utilities/tokens/eds/_colors.scss +23 -0
  21. package/dist/base/99-utilities/tokens/eds/_typography.scss +24 -0
  22. package/dist/eui-base.css +1 -1
  23. package/dist/eui-base.css.map +1 -1
  24. package/dist/eui-eds.css +1 -0
  25. package/dist/eui-eds.css.map +1 -0
  26. package/dist/eui-showcase-all.css +1 -1
  27. package/dist/eui-showcase-all.css.map +1 -1
  28. package/dist/eui-theme-dark.css +1 -1
  29. package/dist/eui-theme-dark.css.map +1 -1
  30. package/dist/eui-theme-high-contrast.css +1 -1
  31. package/dist/eui-theme-high-contrast.css.map +1 -1
  32. package/dist/eui-utilities.css +1 -1
  33. package/dist/eui-utilities.css.map +1 -1
  34. package/dist/eui.css +1 -1
  35. package/dist/eui.css.map +1 -1
  36. package/package.json +1 -1
@@ -0,0 +1,156 @@
1
+ @use 'sass:map';
2
+ @use 'sass:color';
3
+ @use '../01-base/' as base;
4
+ @use './eds-colors-primitive' as primitive;
5
+
6
+ $color-semantic-map: (
7
+ surface-accent: map.get(primitive.$color-map, 'european-blue-50'),
8
+ surface-selected: map.get(primitive.$color-map, 'european-blue-100'),
9
+ surface-skeleton: map.get(primitive.$color-map, 'silver-fog-100'),
10
+ surface-brand: map.get(primitive.$color-map, 'silver-fog-950'),
11
+ // surface-invisible: map.get(primitive.$color-map, 'alpha-silver-fog-0-0'), // TODO add alpha palettes
12
+
13
+ surface-elevation-sunken: map.get(primitive.$color-map, 'silver-fog-50'),
14
+ surface-elevation-inset: map.get(primitive.$color-map, 'silver-fog-25'),
15
+ surface-elevation: map.get(primitive.$color-map, 'silver-fog-0'),
16
+ surface-elevation-raised: map.get(primitive.$color-map, 'silver-fog-0'),
17
+ surface-elevation-elevated: map.get(primitive.$color-map, 'silver-fog-0'),
18
+ surface-elevation-overlay: map.get(primitive.$color-map, 'silver-fog-0'),
19
+
20
+ surface-disabled: map.get(primitive.$color-map, 'silver-fog-100'),
21
+ on-surface-disabled: map.get(primitive.$color-map, 'silver-fog-400'),
22
+ surface-disabled-subtle: map.get(primitive.$color-map, 'silver-fog-50'),
23
+ on-surface-disabled-subtle: map.get(primitive.$color-map, 'silver-fog-400'),
24
+
25
+ surface-primary: map.get(primitive.$color-map, 'european-blue-600'),
26
+ on-surface-primary: map.get(primitive.$color-map, 'silver-fog-0'),
27
+ surface-primary--hover: map.get(primitive.$color-map, 'european-blue-700'),
28
+ on-surface-primary--hover: map.get(primitive.$color-map, 'silver-fog-0'),
29
+ surface-primary--pressed: map.get(primitive.$color-map, 'european-blue-800'),
30
+ on-surface-primary--pressed: map.get(primitive.$color-map, 'silver-fog-0'),
31
+ surface-primary-subtle: map.get(primitive.$color-map, 'european-blue-200'),
32
+ on-surface-primary-subtle: map.get(primitive.$color-map, 'european-blue-800'),
33
+
34
+ surface-highlight: map.get(primitive.$color-map, 'sunrise-orange-300'),
35
+ on-surface-highlight: map.get(primitive.$color-map, 'sunrise-orange-950'),
36
+ surface-highlight--hover: map.get(primitive.$color-map, 'sunrise-orange-400'),
37
+ on-surface-highlight--hover: map.get(primitive.$color-map, 'sunrise-orange-950'),
38
+ surface-highlight--pressed: map.get(primitive.$color-map, 'sunrise-orange-500'),
39
+ on-surface-highlight--pressed: map.get(primitive.$color-map, 'sunrise-orange-950'),
40
+ surface-highlight-subtler: map.get(primitive.$color-map, 'sunrise-orange-50'),
41
+ on-surface-highlight-subtler: map.get(primitive.$color-map, 'sunrise-orange-900'),
42
+
43
+ surface-inverted: map.get(primitive.$color-map, 'silver-fog-950'),
44
+ on-surface-inverted: map.get(primitive.$color-map, 'silver-fog-0'),
45
+ surface-inverted-subtle: map.get(primitive.$color-map, 'silver-fog-950'),
46
+ on-surface-inverted-subtle: map.get(primitive.$color-map, 'silver-fog-300'),
47
+ surface-inverted-disabled: map.get(primitive.$color-map, 'silver-fog-950'),
48
+ on-surface-inverted-disabled: map.get(primitive.$color-map, 'silver-fog-600'),
49
+
50
+ surface-neutral: map.get(primitive.$color-map, 'silver-fog-600'),
51
+ on-surface-neutral: map.get(primitive.$color-map, 'silver-fog-0'),
52
+ surface-neutral--hover: map.get(primitive.$color-map, 'silver-fog-700'),
53
+ on-surface-neutral--hover: map.get(primitive.$color-map, 'silver-fog-0'),
54
+ surface-neutral--pressed: map.get(primitive.$color-map, 'silver-fog-800'),
55
+ on-surface-neutral--pressed: map.get(primitive.$color-map, 'silver-fog-0'),
56
+ surface-neutral-subtle: map.get(primitive.$color-map, 'silver-fog-100'),
57
+ on-surface-neutral-subtle: map.get(primitive.$color-map, 'silver-fog-900'),
58
+
59
+ surface-critical: map.get(primitive.$color-map, 'red-600'),
60
+ on-surface-critical: map.get(primitive.$color-map, 'silver-fog-0'),
61
+ surface-critical--hover: map.get(primitive.$color-map, 'red-700'),
62
+ on-surface-critical--hover: map.get(primitive.$color-map, 'silver-fog-0'),
63
+ surface-critical--pressed: map.get(primitive.$color-map, 'red-800'),
64
+ on-surface-critical--pressed: map.get(primitive.$color-map, 'silver-fog-0'),
65
+ surface-critical-subtle: map.get(primitive.$color-map, 'red-200'),
66
+ on-surface-critical-subtle: map.get(primitive.$color-map, 'red-900'),
67
+ surface-critical-subtler: map.get(primitive.$color-map, 'red-50'),
68
+ on-surface-critical-subtler: map.get(primitive.$color-map, 'red-700'),
69
+
70
+ surface-info: map.get(primitive.$color-map, 'blue-600'),
71
+ on-surface-info: map.get(primitive.$color-map, 'silver-fog-0'),
72
+ surface-info-subtle: map.get(primitive.$color-map, 'blue-200'),
73
+ on-surface-info-subtle: map.get(primitive.$color-map, 'blue-900'),
74
+ surface-info-subtler: map.get(primitive.$color-map, 'blue-50'),
75
+ on-surface-info-subtler: map.get(primitive.$color-map, 'blue-800'),
76
+
77
+ surface-success: map.get(primitive.$color-map, 'green-800'),
78
+ on-surface-success: map.get(primitive.$color-map, 'silver-fog-0'),
79
+ surface-success-subtle: map.get(primitive.$color-map, 'green-200'),
80
+ on-surface-success-subtle: map.get(primitive.$color-map, 'green-900'),
81
+ surface-success-subtler: map.get(primitive.$color-map, 'green-50'),
82
+ on-surface-success-subtler: map.get(primitive.$color-map, 'green-800'),
83
+
84
+ surface-warning: map.get(primitive.$color-map, 'orange-500'),
85
+ on-surface-warning: map.get(primitive.$color-map, 'orange-950'),
86
+ surface-warning-subtle: map.get(primitive.$color-map, 'orange-200'),
87
+ on-surface-warning-subtle: map.get(primitive.$color-map, 'orange-900'),
88
+ surface-warning-subtler: map.get(primitive.$color-map, 'orange-50'),
89
+ on-surface-warning-subtler: map.get(primitive.$color-map, 'orange-800'),
90
+
91
+ foreground: map.get(primitive.$color-map, 'silver-fog-950'),
92
+ foreground-subtle: map.get(primitive.$color-map, 'silver-fog-800'),
93
+ foreground-subtler: map.get(primitive.$color-map, 'silver-fog-700'),
94
+ foreground-placeholder: map.get(primitive.$color-map, 'silver-fog-500'),
95
+ foreground-disabled: map.get(primitive.$color-map, 'silver-fog-400'),
96
+ foreground-primary: map.get(primitive.$color-map, 'european-blue-600'),
97
+ foreground-success: map.get(primitive.$color-map, 'green-800'),
98
+ foreground-info: map.get(primitive.$color-map, 'blue-900'),
99
+ foreground-warning: map.get(primitive.$color-map, 'orange-800'),
100
+ foreground-critical: map.get(primitive.$color-map, 'red-600'),
101
+ foreground-highlight: map.get(primitive.$color-map, 'sunrise-orange-900'),
102
+ foreground-inverted: map.get(primitive.$color-map, 'silver-fog-25'),
103
+
104
+ border-brand: map.get(primitive.$color-map, 'silver-fog-950'),
105
+ border-divider: map.get(primitive.$color-map, 'silver-fog-200'),
106
+ border-disabled: map.get(primitive.$color-map, 'silver-fog-100'),
107
+
108
+ border-primary: map.get(primitive.$color-map, 'european-blue-600'),
109
+ border-primary--hover: map.get(primitive.$color-map, 'european-blue-500'),
110
+ border-primary--pressed: map.get(primitive.$color-map, 'european-blue-400'),
111
+ border-primary-subtle: map.get(primitive.$color-map, 'european-blue-400'),
112
+ border-primary-subtler: map.get(primitive.$color-map, 'european-blue-100'),
113
+
114
+ border-info: map.get(primitive.$color-map, 'blue-700'),
115
+ border-info-subtle: map.get(primitive.$color-map, 'blue-300'),
116
+
117
+ border-success: map.get(primitive.$color-map, 'green-700'),
118
+ border-success-subtle: map.get(primitive.$color-map, 'green-300'),
119
+
120
+ border-warning: map.get(primitive.$color-map, 'orange-600'),
121
+ border-warning-subtle: map.get(primitive.$color-map, 'orange-300'),
122
+
123
+ border-critical: map.get(primitive.$color-map, 'red-600'),
124
+ border-critical-subtle: map.get(primitive.$color-map, 'red-300'),
125
+
126
+ border-highlight: map.get(primitive.$color-map, 'sunrise-orange-400'),
127
+ border-highlight-subtle: map.get(primitive.$color-map, 'sunrise-orange-300'),
128
+
129
+ border-inverted: map.get(primitive.$color-map, 'silver-fog-25'),
130
+ border-inverted-disabled: map.get(primitive.$color-map, 'silver-fog-500'),
131
+
132
+ border-neutral: map.get(primitive.$color-map, 'silver-fog-500'),
133
+ border-neutral--hover: map.get(primitive.$color-map, 'silver-fog-600'),
134
+
135
+ link: map.get(primitive.$color-map, 'european-blue-600'),
136
+ link--focused: map.get(primitive.$color-map, 'european-blue-600'),
137
+ link--hover: map.get(primitive.$color-map, 'european-blue-700'),
138
+ link--pressed: map.get(primitive.$color-map, 'european-blue-800'),
139
+ link--visited: map.get(primitive.$color-map, 'european-blue-700'),
140
+
141
+ link-inverted: map.get(primitive.$color-map, 'silver-fog-0'),
142
+ link-inverted--focused: map.get(primitive.$color-map, 'silver-fog-0'),
143
+ link-inverted--hover: map.get(primitive.$color-map, 'silver-fog-50'),
144
+ link-inverted--pressed: map.get(primitive.$color-map, 'silver-fog-100'),
145
+ link-inverted--visited: map.get(primitive.$color-map, 'silver-fog-25'),
146
+
147
+ link-contrast: map.get(primitive.$color-map, 'silver-fog-950'),
148
+ link-contrast--focused: map.get(primitive.$color-map, 'silver-fog-950'),
149
+ link-contrast--hover: map.get(primitive.$color-map, 'silver-fog-950'),
150
+ link-contrast--pressed: map.get(primitive.$color-map, 'silver-fog-800'),
151
+ link-contrast--visited: map.get(primitive.$color-map, 'silver-fog-900'),
152
+
153
+ focus: map.get(primitive.$color-map, 'european-blue-600'),
154
+ focus-inverted: map.get(primitive.$color-map, 'european-blue-300'),
155
+ focus-critical: map.get(primitive.$color-map, 'red-400'),
156
+ );
@@ -0,0 +1,37 @@
1
+ // BORDER RADIUS
2
+
3
+ $border-radius-map: (
4
+ none: 0,
5
+ xs: 2px,
6
+ s: 4px,
7
+ m: 8px,
8
+ l: 12px,
9
+ full: 999px
10
+ );
11
+
12
+
13
+ // BORDER WIDTH
14
+
15
+ $border-width-map: (
16
+ none: 0,
17
+ xs: 1px,
18
+ s: 2px,
19
+ m: 4px
20
+ );
21
+
22
+ // OPACITY
23
+
24
+ $opacity-map: (
25
+ none: 0,
26
+ 10: 0.1,
27
+ 20: 0.2,
28
+ 30: 0.3,
29
+ 40: 0.4,
30
+ 50: 0.5,
31
+ 60: 0.6,
32
+ 70: 0.7,
33
+ 80: 0.8,
34
+ 90: 0.9,
35
+ 100: 1
36
+ );
37
+
@@ -0,0 +1,69 @@
1
+ @use 'sass:map';
2
+ @use './dimensions-primitive' as dimensions-primitive;
3
+
4
+ $font-size-list: ('2xs', 'xs', 's', 'm', 'l', 'xl', '2xl', '3xl', '4xl', '5xl', '6xl', '7xl', '8xl', '9xl');
5
+
6
+ $font-size-map: (
7
+ '9xl': 6rem, // 96px
8
+ '8xl': 4rem, // 64px
9
+ '7xl': 3.25rem, // 52px
10
+ '6xl': 2.75rem, // 44px
11
+ '5xl': 2.25rem, // 36px
12
+ '4xl': 1.75rem, // 28px
13
+ '3xl': 1.5rem, // 24px
14
+ '2xl': 1.375rem, // 22px
15
+ 'xl': 1.25rem, // 20px
16
+ 'l': 1.125rem, // 18px
17
+ 'm': 1rem, // 16px
18
+ 's': 0.875rem, // 14px
19
+ 'xs': 0.75rem, // 12px
20
+ '2xs': 0.625rem // 10px
21
+ );
22
+
23
+ // font weight map
24
+
25
+ $font-weight-map: (
26
+ 'light': 300,
27
+ 'regular': 400,
28
+ 'medium': 500,
29
+ 'semi-bold': 600,
30
+ 'bold': 700
31
+ );
32
+
33
+ $font-line-height-map: (
34
+ '10xl': map.get(dimensions-primitive.$dimension-map, 96),
35
+ '9xl': map.get(dimensions-primitive.$dimension-map, 64),
36
+ '8xl': map.get(dimensions-primitive.$dimension-map, 60),
37
+ '7xl': map.get(dimensions-primitive.$dimension-map, 56),
38
+ '6xl': map.get(dimensions-primitive.$dimension-map, 52),
39
+ '5xl': map.get(dimensions-primitive.$dimension-map, 48),
40
+ '4xl': map.get(dimensions-primitive.$dimension-map, 44),
41
+ '3xl': map.get(dimensions-primitive.$dimension-map, 40),
42
+ '2xl': map.get(dimensions-primitive.$dimension-map, 36),
43
+ 'xl': map.get(dimensions-primitive.$dimension-map, 32),
44
+ 'l': map.get(dimensions-primitive.$dimension-map, 28),
45
+ 'm': map.get(dimensions-primitive.$dimension-map, 24),
46
+ 's': map.get(dimensions-primitive.$dimension-map, 20),
47
+ 'xs': map.get(dimensions-primitive.$dimension-map, 16),
48
+ '2xs': map.get(dimensions-primitive.$dimension-map, 12)
49
+ );
50
+
51
+ // semantic font-size link to letter-spacing map
52
+ $font-size-letter-spacing-map: (
53
+ '9xl': -2%,
54
+ '8xl': -2%,
55
+ '7xl': -2%,
56
+ '6xl': -1%,
57
+ '5xl': -1%,
58
+ '4xl': -1%,
59
+ '3xl': -1%,
60
+ '2xl': normal,
61
+ 'xl': normal,
62
+ 'l': normal,
63
+ 'm': normal,
64
+ 's': normal,
65
+ 'xs': normal,
66
+ '2xs': normal
67
+ );
68
+
69
+
@@ -0,0 +1,116 @@
1
+ $typography-semantic-map: (
2
+ desktop: (
3
+ display: (
4
+ xl: ( size: 9xl, line-height: 10xl, weight: regular ),
5
+ l: ( size: 8xl, line-height: 9xl, weight: semi-bold ),
6
+ ),
7
+ heading: (
8
+ 2xl: ( size: 6xl, line-height: 6xl, weight: semi-bold ),
9
+ xl: ( size: 5xl, line-height: 4xl, weight: semi-bold ),
10
+ l: ( size: 4xl, line-height: 2xl, weight: semi-bold ),
11
+ m: ( size: 3xl, line-height: xl, weight: semi-bold ),
12
+ s: ( size: xl, line-height: l, weight: semi-bold ),
13
+ s-medium: ( size: xl, line-height: l, weight: medium ),
14
+ xs: ( size: l, line-height: l, weight: bold ),
15
+ ),
16
+ paragraph: (
17
+ xl: ( size: 3xl, line-height: 2xl, weight: regular ),
18
+ l: ( size: l, line-height: l, weight: regular ),
19
+ l-semi-bold: ( size: l, line-height: l, weight: semi-bold ),
20
+ l-bold: ( size: l, line-height: l, weight: bold ),
21
+ m: ( size: m, line-height: m, weight: regular ),
22
+ m-semi-bold: ( size: m, line-height: m, weight: semi-bold ),
23
+ m-bold: ( size: m, line-height: m, weight: bold ),
24
+ s: ( size: s, line-height: s, weight: regular ),
25
+ s-semi-bold: ( size: s, line-height: s, weight: semi-bold ),
26
+ s-bold: ( size: s, line-height: s, weight: bold ),
27
+ ),
28
+ label: (
29
+ l: ( size: l, line-height: l, weight: regular ),
30
+ m: ( size: m, line-height: m, weight: regular ),
31
+ m-medium: ( size: m, line-height: m, weight: medium ),
32
+ m-semi-bold: ( size: m, line-height: m, weight: semi-bold ),
33
+ s: ( size: s, line-height: s, weight: regular ),
34
+ ),
35
+ microcopy: (
36
+ xs: ( size: xs, line-height: xs, weight: medium ),
37
+ 2xs: ( size: 2xs, line-height: 2xs, weight: regular ),
38
+ ),
39
+ ),
40
+ tablet: (
41
+ display: (
42
+ xl: ( size: 8xl, line-height: 9xl, weight: regular ),
43
+ l: ( size: 7xl, line-height: 6xl, weight: semi-bold ),
44
+ ),
45
+ heading: (
46
+ 2xl: ( size: 5xl, line-height: 4xl, weight: semi-bold ),
47
+ xl: ( size: 4xl, line-height: 2xl, weight: semi-bold ),
48
+ l: ( size: 2xl, line-height: l, weight: semi-bold ),
49
+ m: ( size: xl, line-height: l, weight: semi-bold ),
50
+ s: ( size: l, line-height: m, weight: semi-bold ),
51
+ s-medium: ( size: l, line-height: m, weight: medium ),
52
+ xs: ( size: m, line-height: m, weight: bold ),
53
+ ),
54
+ paragraph: (
55
+ xl: ( size: 2xl, line-height: xl, weight: regular ),
56
+ l: ( size: l, line-height: l, weight: regular ),
57
+ l-semi-bold: ( size: l, line-height: l, weight: semi-bold ),
58
+ l-bold: ( size: l, line-height: l, weight: bold ),
59
+ m: ( size: m, line-height: m, weight: regular ),
60
+ m-semi-bold: ( size: m, line-height: m, weight: semi-bold ),
61
+ m-bold: ( size: m, line-height: m, weight: bold ),
62
+ s: ( size: s, line-height: s, weight: regular ),
63
+ s-semi-bold: ( size: s, line-height: s, weight: semi-bold ),
64
+ s-bold: ( size: s, line-height: s, weight: bold ),
65
+ ),
66
+ label: (
67
+ l: ( size: l, line-height: l, weight: regular ),
68
+ m: ( size: m, line-height: m, weight: regular ),
69
+ m-medium: ( size: m, line-height: m, weight: medium ),
70
+ m-semi-bold: ( size: m, line-height: m, weight: semi-bold ),
71
+ s: ( size: s, line-height: s, weight: regular ),
72
+ ),
73
+ microcopy: (
74
+ xs: ( size: xs, line-height: xs, weight: medium ),
75
+ 2xs: ( size: 2xs, line-height: 2xs, weight: regular ),
76
+ ),
77
+ ),
78
+ mobile: (
79
+ display: (
80
+ xl: ( size: 6xl, line-height: 4xl, weight: regular ),
81
+ l: ( size: 5xl, line-height: 2xl, weight: semi-bold ),
82
+ ),
83
+ heading: (
84
+ 2xl: ( size: 4xl, line-height: 2xl, weight: semi-bold ),
85
+ xl: ( size: 2xl, line-height: l, weight: semi-bold ),
86
+ l: ( size: xl, line-height: m, weight: semi-bold ),
87
+ m: ( size: l, line-height: m, weight: semi-bold ),
88
+ s: ( size: m, line-height: m, weight: semi-bold ),
89
+ s-medium: ( size: m, line-height: m, weight: medium ),
90
+ xs: ( size: m, line-height: m, weight: bold ),
91
+ ),
92
+ paragraph: (
93
+ xl: ( size: xl, line-height: l, weight: regular ),
94
+ l: ( size: l, line-height: l, weight: regular ),
95
+ l-semi-bold: ( size: l, line-height: l, weight: semi-bold ),
96
+ l-bold: ( size: l, line-height: l, weight: bold ),
97
+ m: ( size: m, line-height: m, weight: regular ),
98
+ m-semi-bold: ( size: m, line-height: m, weight: semi-bold ),
99
+ m-bold: ( size: m, line-height: m, weight: bold ),
100
+ s: ( size: s, line-height: s, weight: regular ),
101
+ s-semi-bold: ( size: s, line-height: s, weight: semi-bold ),
102
+ s-bold: ( size: s, line-height: s, weight: bold ),
103
+ ),
104
+ label: (
105
+ l: ( size: l, line-height: l, weight: regular ),
106
+ m: ( size: m, line-height: m, weight: regular ),
107
+ m-medium: ( size: m, line-height: m, weight: medium ),
108
+ m-semi-bold: ( size: m, line-height: m, weight: semi-bold ),
109
+ s: ( size: s, line-height: s, weight: regular ),
110
+ ),
111
+ microcopy: (
112
+ xs: ( size: xs, line-height: xs, weight: medium ),
113
+ 2xs: ( size: 2xs, line-height: 2xs, weight: regular ),
114
+ ),
115
+ ),
116
+ );
@@ -46,40 +46,5 @@ $font-weight-map: (
46
46
  'bold': 700
47
47
  );
48
48
 
49
- $eds-font-line-height-map: (
50
- '10xl': map.get(dimensions-primitive.$dimension-map, 96),
51
- '9xl': map.get(dimensions-primitive.$dimension-map, 64),
52
- '8xl': map.get(dimensions-primitive.$dimension-map, 60),
53
- '7xl': map.get(dimensions-primitive.$dimension-map, 56),
54
- '6xl': map.get(dimensions-primitive.$dimension-map, 52),
55
- '5xl': map.get(dimensions-primitive.$dimension-map, 48),
56
- '4xl': map.get(dimensions-primitive.$dimension-map, 44),
57
- '3xl': map.get(dimensions-primitive.$dimension-map, 40),
58
- '2xl': map.get(dimensions-primitive.$dimension-map, 36),
59
- 'xl': map.get(dimensions-primitive.$dimension-map, 32),
60
- 'l': map.get(dimensions-primitive.$dimension-map, 28),
61
- 'm': map.get(dimensions-primitive.$dimension-map, 24),
62
- 's': map.get(dimensions-primitive.$dimension-map, 20),
63
- 'xs': map.get(dimensions-primitive.$dimension-map, 16),
64
- '2xs': map.get(dimensions-primitive.$dimension-map, 12)
65
- );
66
-
67
- // semantic font-size link to letter-spacing map
68
- $eds-font-size-letter-spacing-map: (
69
- '9xl': -2%,
70
- '8xl': -2%,
71
- '7xl': -2%,
72
- '6xl': -1%,
73
- '5xl': -1%,
74
- '4xl': -1%,
75
- '3xl': -1%,
76
- '2xl': normal,
77
- 'xl': normal,
78
- 'l': normal,
79
- 'm': normal,
80
- 's': normal,
81
- 'xs': normal,
82
- '2xs': normal
83
- );
84
49
 
85
50
 
@@ -1,122 +1,4 @@
1
1
  $typography-semantic-map: (
2
- desktop: (
3
- display: (
4
- xl: ( size: 9xl, line-height: 10xl, weight: regular ),
5
- l: ( size: 8xl, line-height: 9xl, weight: semi-bold ),
6
- ),
7
- heading: (
8
- 2xl: ( size: 6xl, line-height: 6xl, weight: semi-bold ),
9
- xl: ( size: 5xl, line-height: 4xl, weight: semi-bold ),
10
- l: ( size: 4xl, line-height: 2xl, weight: semi-bold ),
11
- m: ( size: 3xl, line-height: xl, weight: semi-bold ),
12
- s: ( size: xl, line-height: l, weight: semi-bold ),
13
- s-medium: ( size: xl, line-height: l, weight: medium ),
14
- xs: ( size: l, line-height: l, weight: bold ),
15
- ),
16
- paragraph: (
17
- xl: ( size: 3xl, line-height: 2xl, weight: regular ),
18
- l: ( size: l, line-height: l, weight: regular ),
19
- l-semi-bold: ( size: l, line-height: l, weight: semi-bold ),
20
- l-bold: ( size: l, line-height: l, weight: bold ),
21
- m: ( size: m, line-height: m, weight: regular ),
22
- m-semi-bold: ( size: m, line-height: m, weight: semi-bold ),
23
- m-bold: ( size: m, line-height: m, weight: bold ),
24
- s: ( size: s, line-height: s, weight: regular ),
25
- s-semi-bold: ( size: s, line-height: s, weight: semi-bold ),
26
- s-bold: ( size: s, line-height: s, weight: bold ),
27
- ),
28
- label: (
29
- l: ( size: l, line-height: l, weight: regular ),
30
- m: ( size: m, line-height: m, weight: regular ),
31
- m-medium: ( size: m, line-height: m, weight: medium ),
32
- m-semi-bold: ( size: m, line-height: m, weight: semi-bold ),
33
- s: ( size: s, line-height: s, weight: regular ),
34
- ),
35
- microcopy: (
36
- xs: ( size: xs, line-height: xs, weight: medium ),
37
- 2xs: ( size: 2xs, line-height: 2xs, weight: regular ),
38
- ),
39
- ),
40
- tablet: (
41
- display: (
42
- xl: ( size: 8xl, line-height: 9xl, weight: regular ),
43
- l: ( size: 7xl, line-height: 6xl, weight: semi-bold ),
44
- ),
45
- heading: (
46
- 2xl: ( size: 5xl, line-height: 4xl, weight: semi-bold ),
47
- xl: ( size: 4xl, line-height: 2xl, weight: semi-bold ),
48
- l: ( size: 2xl, line-height: l, weight: semi-bold ),
49
- m: ( size: xl, line-height: l, weight: semi-bold ),
50
- s: ( size: l, line-height: m, weight: semi-bold ),
51
- s-medium: ( size: l, line-height: m, weight: medium ),
52
- xs: ( size: m, line-height: m, weight: bold ),
53
- ),
54
- paragraph: (
55
- xl: ( size: 2xl, line-height: xl, weight: regular ),
56
- l: ( size: l, line-height: l, weight: regular ),
57
- l-semi-bold: ( size: l, line-height: l, weight: semi-bold ),
58
- l-bold: ( size: l, line-height: l, weight: bold ),
59
- m: ( size: m, line-height: m, weight: regular ),
60
- m-semi-bold: ( size: m, line-height: m, weight: semi-bold ),
61
- m-bold: ( size: m, line-height: m, weight: bold ),
62
- s: ( size: s, line-height: s, weight: regular ),
63
- s-semi-bold: ( size: s, line-height: s, weight: semi-bold ),
64
- s-bold: ( size: s, line-height: s, weight: bold ),
65
- ),
66
- label: (
67
- l: ( size: l, line-height: l, weight: regular ),
68
- m: ( size: m, line-height: m, weight: regular ),
69
- m-medium: ( size: m, line-height: m, weight: medium ),
70
- m-semi-bold: ( size: m, line-height: m, weight: semi-bold ),
71
- s: ( size: s, line-height: s, weight: regular ),
72
- ),
73
- microcopy: (
74
- xs: ( size: xs, line-height: xs, weight: medium ),
75
- 2xs: ( size: 2xs, line-height: 2xs, weight: regular ),
76
- ),
77
- ),
78
- mobile: (
79
- display: (
80
- xl: ( size: 6xl, line-height: 4xl, weight: regular ),
81
- l: ( size: 5xl, line-height: 2xl, weight: semi-bold ),
82
- ),
83
- heading: (
84
- 2xl: ( size: 4xl, line-height: 2xl, weight: semi-bold ),
85
- xl: ( size: 2xl, line-height: l, weight: semi-bold ),
86
- l: ( size: xl, line-height: m, weight: semi-bold ),
87
- m: ( size: l, line-height: m, weight: semi-bold ),
88
- s: ( size: m, line-height: m, weight: semi-bold ),
89
- s-medium: ( size: m, line-height: m, weight: medium ),
90
- xs: ( size: m, line-height: m, weight: bold ),
91
- ),
92
- paragraph: (
93
- xl: ( size: xl, line-height: l, weight: regular ),
94
- l: ( size: l, line-height: l, weight: regular ),
95
- l-semi-bold: ( size: l, line-height: l, weight: semi-bold ),
96
- l-bold: ( size: l, line-height: l, weight: bold ),
97
- m: ( size: m, line-height: m, weight: regular ),
98
- m-semi-bold: ( size: m, line-height: m, weight: semi-bold ),
99
- m-bold: ( size: m, line-height: m, weight: bold ),
100
- s: ( size: s, line-height: s, weight: regular ),
101
- s-semi-bold: ( size: s, line-height: s, weight: semi-bold ),
102
- s-bold: ( size: s, line-height: s, weight: bold ),
103
- ),
104
- label: (
105
- l: ( size: l, line-height: l, weight: regular ),
106
- m: ( size: m, line-height: m, weight: regular ),
107
- m-medium: ( size: m, line-height: m, weight: medium ),
108
- m-semi-bold: ( size: m, line-height: m, weight: semi-bold ),
109
- s: ( size: s, line-height: s, weight: regular ),
110
- ),
111
- microcopy: (
112
- xs: ( size: xs, line-height: xs, weight: medium ),
113
- 2xs: ( size: 2xs, line-height: 2xs, weight: regular ),
114
- ),
115
- ),
116
- );
117
-
118
-
119
- $typography-semantic-flatlist-map: (
120
2
  6xl: (
121
3
  desktop: (
122
4
  font-size: 6xl,
@@ -0,0 +1,7 @@
1
+ @use '../02-tokens/eds-colors-semantic-dark-theme' as semantic;
2
+
3
+ html.eui-t-dark {
4
+ @each $color, $value in semantic.$color-semantic-map {
5
+ --eds-c-#{$color}: #{$value};
6
+ }
7
+ }
@@ -0,0 +1,7 @@
1
+ @use '../02-tokens/eds-colors-semantic' as semantic;
2
+
3
+ :root {
4
+ @each $color, $value in semantic.$color-semantic-map {
5
+ --eds-c-#{$color}: #{$value};
6
+ }
7
+ }
@@ -0,0 +1,55 @@
1
+ @use 'sass:map';
2
+ @use '../01-base' as base;
3
+ @use '../02-tokens/maps' as maps;
4
+ @use '../02-tokens/dimensions-semantic' as dimensions-semantic;
5
+ @use '../02-tokens/eds-typography-primitive' as typography-primitive;
6
+ @use '../02-tokens/eds-typography-semantic' as typography-semantic;
7
+
8
+ :root {
9
+ // TYPOGRAPHY
10
+ --eds-f-family: 'Inter', arial, sans-serif;
11
+
12
+ // font families
13
+ --eds-f-family-monospace: 'Consolas', 'Liberation Mono', 'Courier New', monospace;
14
+
15
+ @each $size, $def in typography-primitive.$font-size-map {
16
+ --eds-f-s-#{$size}: #{$def};
17
+ }
18
+ @each $size, $def in typography-primitive.$font-line-height-map {
19
+ --eds-f-lh-#{$size}: #{$def};
20
+ }
21
+ @each $size, $def in typography-primitive.$font-weight-map {
22
+ --eds-f-w-#{$size}: #{$def};
23
+ }
24
+
25
+ // EDS raw vars
26
+ @each $size, $def in typography-primitive.$font-line-height-map {
27
+ --eds-f-lh-#{$size}: #{$def};
28
+ }
29
+ @each $size, $def in typography-primitive.$font-size-letter-spacing-map {
30
+ --eds-f-ls-#{$size}: #{$def};
31
+ }
32
+
33
+ // EDS typography
34
+ @each $type, $typeDef in map.get(typography-semantic.$typography-semantic-map, 'desktop') {
35
+ @each $size, $sizeDef in $typeDef {
36
+ --eds-f-#{$type}-#{$size}: normal normal var(--eds-f-w-#{map.get($sizeDef, 'weight')}) var(--eds-f-s-#{map.get($sizeDef, 'size')})/var(--eds-f-lh-#{map.get($sizeDef, 'line-height')}) var(--eds-f-family);
37
+ }
38
+ }
39
+
40
+ @include base.media(maps.$eui-bkp-tablet) {
41
+ @each $type, $typeDef in map.get(typography-semantic.$typography-semantic-map, 'tablet') {
42
+ @each $size, $sizeDef in $typeDef {
43
+ --eds-f-#{$type}-#{$size}: normal normal var(--eds-f-w-#{map.get($sizeDef, 'weight')}) var(--eds-f-s-#{map.get($sizeDef, 'size')})/var(--eui-f-eds-lh-#{map.get($sizeDef, 'line-height')}) var(--eds-f-family);
44
+ }
45
+ }
46
+ }
47
+
48
+ @include base.media(maps.$eui-bkp-mobile) {
49
+ @each $type, $typeDef in map.get(typography-semantic.$typography-semantic-map, 'mobile') {
50
+ @each $size, $sizeDef in $typeDef {
51
+ --eds-f-#{$type}-#{$size}: normal normal var(--eds-f-w-#{map.get($sizeDef, 'weight')}) var(--eds-f-s-#{map.get($sizeDef, 'size')})/var(--eui-f-eds-lh-#{map.get($sizeDef, 'line-height')}) var(--eds-f-family);
52
+ }
53
+ }
54
+ }
55
+ }