@eui/eds-styles 22.0.0-alpha.2 → 22.0.0-alpha.20
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/dist/assets/eds-components.d.ts +70 -0
- package/dist/assets/eds-components.json +134 -0
- package/dist/assets/images/estat-logo-horizontal.svg +27 -0
- package/dist/assets/images/eui-logo.svg +12 -0
- package/dist/assets/images/europa-flag-image.jpg +0 -0
- package/dist/assets/images/placeholder.svg +1 -0
- package/dist/base/01-base/index.scss +0 -1
- package/dist/base/02-tokens/colors-primitive.scss +72 -767
- package/dist/base/02-tokens/colors-semantic-dark-theme.scss +199 -113
- package/dist/base/02-tokens/colors-semantic.scss +138 -52
- package/dist/base/02-tokens/dimensions-primitive.scss +10 -23
- package/dist/base/02-tokens/ecl/primitives/_breakpoint.scss +16 -0
- package/dist/base/02-tokens/ecl/primitives/_color-domain.scss +189 -0
- package/dist/base/02-tokens/ecl/primitives/_color.scss +190 -0
- package/dist/base/02-tokens/ecl/primitives/_dimension.scss +31 -0
- package/dist/base/02-tokens/ecl/primitives/_grid.scss +25 -0
- package/dist/base/02-tokens/ecl/primitives/_index.scss +14 -0
- package/dist/base/02-tokens/ecl/primitives/_typography.scss +58 -0
- package/dist/base/02-tokens/ecl/semantic/_border.scss +22 -0
- package/dist/base/02-tokens/ecl/semantic/_color-dark.scss +221 -0
- package/dist/base/02-tokens/ecl/semantic/_color-domain-dark.scss +172 -0
- package/dist/base/02-tokens/ecl/semantic/_color-domain.scss +172 -0
- package/dist/base/02-tokens/ecl/semantic/_color.scss +227 -0
- package/dist/base/02-tokens/ecl/semantic/_index.scss +17 -0
- package/dist/base/02-tokens/ecl/semantic/_opacity.scss +21 -0
- package/dist/base/02-tokens/ecl/semantic/_shadow.scss +41 -0
- package/dist/base/02-tokens/ecl/semantic/_spacing.scss +62 -0
- package/dist/base/02-tokens/ecl/semantic/_typography.scss +288 -0
- package/dist/base/02-tokens/maps.scss +29 -71
- package/dist/base/02-tokens/typography-primitive.scss +15 -46
- package/dist/base/02-tokens/typography-semantic.scss +33 -33
- package/dist/base/04-elements/table.scss +3 -3
- package/dist/base/06-shared/index.scss +1 -0
- package/dist/base/99-utilities/index.scss +1 -0
- package/dist/base/99-utilities/others.scss +11 -0
- package/dist/eds-grid.css +1 -1
- package/dist/eds-grid.css.map +1 -1
- package/dist/eds-showcase-exports.css +1 -1
- package/dist/eds-showcase-exports.css.map +1 -1
- package/dist/eds-utilities.css +1 -1
- package/dist/eds-utilities.css.map +1 -1
- package/dist/eds-vars.css +1 -1
- package/dist/eds-vars.css.map +1 -1
- package/dist/eds.css +1 -1
- package/dist/eds.css.map +1 -1
- package/package.json +1 -1
- /package/dist/base/{01-base → 06-shared}/animations.scss +0 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// GENERATED FILE — DO NOT EDIT.
|
|
3
|
+
//
|
|
4
|
+
// Imported verbatim from ecl-eds-foundations/semantic/_spacing.scss
|
|
5
|
+
// by tools/ecl-import.mjs. Edit the upstream source and re-run:
|
|
6
|
+
// node packages/eui/packages/eds-styles/tools/ecl-import.mjs
|
|
7
|
+
// ============================================================================
|
|
8
|
+
|
|
9
|
+
@use 'sass:map';
|
|
10
|
+
@use '../primitives/dimension' as primitive;
|
|
11
|
+
|
|
12
|
+
$spacing: (
|
|
13
|
+
none: map.get(primitive.$dimension, none),
|
|
14
|
+
5xs: map.get(primitive.$dimension, 1),
|
|
15
|
+
4xs: map.get(primitive.$dimension, 2),
|
|
16
|
+
3xs: map.get(primitive.$dimension, 4),
|
|
17
|
+
2xs: map.get(primitive.$dimension, 6),
|
|
18
|
+
xs: map.get(primitive.$dimension, 8),
|
|
19
|
+
s: map.get(primitive.$dimension, 12),
|
|
20
|
+
m: map.get(primitive.$dimension, 16),
|
|
21
|
+
l: map.get(primitive.$dimension, 20),
|
|
22
|
+
xl: map.get(primitive.$dimension, 24),
|
|
23
|
+
2xl: map.get(primitive.$dimension, 28),
|
|
24
|
+
3xl: map.get(primitive.$dimension, 32),
|
|
25
|
+
4xl: map.get(primitive.$dimension, 36),
|
|
26
|
+
5xl: map.get(primitive.$dimension, 40),
|
|
27
|
+
6xl: map.get(primitive.$dimension, 44),
|
|
28
|
+
7xl: map.get(primitive.$dimension, 48),
|
|
29
|
+
8xl: map.get(primitive.$dimension, 52),
|
|
30
|
+
9xl: map.get(primitive.$dimension, 56),
|
|
31
|
+
10xl: map.get(primitive.$dimension, 60),
|
|
32
|
+
11xl: map.get(primitive.$dimension, 64),
|
|
33
|
+
);
|
|
34
|
+
$sizing: (
|
|
35
|
+
none: map.get(primitive.$dimension, none),
|
|
36
|
+
3xs: map.get(primitive.$dimension, 2),
|
|
37
|
+
2xs: map.get(primitive.$dimension, 4),
|
|
38
|
+
xs: map.get(primitive.$dimension, 8),
|
|
39
|
+
s: map.get(primitive.$dimension, 12),
|
|
40
|
+
m: map.get(primitive.$dimension, 16),
|
|
41
|
+
l: map.get(primitive.$dimension, 20),
|
|
42
|
+
xl: map.get(primitive.$dimension, 24),
|
|
43
|
+
2xl: map.get(primitive.$dimension, 28),
|
|
44
|
+
3xl: map.get(primitive.$dimension, 32),
|
|
45
|
+
4xl: map.get(primitive.$dimension, 40),
|
|
46
|
+
5xl: map.get(primitive.$dimension, 44),
|
|
47
|
+
6xl: map.get(primitive.$dimension, 48),
|
|
48
|
+
7xl: map.get(primitive.$dimension, 56),
|
|
49
|
+
8xl: map.get(primitive.$dimension, 60),
|
|
50
|
+
9xl: map.get(primitive.$dimension, 64),
|
|
51
|
+
);
|
|
52
|
+
$icon-sizing: (
|
|
53
|
+
2xs: map.get(primitive.$dimension, 12),
|
|
54
|
+
xs: map.get(primitive.$dimension, 16),
|
|
55
|
+
s: map.get(primitive.$dimension, 20),
|
|
56
|
+
m: map.get(primitive.$dimension, 24),
|
|
57
|
+
l: map.get(primitive.$dimension, 32),
|
|
58
|
+
xl: map.get(primitive.$dimension, 40),
|
|
59
|
+
2xl: map.get(primitive.$dimension, 48),
|
|
60
|
+
3xl: map.get(primitive.$dimension, 56),
|
|
61
|
+
4xl: map.get(primitive.$dimension, 64),
|
|
62
|
+
);
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// GENERATED FILE — DO NOT EDIT.
|
|
3
|
+
//
|
|
4
|
+
// Imported verbatim from ecl-eds-foundations/semantic/_typography.scss
|
|
5
|
+
// by tools/ecl-import.mjs. Edit the upstream source and re-run:
|
|
6
|
+
// node packages/eui/packages/eds-styles/tools/ecl-import.mjs
|
|
7
|
+
// ============================================================================
|
|
8
|
+
|
|
9
|
+
// Weight is intentionally not part of this map — it's chosen independently
|
|
10
|
+
// via the primitive font-weight scale, orthogonal to size/line-height.
|
|
11
|
+
$typography: (
|
|
12
|
+
mobile: (
|
|
13
|
+
display: (
|
|
14
|
+
xl: (
|
|
15
|
+
size: 6xl,
|
|
16
|
+
line-height: 4xl,
|
|
17
|
+
),
|
|
18
|
+
l: (
|
|
19
|
+
size: 5xl,
|
|
20
|
+
line-height: 2xl,
|
|
21
|
+
),
|
|
22
|
+
),
|
|
23
|
+
heading: (
|
|
24
|
+
2xl: (
|
|
25
|
+
size: 4xl,
|
|
26
|
+
line-height: 2xl,
|
|
27
|
+
),
|
|
28
|
+
xl: (
|
|
29
|
+
size: 2xl,
|
|
30
|
+
line-height: l,
|
|
31
|
+
),
|
|
32
|
+
l: (
|
|
33
|
+
size: xl,
|
|
34
|
+
line-height: m,
|
|
35
|
+
),
|
|
36
|
+
m: (
|
|
37
|
+
size: l,
|
|
38
|
+
line-height: m,
|
|
39
|
+
),
|
|
40
|
+
s: (
|
|
41
|
+
size: m,
|
|
42
|
+
line-height: m,
|
|
43
|
+
),
|
|
44
|
+
xs: (
|
|
45
|
+
size: m,
|
|
46
|
+
line-height: m,
|
|
47
|
+
),
|
|
48
|
+
),
|
|
49
|
+
label: (
|
|
50
|
+
l: (
|
|
51
|
+
size: l,
|
|
52
|
+
line-height: l,
|
|
53
|
+
),
|
|
54
|
+
m: (
|
|
55
|
+
size: m,
|
|
56
|
+
line-height: m,
|
|
57
|
+
),
|
|
58
|
+
s: (
|
|
59
|
+
size: s,
|
|
60
|
+
line-height: s,
|
|
61
|
+
),
|
|
62
|
+
),
|
|
63
|
+
microcopy: (
|
|
64
|
+
m: (
|
|
65
|
+
size: xs,
|
|
66
|
+
line-height: xs,
|
|
67
|
+
),
|
|
68
|
+
),
|
|
69
|
+
paragraph: (
|
|
70
|
+
xl: (
|
|
71
|
+
size: xl,
|
|
72
|
+
line-height: l,
|
|
73
|
+
),
|
|
74
|
+
l: (
|
|
75
|
+
size: l,
|
|
76
|
+
line-height: l,
|
|
77
|
+
),
|
|
78
|
+
m: (
|
|
79
|
+
size: m,
|
|
80
|
+
line-height: m,
|
|
81
|
+
),
|
|
82
|
+
s: (
|
|
83
|
+
size: s,
|
|
84
|
+
line-height: s,
|
|
85
|
+
),
|
|
86
|
+
),
|
|
87
|
+
placeholder: (
|
|
88
|
+
m: (
|
|
89
|
+
size: m,
|
|
90
|
+
line-height: m,
|
|
91
|
+
),
|
|
92
|
+
s: (
|
|
93
|
+
size: s,
|
|
94
|
+
line-height: s,
|
|
95
|
+
),
|
|
96
|
+
),
|
|
97
|
+
supportive: (
|
|
98
|
+
m: (
|
|
99
|
+
size: 2xs,
|
|
100
|
+
line-height: 2xs,
|
|
101
|
+
),
|
|
102
|
+
),
|
|
103
|
+
),
|
|
104
|
+
tablet: (
|
|
105
|
+
display: (
|
|
106
|
+
xl: (
|
|
107
|
+
size: 8xl,
|
|
108
|
+
line-height: 9xl,
|
|
109
|
+
),
|
|
110
|
+
l: (
|
|
111
|
+
size: 7xl,
|
|
112
|
+
line-height: 6xl,
|
|
113
|
+
),
|
|
114
|
+
),
|
|
115
|
+
heading: (
|
|
116
|
+
2xl: (
|
|
117
|
+
size: 5xl,
|
|
118
|
+
line-height: 4xl,
|
|
119
|
+
),
|
|
120
|
+
xl: (
|
|
121
|
+
size: 4xl,
|
|
122
|
+
line-height: 2xl,
|
|
123
|
+
),
|
|
124
|
+
l: (
|
|
125
|
+
size: 2xl,
|
|
126
|
+
line-height: l,
|
|
127
|
+
),
|
|
128
|
+
m: (
|
|
129
|
+
size: xl,
|
|
130
|
+
line-height: l,
|
|
131
|
+
),
|
|
132
|
+
s: (
|
|
133
|
+
size: l,
|
|
134
|
+
line-height: m,
|
|
135
|
+
),
|
|
136
|
+
xs: (
|
|
137
|
+
size: m,
|
|
138
|
+
line-height: m,
|
|
139
|
+
),
|
|
140
|
+
),
|
|
141
|
+
label: (
|
|
142
|
+
l: (
|
|
143
|
+
size: l,
|
|
144
|
+
line-height: l,
|
|
145
|
+
),
|
|
146
|
+
m: (
|
|
147
|
+
size: m,
|
|
148
|
+
line-height: m,
|
|
149
|
+
),
|
|
150
|
+
s: (
|
|
151
|
+
size: s,
|
|
152
|
+
line-height: s,
|
|
153
|
+
),
|
|
154
|
+
),
|
|
155
|
+
microcopy: (
|
|
156
|
+
m: (
|
|
157
|
+
size: xs,
|
|
158
|
+
line-height: xs,
|
|
159
|
+
),
|
|
160
|
+
),
|
|
161
|
+
paragraph: (
|
|
162
|
+
xl: (
|
|
163
|
+
size: 2xl,
|
|
164
|
+
line-height: xl,
|
|
165
|
+
),
|
|
166
|
+
l: (
|
|
167
|
+
size: l,
|
|
168
|
+
line-height: l,
|
|
169
|
+
),
|
|
170
|
+
m: (
|
|
171
|
+
size: m,
|
|
172
|
+
line-height: m,
|
|
173
|
+
),
|
|
174
|
+
s: (
|
|
175
|
+
size: s,
|
|
176
|
+
line-height: s,
|
|
177
|
+
),
|
|
178
|
+
),
|
|
179
|
+
placeholder: (
|
|
180
|
+
m: (
|
|
181
|
+
size: m,
|
|
182
|
+
line-height: m,
|
|
183
|
+
),
|
|
184
|
+
s: (
|
|
185
|
+
size: s,
|
|
186
|
+
line-height: s,
|
|
187
|
+
),
|
|
188
|
+
),
|
|
189
|
+
supportive: (
|
|
190
|
+
m: (
|
|
191
|
+
size: 2xs,
|
|
192
|
+
line-height: 2xs,
|
|
193
|
+
),
|
|
194
|
+
),
|
|
195
|
+
),
|
|
196
|
+
desktop: (
|
|
197
|
+
display: (
|
|
198
|
+
xl: (
|
|
199
|
+
size: 9xl,
|
|
200
|
+
line-height: 10xl,
|
|
201
|
+
),
|
|
202
|
+
l: (
|
|
203
|
+
size: 8xl,
|
|
204
|
+
line-height: 9xl,
|
|
205
|
+
),
|
|
206
|
+
),
|
|
207
|
+
heading: (
|
|
208
|
+
2xl: (
|
|
209
|
+
size: 6xl,
|
|
210
|
+
line-height: 6xl,
|
|
211
|
+
),
|
|
212
|
+
xl: (
|
|
213
|
+
size: 5xl,
|
|
214
|
+
line-height: 4xl,
|
|
215
|
+
),
|
|
216
|
+
l: (
|
|
217
|
+
size: 4xl,
|
|
218
|
+
line-height: 2xl,
|
|
219
|
+
),
|
|
220
|
+
m: (
|
|
221
|
+
size: 3xl,
|
|
222
|
+
line-height: xl,
|
|
223
|
+
),
|
|
224
|
+
s: (
|
|
225
|
+
size: xl,
|
|
226
|
+
line-height: l,
|
|
227
|
+
),
|
|
228
|
+
xs: (
|
|
229
|
+
size: l,
|
|
230
|
+
line-height: l,
|
|
231
|
+
),
|
|
232
|
+
),
|
|
233
|
+
label: (
|
|
234
|
+
l: (
|
|
235
|
+
size: l,
|
|
236
|
+
line-height: l,
|
|
237
|
+
),
|
|
238
|
+
m: (
|
|
239
|
+
size: m,
|
|
240
|
+
line-height: m,
|
|
241
|
+
),
|
|
242
|
+
s: (
|
|
243
|
+
size: s,
|
|
244
|
+
line-height: s,
|
|
245
|
+
),
|
|
246
|
+
),
|
|
247
|
+
microcopy: (
|
|
248
|
+
m: (
|
|
249
|
+
size: xs,
|
|
250
|
+
line-height: xs,
|
|
251
|
+
),
|
|
252
|
+
),
|
|
253
|
+
paragraph: (
|
|
254
|
+
xl: (
|
|
255
|
+
size: 3xl,
|
|
256
|
+
line-height: 2xl,
|
|
257
|
+
),
|
|
258
|
+
l: (
|
|
259
|
+
size: l,
|
|
260
|
+
line-height: l,
|
|
261
|
+
),
|
|
262
|
+
m: (
|
|
263
|
+
size: m,
|
|
264
|
+
line-height: m,
|
|
265
|
+
),
|
|
266
|
+
s: (
|
|
267
|
+
size: s,
|
|
268
|
+
line-height: s,
|
|
269
|
+
),
|
|
270
|
+
),
|
|
271
|
+
placeholder: (
|
|
272
|
+
m: (
|
|
273
|
+
size: m,
|
|
274
|
+
line-height: m,
|
|
275
|
+
),
|
|
276
|
+
s: (
|
|
277
|
+
size: s,
|
|
278
|
+
line-height: s,
|
|
279
|
+
),
|
|
280
|
+
),
|
|
281
|
+
supportive: (
|
|
282
|
+
m: (
|
|
283
|
+
size: 2xs,
|
|
284
|
+
line-height: 2xs,
|
|
285
|
+
),
|
|
286
|
+
),
|
|
287
|
+
),
|
|
288
|
+
);
|
|
@@ -1,87 +1,45 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../01-base' as base;
|
|
3
|
-
@use './
|
|
3
|
+
@use './ecl/primitives/breakpoint' as ecl-breakpoint;
|
|
4
|
+
@use './ecl/semantic/border' as ecl-border;
|
|
5
|
+
@use './ecl/semantic/opacity' as ecl-opacity;
|
|
6
|
+
@use './ecl/semantic/shadow' as ecl-shadow;
|
|
4
7
|
|
|
5
|
-
// BORDER RADIUS
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
l: 12px,
|
|
13
|
-
full: 999px
|
|
14
|
-
);
|
|
8
|
+
// BORDER RADIUS / BORDER WIDTH
|
|
9
|
+
//
|
|
10
|
+
// Sourced from the ecl-eds foundations semantic layer (single source of truth).
|
|
11
|
+
// The `$border-radius-map` / `$border-width-map` names are retained as the
|
|
12
|
+
// consumer-facing aliases; their values come verbatim from
|
|
13
|
+
// `ecl/semantic/_border.scss` ($border-radius / $border-width).
|
|
14
|
+
// To change a value, edit the upstream source and re-run tools/ecl-import.mjs.
|
|
15
15
|
|
|
16
|
+
$border-radius-map: ecl-border.$border-radius;
|
|
16
17
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
$border-width-map: (
|
|
20
|
-
none: 0,
|
|
21
|
-
xs: 1px,
|
|
22
|
-
s: 2px,
|
|
23
|
-
m: 4px
|
|
24
|
-
);
|
|
18
|
+
$border-width-map: ecl-border.$border-width;
|
|
25
19
|
|
|
26
20
|
// OPACITY
|
|
27
21
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
40: 0.4,
|
|
34
|
-
50: 0.5,
|
|
35
|
-
60: 0.6,
|
|
36
|
-
70: 0.7,
|
|
37
|
-
80: 0.8,
|
|
38
|
-
90: 0.9,
|
|
39
|
-
100: 1
|
|
40
|
-
);
|
|
22
|
+
// Sourced from the ecl-eds foundations semantic layer (single source of truth).
|
|
23
|
+
// The `$opacity-map` name is retained as the consumer-facing alias; its values
|
|
24
|
+
// come verbatim from `ecl/semantic/_opacity.scss` ($opacity).
|
|
25
|
+
// To change a value, edit the upstream source and re-run tools/ecl-import.mjs.
|
|
26
|
+
$opacity-map: ecl-opacity.$opacity;
|
|
41
27
|
|
|
42
28
|
// SHADOWS
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
spread: 0px,
|
|
50
|
-
color: map.get(colors-primitive.$color-map, 'alpha-silver-fog-950-8'),
|
|
51
|
-
),
|
|
52
|
-
2: (
|
|
53
|
-
offset-x: 0px,
|
|
54
|
-
offset-y: 10px,
|
|
55
|
-
blur: 22px,
|
|
56
|
-
spread: 0px,
|
|
57
|
-
color: map.get(colors-primitive.$color-map, 'alpha-silver-fog-950-10'),
|
|
58
|
-
),
|
|
59
|
-
3: (
|
|
60
|
-
offset-x: 0px,
|
|
61
|
-
offset-y: 12px,
|
|
62
|
-
blur: 32px,
|
|
63
|
-
spread: 0px,
|
|
64
|
-
color: map.get(colors-primitive.$color-map, 'alpha-silver-fog-950-12'),
|
|
65
|
-
),
|
|
66
|
-
4: (
|
|
67
|
-
offset-x: 0px,
|
|
68
|
-
offset-y: 14px,
|
|
69
|
-
blur: 42px,
|
|
70
|
-
spread: 0px,
|
|
71
|
-
color: map.get(colors-primitive.$color-map, 'alpha-silver-fog-950-14'),
|
|
72
|
-
)
|
|
73
|
-
);
|
|
29
|
+
//
|
|
30
|
+
// Sourced from the ecl-eds foundations semantic layer (single source of truth).
|
|
31
|
+
// The `$shadow-map` name is retained as the consumer-facing alias; its values
|
|
32
|
+
// (offset/blur/spread + alpha color) come verbatim from `ecl/semantic/_shadow.scss`
|
|
33
|
+
// ($shadow). To change a value, edit the upstream source and re-run tools/ecl-import.mjs.
|
|
34
|
+
$shadow-map: ecl-shadow.$shadow;
|
|
74
35
|
|
|
75
36
|
// BREAKPOINTS
|
|
76
37
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
xl: 1440px,
|
|
83
|
-
2xl: 1600px,
|
|
84
|
-
);
|
|
38
|
+
// Sourced from the ecl-eds foundations primitives (single source of truth).
|
|
39
|
+
// The `$breakpoint-size-map` name is retained as the consumer-facing alias; its
|
|
40
|
+
// values come verbatim from `ecl/primitives/_breakpoint.scss` ($breakpoint).
|
|
41
|
+
// To change a value, edit the upstream primitive and re-run tools/ecl-import.mjs.
|
|
42
|
+
$breakpoint-size-map: ecl-breakpoint.$breakpoint;
|
|
85
43
|
|
|
86
44
|
$breakpoint-map: (
|
|
87
45
|
mobile-s: base.new-breakpoint(max-width map.get($breakpoint-size-map, 'xs') - 1),
|
|
@@ -1,52 +1,21 @@
|
|
|
1
|
-
@use '
|
|
2
|
-
@use '../02-tokens/dimensions-primitive' as dimensions-primitive;
|
|
1
|
+
@use './ecl/primitives/typography' as ecl-typography;
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
|
3
|
+
// PRIMITIVE TYPOGRAPHY MAPS
|
|
4
|
+
//
|
|
5
|
+
// Sourced from the ecl-eds foundations primitives (single source of truth):
|
|
6
|
+
// ecl/primitives/_typography.scss ($font-size, $font-line-height, $font-weight).
|
|
7
|
+
// Consumer-facing names are retained as aliases. To change a value, edit the
|
|
8
|
+
// upstream primitive and re-run tools/ecl-import.mjs.
|
|
24
9
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
'regular': 400,
|
|
28
|
-
'medium': 500,
|
|
29
|
-
'semi-bold': 600,
|
|
30
|
-
'bold': 700
|
|
31
|
-
);
|
|
10
|
+
// Not present upstream — kept local (used by the showcase typography exports).
|
|
11
|
+
$font-size-list: ('2xs', 'xs', 's', 'm', 'l', 'xl', '2xl', '3xl', '4xl', '5xl', '6xl', '7xl', '8xl', '9xl');
|
|
32
12
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
);
|
|
13
|
+
// Direct aliases — values and keys are identical to the upstream maps.
|
|
14
|
+
// EDS uses the CSS-spec weight keyword `semibold` (matching the upstream), so the
|
|
15
|
+
// weight map passes through with no re-keying.
|
|
16
|
+
$font-size-map: ecl-typography.$font-size;
|
|
17
|
+
$font-line-height-map: ecl-typography.$font-line-height;
|
|
18
|
+
$font-weight-map: ecl-typography.$font-weight;
|
|
50
19
|
|
|
51
20
|
// semantic font-size link to letter-spacing map
|
|
52
21
|
$font-size-letter-spacing-map: (
|
|
@@ -2,36 +2,36 @@ $typography-semantic-map: (
|
|
|
2
2
|
desktop: (
|
|
3
3
|
display: (
|
|
4
4
|
xl: ( size: 9xl, line-height: 10xl, weight: regular ),
|
|
5
|
-
l: ( size: 8xl, line-height: 9xl, weight:
|
|
5
|
+
l: ( size: 8xl, line-height: 9xl, weight: semibold ),
|
|
6
6
|
),
|
|
7
7
|
heading: (
|
|
8
|
-
2xl: ( size: 6xl, line-height: 6xl, weight:
|
|
9
|
-
xl: ( size: 5xl, line-height: 4xl, weight:
|
|
10
|
-
l: ( size: 4xl, line-height: 2xl, weight:
|
|
11
|
-
m: ( size: 3xl, line-height: xl, weight:
|
|
12
|
-
s: ( size: xl, line-height: l, weight:
|
|
8
|
+
2xl: ( size: 6xl, line-height: 6xl, weight: semibold ),
|
|
9
|
+
xl: ( size: 5xl, line-height: 4xl, weight: semibold ),
|
|
10
|
+
l: ( size: 4xl, line-height: 2xl, weight: semibold ),
|
|
11
|
+
m: ( size: 3xl, line-height: xl, weight: semibold ),
|
|
12
|
+
s: ( size: xl, line-height: l, weight: semibold ),
|
|
13
13
|
s-medium: ( size: xl, line-height: l, weight: medium ),
|
|
14
14
|
xs: ( size: l, line-height: l, weight: bold ),
|
|
15
15
|
),
|
|
16
16
|
paragraph: (
|
|
17
17
|
xl: ( size: 3xl, line-height: 2xl, weight: regular ),
|
|
18
18
|
l: ( size: l, line-height: l, weight: regular ),
|
|
19
|
-
l-
|
|
19
|
+
l-semibold: ( size: l, line-height: l, weight: semibold ),
|
|
20
20
|
l-bold: ( size: l, line-height: l, weight: bold ),
|
|
21
21
|
m: ( size: m, line-height: m, weight: regular ),
|
|
22
|
-
m-
|
|
22
|
+
m-semibold: ( size: m, line-height: m, weight: semibold ),
|
|
23
23
|
m-bold: ( size: m, line-height: m, weight: bold ),
|
|
24
24
|
s: ( size: s, line-height: s, weight: regular ),
|
|
25
|
-
s-
|
|
25
|
+
s-semibold: ( size: s, line-height: s, weight: semibold ),
|
|
26
26
|
s-bold: ( size: s, line-height: s, weight: bold ),
|
|
27
27
|
),
|
|
28
28
|
label: (
|
|
29
29
|
l: ( size: l, line-height: l, weight: regular ),
|
|
30
30
|
l-medium: ( size: l, line-height: l, weight: medium ),
|
|
31
|
-
l-
|
|
31
|
+
l-semibold: ( size: l, line-height: l, weight: semibold ),
|
|
32
32
|
m: ( size: m, line-height: m, weight: regular ),
|
|
33
33
|
m-medium: ( size: m, line-height: m, weight: medium ),
|
|
34
|
-
m-
|
|
34
|
+
m-semibold: ( size: m, line-height: m, weight: semibold ),
|
|
35
35
|
s: ( size: s, line-height: s, weight: regular ),
|
|
36
36
|
),
|
|
37
37
|
microcopy: (
|
|
@@ -42,36 +42,36 @@ $typography-semantic-map: (
|
|
|
42
42
|
tablet: (
|
|
43
43
|
display: (
|
|
44
44
|
xl: ( size: 8xl, line-height: 9xl, weight: regular ),
|
|
45
|
-
l: ( size: 7xl, line-height: 6xl, weight:
|
|
45
|
+
l: ( size: 7xl, line-height: 6xl, weight: semibold ),
|
|
46
46
|
),
|
|
47
47
|
heading: (
|
|
48
|
-
2xl: ( size: 5xl, line-height: 4xl, weight:
|
|
49
|
-
xl: ( size: 4xl, line-height: 2xl, weight:
|
|
50
|
-
l: ( size: 2xl, line-height: l, weight:
|
|
51
|
-
m: ( size: xl, line-height: l, weight:
|
|
52
|
-
s: ( size: l, line-height: m, weight:
|
|
48
|
+
2xl: ( size: 5xl, line-height: 4xl, weight: semibold ),
|
|
49
|
+
xl: ( size: 4xl, line-height: 2xl, weight: semibold ),
|
|
50
|
+
l: ( size: 2xl, line-height: l, weight: semibold ),
|
|
51
|
+
m: ( size: xl, line-height: l, weight: semibold ),
|
|
52
|
+
s: ( size: l, line-height: m, weight: semibold ),
|
|
53
53
|
s-medium: ( size: l, line-height: m, weight: medium ),
|
|
54
54
|
xs: ( size: m, line-height: m, weight: bold ),
|
|
55
55
|
),
|
|
56
56
|
paragraph: (
|
|
57
57
|
xl: ( size: 2xl, line-height: xl, weight: regular ),
|
|
58
58
|
l: ( size: l, line-height: l, weight: regular ),
|
|
59
|
-
l-
|
|
59
|
+
l-semibold: ( size: l, line-height: l, weight: semibold ),
|
|
60
60
|
l-bold: ( size: l, line-height: l, weight: bold ),
|
|
61
61
|
m: ( size: m, line-height: m, weight: regular ),
|
|
62
|
-
m-
|
|
62
|
+
m-semibold: ( size: m, line-height: m, weight: semibold ),
|
|
63
63
|
m-bold: ( size: m, line-height: m, weight: bold ),
|
|
64
64
|
s: ( size: s, line-height: s, weight: regular ),
|
|
65
|
-
s-
|
|
65
|
+
s-semibold: ( size: s, line-height: s, weight: semibold ),
|
|
66
66
|
s-bold: ( size: s, line-height: s, weight: bold ),
|
|
67
67
|
),
|
|
68
68
|
label: (
|
|
69
69
|
l: ( size: l, line-height: l, weight: regular ),
|
|
70
70
|
l-medium: ( size: l, line-height: l, weight: medium ),
|
|
71
|
-
l-
|
|
71
|
+
l-semibold: ( size: l, line-height: l, weight: semibold ),
|
|
72
72
|
m: ( size: m, line-height: m, weight: regular ),
|
|
73
73
|
m-medium: ( size: m, line-height: m, weight: medium ),
|
|
74
|
-
m-
|
|
74
|
+
m-semibold: ( size: m, line-height: m, weight: semibold ),
|
|
75
75
|
s: ( size: s, line-height: s, weight: regular ),
|
|
76
76
|
),
|
|
77
77
|
microcopy: (
|
|
@@ -82,36 +82,36 @@ $typography-semantic-map: (
|
|
|
82
82
|
mobile: (
|
|
83
83
|
display: (
|
|
84
84
|
xl: ( size: 6xl, line-height: 4xl, weight: regular ),
|
|
85
|
-
l: ( size: 5xl, line-height: 2xl, weight:
|
|
85
|
+
l: ( size: 5xl, line-height: 2xl, weight: semibold ),
|
|
86
86
|
),
|
|
87
87
|
heading: (
|
|
88
|
-
2xl: ( size: 4xl, line-height: 2xl, weight:
|
|
89
|
-
xl: ( size: 2xl, line-height: l, weight:
|
|
90
|
-
l: ( size: xl, line-height: m, weight:
|
|
91
|
-
m: ( size: l, line-height: m, weight:
|
|
92
|
-
s: ( size: m, line-height: m, weight:
|
|
88
|
+
2xl: ( size: 4xl, line-height: 2xl, weight: semibold ),
|
|
89
|
+
xl: ( size: 2xl, line-height: l, weight: semibold ),
|
|
90
|
+
l: ( size: xl, line-height: m, weight: semibold ),
|
|
91
|
+
m: ( size: l, line-height: m, weight: semibold ),
|
|
92
|
+
s: ( size: m, line-height: m, weight: semibold ),
|
|
93
93
|
s-medium: ( size: m, line-height: m, weight: medium ),
|
|
94
94
|
xs: ( size: m, line-height: m, weight: bold ),
|
|
95
95
|
),
|
|
96
96
|
paragraph: (
|
|
97
97
|
xl: ( size: xl, line-height: l, weight: regular ),
|
|
98
98
|
l: ( size: l, line-height: l, weight: regular ),
|
|
99
|
-
l-
|
|
99
|
+
l-semibold: ( size: l, line-height: l, weight: semibold ),
|
|
100
100
|
l-bold: ( size: l, line-height: l, weight: bold ),
|
|
101
101
|
m: ( size: m, line-height: m, weight: regular ),
|
|
102
|
-
m-
|
|
102
|
+
m-semibold: ( size: m, line-height: m, weight: semibold ),
|
|
103
103
|
m-bold: ( size: m, line-height: m, weight: bold ),
|
|
104
104
|
s: ( size: s, line-height: s, weight: regular ),
|
|
105
|
-
s-
|
|
105
|
+
s-semibold: ( size: s, line-height: s, weight: semibold ),
|
|
106
106
|
s-bold: ( size: s, line-height: s, weight: bold ),
|
|
107
107
|
),
|
|
108
108
|
label: (
|
|
109
109
|
l: ( size: l, line-height: l, weight: regular ),
|
|
110
110
|
l-medium: ( size: l, line-height: l, weight: medium ),
|
|
111
|
-
l-
|
|
111
|
+
l-semibold: ( size: l, line-height: l, weight: semibold ),
|
|
112
112
|
m: ( size: m, line-height: m, weight: regular ),
|
|
113
113
|
m-medium: ( size: m, line-height: m, weight: medium ),
|
|
114
|
-
m-
|
|
114
|
+
m-semibold: ( size: m, line-height: m, weight: semibold ),
|
|
115
115
|
s: ( size: s, line-height: s, weight: regular ),
|
|
116
116
|
),
|
|
117
117
|
microcopy: (
|