@eui/eds-styles 22.0.0-alpha.5 → 22.0.0-alpha.50

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 (39) hide show
  1. package/dist/base/01-base/mixins.scss +93 -20
  2. package/dist/base/02-tokens/colors-primitive.scss +72 -767
  3. package/dist/base/02-tokens/colors-semantic-dark-theme.scss +101 -322
  4. package/dist/base/02-tokens/colors-semantic.scss +107 -322
  5. package/dist/base/02-tokens/dimensions-primitive.scss +10 -23
  6. package/dist/base/02-tokens/dimensions-semantic.scss +1 -0
  7. package/dist/base/02-tokens/ecl/primitives/_breakpoint.scss +16 -0
  8. package/dist/base/02-tokens/ecl/primitives/_color-domain.scss +189 -0
  9. package/dist/base/02-tokens/ecl/primitives/_color.scss +190 -0
  10. package/dist/base/02-tokens/ecl/primitives/_dimension.scss +31 -0
  11. package/dist/base/02-tokens/ecl/primitives/_grid.scss +25 -0
  12. package/dist/base/02-tokens/ecl/primitives/_index.scss +14 -0
  13. package/dist/base/02-tokens/ecl/primitives/_typography.scss +58 -0
  14. package/dist/base/02-tokens/ecl/semantic/_border.scss +22 -0
  15. package/dist/base/02-tokens/ecl/semantic/_color-dark.scss +187 -0
  16. package/dist/base/02-tokens/ecl/semantic/_color-domain-dark.scss +172 -0
  17. package/dist/base/02-tokens/ecl/semantic/_color-domain.scss +172 -0
  18. package/dist/base/02-tokens/ecl/semantic/_color.scss +187 -0
  19. package/dist/base/02-tokens/ecl/semantic/_index.scss +17 -0
  20. package/dist/base/02-tokens/ecl/semantic/_opacity.scss +21 -0
  21. package/dist/base/02-tokens/ecl/semantic/_shadow-dark.scss +43 -0
  22. package/dist/base/02-tokens/ecl/semantic/_shadow.scss +41 -0
  23. package/dist/base/02-tokens/ecl/semantic/_spacing.scss +60 -0
  24. package/dist/base/02-tokens/ecl/semantic/_typography.scss +288 -0
  25. package/dist/base/02-tokens/maps.scss +29 -71
  26. package/dist/base/02-tokens/typography-primitive.scss +29 -59
  27. package/dist/base/02-tokens/typography-semantic.scss +3 -122
  28. package/dist/base/03-vars/typography.scss +5 -3
  29. package/dist/base/04-elements/table.scss +2 -1
  30. package/dist/base/99-utilities/typography.scss +3 -0
  31. package/dist/eds-showcase-exports.css +1 -1
  32. package/dist/eds-showcase-exports.css.map +1 -1
  33. package/dist/eds-utilities.css +1 -1
  34. package/dist/eds-utilities.css.map +1 -1
  35. package/dist/eds-vars.css +1 -1
  36. package/dist/eds-vars.css.map +1 -1
  37. package/dist/eds.css +1 -1
  38. package/dist/eds.css.map +1 -1
  39. package/package.json +1 -1
@@ -1,326 +1,111 @@
1
1
  @use 'sass:map';
2
- @use 'sass:color';
3
- @use '../01-base/' as base;
2
+ @use 'sass:string';
3
+ @use './ecl/semantic/color' as ecl;
4
+ @use './ecl/semantic/color-domain' as ecl-domain;
4
5
  @use './colors-primitive' as primitive;
5
6
 
6
- $color-semantic-map: (
7
-
8
- // =============================================
9
- // SURFACES — Elevation
10
- // =============================================
11
-
12
- surface-accent: map.get(primitive.$color-map, 'european-blue-50'),
13
- surface-selected: map.get(primitive.$color-map, 'european-blue-100'),
14
- surface-skeleton: map.get(primitive.$color-map, 'silver-fog-100'),
15
- surface-invisible: map.get(primitive.$color-map, 'alpha-silver-fog-0-0'),
16
-
17
- surface-elevation-sunken: map.get(primitive.$color-map, 'silver-fog-75'),
18
- surface-elevation-inset: map.get(primitive.$color-map, 'silver-fog-25'),
19
- surface-elevation: map.get(primitive.$color-map, 'silver-fog-0'),
20
- surface-elevation-raised: map.get(primitive.$color-map, 'silver-fog-0'),
21
- surface-elevation-elevated: map.get(primitive.$color-map, 'silver-fog-0'),
22
- surface-elevation-overlay: map.get(primitive.$color-map, 'silver-fog-0'),
23
-
24
- // =============================================
25
- // SURFACES — Brand
26
- // =============================================
27
-
28
- surface-brand: map.get(primitive.$color-map, 'silver-fog-950'),
29
- on-surface-brand: map.get(primitive.$color-map, 'silver-fog-0'),
30
- surface-brand--hover: map.get(primitive.$color-map, 'silver-fog-800'),
31
- on-surface-brand--hover: map.get(primitive.$color-map, 'silver-fog-0'),
32
-
33
- // =============================================
34
- // SURFACES — Disabled
35
- // =============================================
36
-
37
- surface-disabled: map.get(primitive.$color-map, 'silver-fog-100'),
38
- on-surface-disabled: map.get(primitive.$color-map, 'silver-fog-400'),
39
- surface-disabled-subtle: map.get(primitive.$color-map, 'silver-fog-50'),
40
- on-surface-disabled-subtle: map.get(primitive.$color-map, 'silver-fog-400'),
41
-
42
- // =============================================
43
- // SURFACES — Primary
44
- // =============================================
45
-
46
- surface-primary: map.get(primitive.$color-map, 'european-blue-600'),
47
- on-surface-primary: map.get(primitive.$color-map, 'silver-fog-0'),
48
- surface-primary--hover: map.get(primitive.$color-map, 'european-blue-700'),
49
- on-surface-primary--hover: map.get(primitive.$color-map, 'silver-fog-0'),
50
- surface-primary--pressed: map.get(primitive.$color-map, 'european-blue-800'),
51
- on-surface-primary--pressed: map.get(primitive.$color-map, 'silver-fog-0'),
52
- surface-primary-subtle: map.get(primitive.$color-map, 'european-blue-200'),
53
- on-surface-primary-subtle: map.get(primitive.$color-map, 'european-blue-800'),
54
- surface-primary-subtler: map.get(primitive.$color-map, 'european-blue-50'),
55
- on-surface-primary-subtler: map.get(primitive.$color-map, 'european-blue-800'),
56
-
57
- // =============================================
58
- // SURFACES — Highlight
59
- // =============================================
60
-
61
- surface-highlight: map.get(primitive.$color-map, 'sunrise-orange-300'),
62
- on-surface-highlight: map.get(primitive.$color-map, 'sunrise-orange-950'),
63
- surface-highlight--hover: map.get(primitive.$color-map, 'sunrise-orange-400'),
64
- on-surface-highlight--hover: map.get(primitive.$color-map, 'sunrise-orange-950'),
65
- surface-highlight--pressed: map.get(primitive.$color-map, 'sunrise-orange-500'),
66
- on-surface-highlight--pressed: map.get(primitive.$color-map, 'sunrise-orange-950'),
67
- surface-highlight-subtler: map.get(primitive.$color-map, 'sunrise-orange-50'),
68
- on-surface-highlight-subtler: map.get(primitive.$color-map, 'sunrise-orange-900'),
69
-
70
- // =============================================
71
- // SURFACES — Inverted
72
- // =============================================
73
-
74
- surface-inverted: map.get(primitive.$color-map, 'silver-fog-950'),
75
- on-surface-inverted: map.get(primitive.$color-map, 'silver-fog-0'),
76
- surface-inverted-subtle: map.get(primitive.$color-map, 'silver-fog-950'),
77
- on-surface-inverted-subtle: map.get(primitive.$color-map, 'silver-fog-300'),
78
- surface-inverted-disabled: map.get(primitive.$color-map, 'silver-fog-950'),
79
- on-surface-inverted-disabled: map.get(primitive.$color-map, 'silver-fog-600'),
80
-
81
- // =============================================
82
- // SURFACES — Neutral
83
- // =============================================
84
-
85
- surface-neutral: map.get(primitive.$color-map, 'silver-fog-600'),
86
- on-surface-neutral: map.get(primitive.$color-map, 'silver-fog-0'),
87
- surface-neutral--hover: map.get(primitive.$color-map, 'silver-fog-700'),
88
- on-surface-neutral--hover: map.get(primitive.$color-map, 'silver-fog-0'),
89
- surface-neutral--pressed: map.get(primitive.$color-map, 'silver-fog-800'),
90
- on-surface-neutral--pressed: map.get(primitive.$color-map, 'silver-fog-0'),
91
- surface-neutral-subtle: map.get(primitive.$color-map, 'silver-fog-100'),
92
- on-surface-neutral-subtle: map.get(primitive.$color-map, 'silver-fog-900'),
93
- surface-neutral-subtle--hover: map.get(primitive.$color-map, 'silver-fog-200'),
94
- on-surface-neutral-subtle--hover: map.get(primitive.$color-map, 'silver-fog-900'),
95
- surface-neutral-subtler: map.get(primitive.$color-map, 'silver-fog-50'),
96
- on-surface-neutral-subtler: map.get(primitive.$color-map, 'silver-fog-900'),
97
- surface-neutral-subtler--hover: map.get(primitive.$color-map, 'silver-fog-75'),
98
- on-surface-neutral-subtler--hover: map.get(primitive.$color-map, 'silver-fog-900'),
99
-
100
- // =============================================
101
- // SURFACES — Critical
102
- // =============================================
103
-
104
- surface-critical: map.get(primitive.$color-map, 'red-600'),
105
- on-surface-critical: map.get(primitive.$color-map, 'silver-fog-0'),
106
- surface-critical--hover: map.get(primitive.$color-map, 'red-700'),
107
- on-surface-critical--hover: map.get(primitive.$color-map, 'silver-fog-0'),
108
- surface-critical--pressed: map.get(primitive.$color-map, 'red-800'),
109
- on-surface-critical--pressed: map.get(primitive.$color-map, 'silver-fog-0'),
110
- surface-critical-subtle: map.get(primitive.$color-map, 'red-200'),
111
- on-surface-critical-subtle: map.get(primitive.$color-map, 'red-900'),
112
- surface-critical-subtler: map.get(primitive.$color-map, 'red-50'),
113
- on-surface-critical-subtler: map.get(primitive.$color-map, 'red-700'),
114
- surface-critical-subtler--hover: map.get(primitive.$color-map, 'red-100'),
115
- on-surface-critical-subtler--hover: map.get(primitive.$color-map, 'red-900'),
116
-
117
- // =============================================
118
- // SURFACES — Info
119
- // =============================================
120
-
121
- surface-info: map.get(primitive.$color-map, 'blue-600'),
122
- on-surface-info: map.get(primitive.$color-map, 'silver-fog-0'),
123
- surface-info--hover: map.get(primitive.$color-map, 'blue-700'),
124
- on-surface-info--hover: map.get(primitive.$color-map, 'silver-fog-0'),
125
- surface-info--pressed: map.get(primitive.$color-map, 'blue-800'),
126
- on-surface-info--pressed: map.get(primitive.$color-map, 'silver-fog-0'),
127
- surface-info-subtle: map.get(primitive.$color-map, 'blue-200'),
128
- on-surface-info-subtle: map.get(primitive.$color-map, 'blue-900'),
129
- surface-info-subtler: map.get(primitive.$color-map, 'blue-75'),
130
- on-surface-info-subtler: map.get(primitive.$color-map, 'blue-800'),
131
- surface-info-subtler--hover: map.get(primitive.$color-map, 'blue-100'),
132
- on-surface-info-subtler--hover: map.get(primitive.$color-map, 'blue-900'),
133
-
134
- // =============================================
135
- // SURFACES — Success
136
- // =============================================
137
-
138
- surface-success: map.get(primitive.$color-map, 'green-800'),
139
- on-surface-success: map.get(primitive.$color-map, 'silver-fog-0'),
140
- surface-success--hover: map.get(primitive.$color-map, 'green-900'),
141
- on-surface-success--hover: map.get(primitive.$color-map, 'silver-fog-0'),
142
- surface-success--pressed: map.get(primitive.$color-map, 'green-950'),
143
- on-surface-success--pressed: map.get(primitive.$color-map, 'silver-fog-0'),
144
- surface-success-subtle: map.get(primitive.$color-map, 'green-200'),
145
- on-surface-success-subtle: map.get(primitive.$color-map, 'green-900'),
146
- surface-success-subtler: map.get(primitive.$color-map, 'green-50'),
147
- on-surface-success-subtler: map.get(primitive.$color-map, 'green-800'),
148
- surface-success-subtler--hover: map.get(primitive.$color-map, 'green-200'),
149
- on-surface-success-subtler--hover: map.get(primitive.$color-map, 'green-900'),
150
-
151
- // =============================================
152
- // SURFACES — Warning
153
- // =============================================
154
-
155
- surface-warning: map.get(primitive.$color-map, 'orange-500'),
156
- on-surface-warning: map.get(primitive.$color-map, 'orange-950'),
157
- surface-warning--hover: map.get(primitive.$color-map, 'orange-600'),
158
- on-surface-warning--hover: map.get(primitive.$color-map, 'orange-950'),
159
- surface-warning--pressed: map.get(primitive.$color-map, 'orange-700'),
160
- on-surface-warning--pressed: map.get(primitive.$color-map, 'orange-950'),
161
- surface-warning-subtle: map.get(primitive.$color-map, 'orange-200'),
162
- on-surface-warning-subtle: map.get(primitive.$color-map, 'orange-900'),
163
- surface-warning-subtler: map.get(primitive.$color-map, 'orange-50'),
164
- on-surface-warning-subtler: map.get(primitive.$color-map, 'orange-800'),
165
- surface-warning-subtler--hover: map.get(primitive.$color-map, 'orange-100'),
166
- on-surface-warning-subtler--hover: map.get(primitive.$color-map, 'orange-900'),
167
-
168
- // =============================================
169
- // SURFACES — Color Modes (cm-*)
170
- // =============================================
171
-
172
- surface-cm-purple-violet-subtler: map.get(primitive.$color-map, 'cm-purple-violet-50'),
173
- on-surface-cm-purple-violet-subtler: map.get(primitive.$color-map, 'cm-purple-violet-800'),
174
- border-cm-purple-violet-subtle: map.get(primitive.$color-map, 'cm-purple-violet-300'),
175
-
176
- surface-cm-purple-subtler: map.get(primitive.$color-map, 'cm-purple-50'),
177
- on-surface-cm-purple-subtler: map.get(primitive.$color-map, 'cm-purple-800'),
178
- border-cm-purple-subtle: map.get(primitive.$color-map, 'cm-purple-300'),
179
-
180
- surface-cm-blue-navy-subtler: map.get(primitive.$color-map, 'cm-blue-navy-100'),
181
- on-surface-cm-blue-navy-subtler: map.get(primitive.$color-map, 'cm-blue-navy-800'),
182
- border-cm-blue-navy-subtle: map.get(primitive.$color-map, 'cm-blue-navy-300'),
183
-
184
- surface-cm-blue-electric-subtler: map.get(primitive.$color-map, 'cm-blue-electric-100'),
185
- on-surface-cm-blue-electric-subtler: map.get(primitive.$color-map, 'cm-blue-electric-800'),
186
- border-cm-blue-electric-subtle: map.get(primitive.$color-map, 'cm-blue-electric-300'),
187
-
188
- surface-cm-green-dark-subtler: map.get(primitive.$color-map, 'cm-green-dark-50'),
189
- on-surface-cm-green-dark-subtler: map.get(primitive.$color-map, 'cm-green-dark-800'),
190
- border-cm-green-dark-subtle: map.get(primitive.$color-map, 'cm-green-dark-300'),
191
-
192
- surface-cm-green-pine-subtler: map.get(primitive.$color-map, 'cm-green-pine-50'),
193
- on-surface-cm-green-pine-subtler: map.get(primitive.$color-map, 'cm-green-pine-800'),
194
- border-cm-green-pine-subtle: map.get(primitive.$color-map, 'cm-green-pine-300'),
195
-
196
- surface-cm-green-subtler: map.get(primitive.$color-map, 'cm-green-50'),
197
- on-surface-cm-green-subtler: map.get(primitive.$color-map, 'cm-green-950'),
198
- border-cm-green-subtle: map.get(primitive.$color-map, 'cm-green-300'),
199
-
200
- surface-cm-blue-ocean-subtler: map.get(primitive.$color-map, 'cm-blue-ocean-50'),
201
- on-surface-cm-blue-ocean-subtler: map.get(primitive.$color-map, 'cm-blue-ocean-950'),
202
- border-cm-blue-ocean-subtle: map.get(primitive.$color-map, 'cm-blue-ocean-300'),
203
-
204
- surface-cm-green-lemon-subtler: map.get(primitive.$color-map, 'cm-green-lemon-50'),
205
- on-surface-cm-green-lemon-subtler: map.get(primitive.$color-map, 'cm-green-lemon-950'),
206
- border-cm-green-lemon-subtle: map.get(primitive.$color-map, 'cm-green-lemon-500'),
207
-
208
- surface-cm-yellow-gold-subtler: map.get(primitive.$color-map, 'cm-yellow-gold-50'),
209
- on-surface-cm-yellow-gold-subtler: map.get(primitive.$color-map, 'cm-yellow-gold-950'),
210
- border-cm-yellow-gold-subtle: map.get(primitive.$color-map, 'cm-yellow-gold-300'),
211
-
212
- surface-cm-orange-abricot-subtler: map.get(primitive.$color-map, 'cm-orange-abricot-50'),
213
- on-surface-cm-orange-abricot-subtler: map.get(primitive.$color-map, 'cm-orange-abricot-950'),
214
- border-cm-orange-abricot-subtle: map.get(primitive.$color-map, 'cm-orange-abricot-300'),
215
-
216
- surface-cm-orange-subtler: map.get(primitive.$color-map, 'cm-orange-50'),
217
- on-surface-cm-orange-subtler: map.get(primitive.$color-map, 'cm-orange-900'),
218
- border-cm-orange-subtle: map.get(primitive.$color-map, 'cm-orange-300'),
219
-
220
- surface-cm-red-tomato-subtler: map.get(primitive.$color-map, 'cm-red-tomato-50'),
221
- on-surface-cm-red-tomato-subtler: map.get(primitive.$color-map, 'cm-red-tomato-950'),
222
- border-cm-red-tomato-subtle: map.get(primitive.$color-map, 'cm-red-tomato-300'),
223
-
224
- surface-cm-red-crayola-subtler: map.get(primitive.$color-map, 'cm-red-crayola-50'),
225
- on-surface-cm-red-crayola-subtler: map.get(primitive.$color-map, 'cm-red-crayola-950'),
226
- border-cm-red-crayola-subtle: map.get(primitive.$color-map, 'cm-red-crayola-300'),
227
-
228
- surface-cm-warm-grey-subtler: map.get(primitive.$color-map, 'cm-warm-grey-50'),
229
- on-surface-cm-warm-grey-subtler: map.get(primitive.$color-map, 'cm-warm-grey-950'),
230
- border-cm-warm-grey-subtle: map.get(primitive.$color-map, 'cm-warm-grey-300'),
231
-
232
- // =============================================
233
- // FOREGROUND / Text
234
- // =============================================
235
-
236
- foreground: map.get(primitive.$color-map, 'silver-fog-950'),
237
- foreground-subtle: map.get(primitive.$color-map, 'silver-fog-800'),
238
- foreground-subtler: map.get(primitive.$color-map, 'silver-fog-700'),
239
- foreground-placeholder: map.get(primitive.$color-map, 'silver-fog-500'),
240
- foreground-disabled: map.get(primitive.$color-map, 'silver-fog-400'),
241
- foreground-primary: map.get(primitive.$color-map, 'european-blue-600'),
242
- foreground-success: map.get(primitive.$color-map, 'green-800'),
243
- foreground-info: map.get(primitive.$color-map, 'blue-900'),
244
- foreground-warning: map.get(primitive.$color-map, 'orange-800'),
245
- foreground-critical: map.get(primitive.$color-map, 'red-600'),
246
- foreground-highlight: map.get(primitive.$color-map, 'sunrise-orange-900'),
247
- foreground-inverted: map.get(primitive.$color-map, 'silver-fog-25'),
248
-
249
- // =============================================
250
- // BORDERS
251
- // =============================================
252
-
253
- border-brand: map.get(primitive.$color-map, 'silver-fog-950'),
254
- border-divider: map.get(primitive.$color-map, 'silver-fog-200'),
255
- border-disabled: map.get(primitive.$color-map, 'silver-fog-100'),
256
-
257
- border-primary: map.get(primitive.$color-map, 'european-blue-600'),
258
- border-primary--hover: map.get(primitive.$color-map, 'european-blue-500'),
259
- border-primary--pressed: map.get(primitive.$color-map, 'european-blue-400'),
260
- border-primary-subtle: map.get(primitive.$color-map, 'european-blue-400'),
261
- border-primary-subtler: map.get(primitive.$color-map, 'european-blue-100'),
262
-
263
- border-info: map.get(primitive.$color-map, 'blue-700'),
264
- border-info-subtle: map.get(primitive.$color-map, 'blue-300'),
265
-
266
- border-success: map.get(primitive.$color-map, 'green-700'),
267
- border-success-subtle: map.get(primitive.$color-map, 'green-300'),
268
-
269
- border-warning: map.get(primitive.$color-map, 'orange-600'),
270
- border-warning-subtle: map.get(primitive.$color-map, 'orange-300'),
271
-
272
- border-critical: map.get(primitive.$color-map, 'red-600'),
273
- border-critical-subtle: map.get(primitive.$color-map, 'red-300'),
274
-
275
- border-highlight: map.get(primitive.$color-map, 'sunrise-orange-400'),
276
- border-highlight-subtle: map.get(primitive.$color-map, 'sunrise-orange-300'),
277
-
278
- border-inverted: map.get(primitive.$color-map, 'silver-fog-25'),
279
- border-inverted-disabled: map.get(primitive.$color-map, 'silver-fog-500'),
280
-
281
- border-neutral: map.get(primitive.$color-map, 'silver-fog-500'),
282
- border-neutral--hover: map.get(primitive.$color-map, 'silver-fog-600'),
283
- border-neutral-subtle: map.get(primitive.$color-map, 'silver-fog-300'),
284
- border-neutral-subtle--hover: map.get(primitive.$color-map, 'silver-fog-400'),
285
-
286
- // =============================================
287
- // LINKS
288
- // =============================================
289
-
290
- link: map.get(primitive.$color-map, 'european-blue-600'),
291
- link--focused: map.get(primitive.$color-map, 'european-blue-600'),
292
- link--hover: map.get(primitive.$color-map, 'european-blue-700'),
293
- link--pressed: map.get(primitive.$color-map, 'european-blue-800'),
294
- link--visited: map.get(primitive.$color-map, 'european-blue-700'),
295
-
296
- link-inverted: map.get(primitive.$color-map, 'silver-fog-0'),
297
- link-inverted--focused: map.get(primitive.$color-map, 'silver-fog-0'),
298
- link-inverted--hover: map.get(primitive.$color-map, 'silver-fog-50'),
299
- link-inverted--pressed: map.get(primitive.$color-map, 'silver-fog-100'),
300
- link-inverted--visited: map.get(primitive.$color-map, 'silver-fog-25'),
301
-
302
- link-contrast: map.get(primitive.$color-map, 'silver-fog-950'),
303
- link-contrast--focused: map.get(primitive.$color-map, 'silver-fog-950'),
304
- link-contrast--hover: map.get(primitive.$color-map, 'silver-fog-950'),
305
- link-contrast--pressed: map.get(primitive.$color-map, 'silver-fog-800'),
306
- link-contrast--visited: map.get(primitive.$color-map, 'silver-fog-900'),
307
-
308
- // =============================================
309
- // FOCUS
310
- // =============================================
311
-
312
- focus: map.get(primitive.$color-map, 'european-blue-600'),
313
- focus-inverted: map.get(primitive.$color-map, 'european-blue-300'),
314
- focus-critical: map.get(primitive.$color-map, 'red-400'),
315
- border-focus: map.get(primitive.$color-map, 'european-blue-600'),
316
-
317
- // =============================================
318
- // ALPHA / Backdrop
319
- // =============================================
320
-
321
- alpha-backdrop-strong: map.get(primitive.$color-map, 'alpha-silver-fog-950-60'),
322
- alpha-backdrop: map.get(primitive.$color-map, 'alpha-silver-fog-950-30'),
323
- alpha-backdrop-subtle: map.get(primitive.$color-map, 'alpha-silver-fog-950-10'),
324
- alpha-backdrop-inverted: map.get(primitive.$color-map, 'alpha-silver-fog-0-14'),
325
- alpha-backdrop-inverted-subtle: map.get(primitive.$color-map, 'alpha-silver-fog-0-10'),
7
+ // ============================================================================
8
+ // SEMANTIC COLORS (LIGHT) — ECL foundations as source of truth + local overlay.
9
+ //
10
+ // Base values come from the generated ECL semantic map `ecl.$color`
11
+ // (ecl/semantic/_color.scss, itself built from the ECL primitives + color-domain).
12
+ // To change a base value, edit the upstream ECL source and re-run
13
+ // tools/ecl-import.mjs — NOT this file.
14
+ //
15
+ // Two local adaptations are applied on top of the ECL base:
16
+ // 1. Key rename: ECL emits brand ("color mode") keys as `*-domain-*`
17
+ // (e.g. surface-domain-purple-subtler). The EDS semantic contract uses the
18
+ // legacy `*-cm-*` names, so every `-domain-` segment is renamed to `-cm-`.
19
+ // The underlying values are identical.
20
+ // 2. `$_overlay`: EDS-specific tokens that ECL does not define, plus the few
21
+ // values intentionally diverging from ECL (each annotated). Overlay wins and
22
+ // its values are pulled from `primitive.$color-map` to preserve exact EDS
23
+ // ramp references.
24
+ //
25
+ // The public contract (`$color-semantic-map` + every key below) is unchanged.
26
+ // ============================================================================
27
+
28
+ $_ecl-base: map.merge(ecl.$color, ecl-domain.$color-domain);
29
+
30
+ // Local overlay — EDS-only tokens + intentional divergences from ECL.
31
+ $_overlay: (
32
+ // --- On-surface for state surfaces that ship no `on-*--hover/--pressed` in ECL ---
33
+ // Each state surface reuses its base family's on-* text color (text color does
34
+ // not change between rest/hover/pressed), so eds-u-c-* and components resolve a
35
+ // readable foreground for every interactive state.
36
+ on-surface-primary--hover: map.get(primitive.$color-map, 'silver-fog-0'), // #fff
37
+ on-surface-primary--pressed: map.get(primitive.$color-map, 'silver-fog-0'), // #fff
38
+ on-surface-highlight--hover: map.get(primitive.$color-map, 'silver-fog-950'), // #00002e
39
+ on-surface-highlight--pressed: map.get(primitive.$color-map, 'silver-fog-950'), // #00002e
40
+ on-surface-neutral--hover: map.get(primitive.$color-map, 'silver-fog-0'), // #fff
41
+ on-surface-neutral--pressed: map.get(primitive.$color-map, 'silver-fog-0'), // #fff
42
+ on-surface-critical--hover: map.get(primitive.$color-map, 'silver-fog-0'), // #fff
43
+ on-surface-critical--pressed: map.get(primitive.$color-map, 'silver-fog-0'), // #fff
44
+ on-surface-brand--hover: map.get(primitive.$color-map, 'silver-fog-0'), // #fff
45
+
46
+ // --- Brand (EDS-only hover state) ---
47
+ // used by: fab-button, icon-button, input-chat, language-selector, user-profile
48
+ surface-brand--hover: map.get(primitive.$color-map, 'silver-fog-800'), // #353559
49
+
50
+ // --- Inverted (EDS-only states + subtle/disabled variants) ---
51
+ // used by: chip
52
+ surface-inverted--hover: map.get(primitive.$color-map, 'silver-fog-800'), // #353559
53
+ // used by: chip
54
+ on-surface-inverted--hover: map.get(primitive.$color-map, 'silver-fog-0'), // #fff
55
+
56
+ // --- Neutral subtler (EDS divergence: ECL uses silver-fog-100) ---
57
+ // used by: avatar, badge, button, data-grid, date-block, datepicker, gauge-chart, growl, progress-circle, segmented-control, skeleton, tag, timepicker
58
+ surface-neutral-subtler: map.get(primitive.$color-map, 'silver-fog-75'), // #ededf0
59
+ surface-neutral-subtle: map.get(primitive.$color-map, 'silver-fog-100'), // #ededf0
60
+ // used by: avatar, badge, button, tag
61
+ on-surface-neutral-subtler: map.get(primitive.$color-map, 'silver-fog-900'), // #171740
62
+ on-surface-neutral-subtle: map.get(primitive.$color-map, 'silver-fog-900'), // #171740
63
+
64
+ // used by tag :
65
+ surface-highlight-subtle: map.get(primitive.$color-map, 'sunrise-orange-200'),
66
+ on-surface-highlight-subtle: map.get(primitive.$color-map, 'sunrise-orange-950'),
67
+
68
+ // --- Foreground (EDS-only inverted) ---
69
+ // used by: banner, shell, tabs
70
+ foreground-inverted: map.get(primitive.$color-map, 'silver-fog-25'), // #fafafb
71
+
72
+ // wrongly named ECL side : border-brand
73
+ border: map.get(primitive.$color-map, 'silver-fog-950'),
74
+
75
+ // --- Domain (brand) `-subtle` surfaces (EDS-only) ---
76
+ // ECL ships only `surface-domain-*-subtler` (ramp -50/-100) for domain colors.
77
+ // A stronger `-subtle` fill (e.g. the tag's `filled` variant) mirrors the
78
+ // standard-color convention (surface -200 / on-surface -900) for every domain.
79
+ surface-domain-blue-navy-subtle: map.get(primitive.$color-map, 'domain-blue-navy-200'),
80
+ on-surface-domain-blue-navy-subtle: map.get(primitive.$color-map, 'domain-blue-navy-900'),
81
+ surface-domain-blue-electric-subtle: map.get(primitive.$color-map, 'domain-blue-electric-200'),
82
+ on-surface-domain-blue-electric-subtle: map.get(primitive.$color-map, 'domain-blue-electric-900'),
83
+ surface-domain-blue-ocean-subtle: map.get(primitive.$color-map, 'domain-blue-ocean-200'),
84
+ on-surface-domain-blue-ocean-subtle: map.get(primitive.$color-map, 'domain-blue-ocean-900'),
85
+ surface-domain-green-subtle: map.get(primitive.$color-map, 'domain-green-200'),
86
+ on-surface-domain-green-subtle: map.get(primitive.$color-map, 'domain-green-900'),
87
+ surface-domain-green-dark-subtle: map.get(primitive.$color-map, 'domain-green-dark-200'),
88
+ on-surface-domain-green-dark-subtle: map.get(primitive.$color-map, 'domain-green-dark-900'),
89
+ surface-domain-green-lemon-subtle: map.get(primitive.$color-map, 'domain-green-lemon-200'),
90
+ on-surface-domain-green-lemon-subtle: map.get(primitive.$color-map, 'domain-green-lemon-900'),
91
+ surface-domain-green-pine-subtle: map.get(primitive.$color-map, 'domain-green-pine-200'),
92
+ on-surface-domain-green-pine-subtle: map.get(primitive.$color-map, 'domain-green-pine-900'),
93
+ surface-domain-orange-subtle: map.get(primitive.$color-map, 'domain-orange-200'),
94
+ on-surface-domain-orange-subtle: map.get(primitive.$color-map, 'domain-orange-900'),
95
+ surface-domain-orange-abricot-subtle: map.get(primitive.$color-map, 'domain-orange-abricot-200'),
96
+ on-surface-domain-orange-abricot-subtle: map.get(primitive.$color-map, 'domain-orange-abricot-900'),
97
+ surface-domain-purple-subtle: map.get(primitive.$color-map, 'domain-purple-200'),
98
+ on-surface-domain-purple-subtle: map.get(primitive.$color-map, 'domain-purple-900'),
99
+ surface-domain-purple-violet-subtle: map.get(primitive.$color-map, 'domain-purple-violet-200'),
100
+ on-surface-domain-purple-violet-subtle: map.get(primitive.$color-map, 'domain-purple-violet-900'),
101
+ surface-domain-red-crayola-subtle: map.get(primitive.$color-map, 'domain-red-crayola-200'),
102
+ on-surface-domain-red-crayola-subtle: map.get(primitive.$color-map, 'domain-red-crayola-900'),
103
+ surface-domain-red-tomato-subtle: map.get(primitive.$color-map, 'domain-red-tomato-200'),
104
+ on-surface-domain-red-tomato-subtle: map.get(primitive.$color-map, 'domain-red-tomato-900'),
105
+ surface-domain-warm-grey-subtle: map.get(primitive.$color-map, 'domain-warm-grey-200'),
106
+ on-surface-domain-warm-grey-subtle: map.get(primitive.$color-map, 'domain-warm-grey-900'),
107
+ surface-domain-yellow-gold-subtle: map.get(primitive.$color-map, 'domain-yellow-gold-200'),
108
+ on-surface-domain-yellow-gold-subtle: map.get(primitive.$color-map, 'domain-yellow-gold-900'),
326
109
  );
110
+
111
+ $color-semantic-map: map.merge($_ecl-base, $_overlay);
@@ -1,23 +1,10 @@
1
- $dimension-map: (
2
- none: 0rem,
3
- 1: 0.0625rem,
4
- 2: 0.125rem,
5
- 4: 0.25rem,
6
- 6: 0.375rem,
7
- 8: 0.5rem,
8
- 12: 0.75rem,
9
- 16: 1rem,
10
- 20: 1.25rem,
11
- 24: 1.5rem,
12
- 28: 1.75rem,
13
- 32: 2rem,
14
- 36: 2.25rem,
15
- 40: 2.5rem,
16
- 44: 2.75rem,
17
- 48: 3rem,
18
- 52: 3.25rem,
19
- 56: 3.5rem,
20
- 60: 3.75rem,
21
- 64: 4rem,
22
- 96: 6rem,
23
- );
1
+ @use './ecl/primitives/dimension' as ecl-dimension;
2
+
3
+ // PRIMITIVE DIMENSION MAP
4
+ //
5
+ // Sourced from the ecl-eds foundations primitives (single source of truth).
6
+ // The `$dimension-map` name is retained as the consumer-facing alias; its
7
+ // values come verbatim from `ecl/primitives/_dimension.scss` ($dimension).
8
+ // To change a value, edit the upstream primitive and re-run tools/ecl-import.mjs.
9
+
10
+ $dimension-map: ecl-dimension.$dimension;
@@ -44,6 +44,7 @@ $sizing-semantic-map:(
44
44
  );
45
45
 
46
46
  $icon-sizing-semantic-map:(
47
+ 3xs: map.get(primitive.$dimension-map, 8),
47
48
  2xs: map.get(primitive.$dimension-map, 12),
48
49
  xs: map.get(primitive.$dimension-map, 16),
49
50
  s: map.get(primitive.$dimension-map, 20),
@@ -0,0 +1,16 @@
1
+ // ============================================================================
2
+ // GENERATED FILE — DO NOT EDIT.
3
+ //
4
+ // Imported verbatim from ecl-eds-foundations/primitives/_breakpoint.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
+ $breakpoint: (
10
+ xs: 480px,
11
+ s: 768px,
12
+ m: 996px,
13
+ l: 1140px,
14
+ xl: 1440px,
15
+ 2xl: 1600px,
16
+ );