@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,105 @@
1
1
  @use 'sass:map';
2
- @use 'sass:color';
3
- @use '../01-base/' as base;
2
+ @use 'sass:string';
3
+ @use './ecl/semantic/color-dark' as ecl;
4
+ @use './ecl/semantic/color-domain-dark' 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, 'graphite-900'),
13
- surface-selected: map.get(primitive.$color-map, 'graphite-800'),
14
- surface-skeleton: map.get(primitive.$color-map, 'graphite-800'),
15
- surface-invisible: map.get(primitive.$color-map, 'alpha-graphite-0-0'),
16
-
17
- surface-elevation-sunken: map.get(primitive.$color-map, 'graphite-1000'),
18
- surface-elevation-inset: map.get(primitive.$color-map, 'graphite-950'),
19
- surface-elevation: map.get(primitive.$color-map, 'graphite-900'),
20
- surface-elevation-raised: map.get(primitive.$color-map, 'graphite-800'),
21
- surface-elevation-elevated: map.get(primitive.$color-map, 'graphite-700'),
22
- surface-elevation-overlay: map.get(primitive.$color-map, 'graphite-600'),
23
-
24
- // =============================================
25
- // SURFACES — Brand
26
- // =============================================
27
-
28
- surface-brand: map.get(primitive.$color-map, 'graphite-900'),
29
- on-surface-brand: map.get(primitive.$color-map, 'graphite-0'),
30
- surface-brand--hover: map.get(primitive.$color-map, 'graphite-950'),
31
- on-surface-brand--hover: map.get(primitive.$color-map, 'graphite-0'),
32
-
33
- // =============================================
34
- // SURFACES — Disabled
35
- // =============================================
36
-
37
- surface-disabled: map.get(primitive.$color-map, 'graphite-700'),
38
- on-surface-disabled: map.get(primitive.$color-map, 'graphite-400'),
39
- surface-disabled-subtle: map.get(primitive.$color-map, 'graphite-800'),
40
- on-surface-disabled-subtle: map.get(primitive.$color-map, 'graphite-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, 'graphite-0'),
48
- surface-primary--hover: map.get(primitive.$color-map, 'european-blue-700'),
49
- on-surface-primary--hover: map.get(primitive.$color-map, 'graphite-0'),
50
- surface-primary--pressed: map.get(primitive.$color-map, 'european-blue-800'),
51
- on-surface-primary--pressed: map.get(primitive.$color-map, 'graphite-0'),
52
- surface-primary-subtle: map.get(primitive.$color-map, 'european-blue-50'),
53
- on-surface-primary-subtle: map.get(primitive.$color-map, 'european-blue-800'),
54
- surface-primary-subtler: map.get(primitive.$color-map, 'european-blue-950'),
55
- on-surface-primary-subtler: map.get(primitive.$color-map, 'european-blue-200'),
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, 'graphite-50'),
75
- on-surface-inverted: map.get(primitive.$color-map, 'graphite-950'),
76
- surface-inverted-subtle: map.get(primitive.$color-map, 'graphite-50'),
77
- on-surface-inverted-subtle: map.get(primitive.$color-map, 'graphite-800'),
78
- surface-inverted-disabled: map.get(primitive.$color-map, 'graphite-50'),
79
- on-surface-inverted-disabled: map.get(primitive.$color-map, 'graphite-100'),
80
-
81
- // =============================================
82
- // SURFACES — Neutral
83
- // =============================================
84
-
85
- surface-neutral: map.get(primitive.$color-map, 'graphite-300'),
86
- on-surface-neutral: map.get(primitive.$color-map, 'graphite-0'),
87
- surface-neutral--hover: map.get(primitive.$color-map, 'graphite-400'),
88
- on-surface-neutral--hover: map.get(primitive.$color-map, 'graphite-0'),
89
- surface-neutral--pressed: map.get(primitive.$color-map, 'graphite-500'),
90
- on-surface-neutral--pressed: map.get(primitive.$color-map, 'graphite-0'),
91
- surface-neutral-subtle: map.get(primitive.$color-map, 'graphite-800'),
92
- on-surface-neutral-subtle: map.get(primitive.$color-map, 'graphite-0'),
93
- surface-neutral-subtle--hover: map.get(primitive.$color-map, 'graphite-900'),
94
- on-surface-neutral-subtle--hover: map.get(primitive.$color-map, 'graphite-0'),
95
- surface-neutral-subtler: map.get(primitive.$color-map, 'graphite-700'),
96
- on-surface-neutral-subtler: map.get(primitive.$color-map, 'graphite-0'),
97
- surface-neutral-subtler--hover: map.get(primitive.$color-map, 'graphite-600'),
98
- on-surface-neutral-subtler--hover: map.get(primitive.$color-map, 'graphite-0'),
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, 'graphite-0'),
106
- surface-critical--hover: map.get(primitive.$color-map, 'red-700'),
107
- on-surface-critical--hover: map.get(primitive.$color-map, 'graphite-0'),
108
- surface-critical--pressed: map.get(primitive.$color-map, 'red-800'),
109
- on-surface-critical--pressed: map.get(primitive.$color-map, 'graphite-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, 'graphite-0'),
123
- surface-info--hover: map.get(primitive.$color-map, 'blue-700'),
124
- on-surface-info--hover: map.get(primitive.$color-map, 'graphite-0'),
125
- surface-info--pressed: map.get(primitive.$color-map, 'blue-800'),
126
- on-surface-info--pressed: map.get(primitive.$color-map, 'graphite-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-50'),
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, 'graphite-0'),
140
- surface-success--hover: map.get(primitive.$color-map, 'green-900'),
141
- on-surface-success--hover: map.get(primitive.$color-map, 'graphite-0'),
142
- surface-success--pressed: map.get(primitive.$color-map, 'green-950'),
143
- on-surface-success--pressed: map.get(primitive.$color-map, 'graphite-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-950'),
173
- on-surface-cm-purple-violet-subtler: map.get(primitive.$color-map, 'cm-purple-violet-200'),
174
- border-cm-purple-violet-subtle: map.get(primitive.$color-map, 'cm-purple-violet-700'),
175
-
176
- surface-cm-purple-subtler: map.get(primitive.$color-map, 'cm-purple-950'),
177
- on-surface-cm-purple-subtler: map.get(primitive.$color-map, 'cm-purple-200'),
178
- border-cm-purple-subtle: map.get(primitive.$color-map, 'cm-purple-700'),
179
-
180
- surface-cm-blue-navy-subtler: map.get(primitive.$color-map, 'cm-blue-navy-900'),
181
- on-surface-cm-blue-navy-subtler: map.get(primitive.$color-map, 'cm-blue-navy-200'),
182
- border-cm-blue-navy-subtle: map.get(primitive.$color-map, 'cm-blue-navy-700'),
183
-
184
- surface-cm-blue-electric-subtler: map.get(primitive.$color-map, 'cm-blue-electric-900'),
185
- on-surface-cm-blue-electric-subtler: map.get(primitive.$color-map, 'cm-blue-electric-200'),
186
- border-cm-blue-electric-subtle: map.get(primitive.$color-map, 'cm-blue-electric-700'),
187
-
188
- surface-cm-green-dark-subtler: map.get(primitive.$color-map, 'cm-green-dark-950'),
189
- on-surface-cm-green-dark-subtler: map.get(primitive.$color-map, 'cm-green-dark-200'),
190
- border-cm-green-dark-subtle: map.get(primitive.$color-map, 'cm-green-dark-700'),
191
-
192
- surface-cm-green-pine-subtler: map.get(primitive.$color-map, 'cm-green-pine-950'),
193
- on-surface-cm-green-pine-subtler: map.get(primitive.$color-map, 'cm-green-pine-200'),
194
- border-cm-green-pine-subtle: map.get(primitive.$color-map, 'cm-green-pine-700'),
195
-
196
- surface-cm-green-subtler: map.get(primitive.$color-map, 'cm-green-950'),
197
- on-surface-cm-green-subtler: map.get(primitive.$color-map, 'cm-green-200'),
198
- border-cm-green-subtle: map.get(primitive.$color-map, 'cm-green-700'),
199
-
200
- surface-cm-blue-ocean-subtler: map.get(primitive.$color-map, 'cm-blue-ocean-950'),
201
- on-surface-cm-blue-ocean-subtler: map.get(primitive.$color-map, 'cm-blue-ocean-200'),
202
- border-cm-blue-ocean-subtle: map.get(primitive.$color-map, 'cm-blue-ocean-700'),
203
-
204
- surface-cm-green-lemon-subtler: map.get(primitive.$color-map, 'cm-green-lemon-950'),
205
- on-surface-cm-green-lemon-subtler: map.get(primitive.$color-map, 'cm-green-lemon-200'),
206
- border-cm-green-lemon-subtle: map.get(primitive.$color-map, 'cm-green-lemon-700'),
207
-
208
- surface-cm-yellow-gold-subtler: map.get(primitive.$color-map, 'cm-yellow-gold-950'),
209
- on-surface-cm-yellow-gold-subtler: map.get(primitive.$color-map, 'cm-yellow-gold-200'),
210
- border-cm-yellow-gold-subtle: map.get(primitive.$color-map, 'cm-yellow-gold-700'),
211
-
212
- surface-cm-orange-abricot-subtler: map.get(primitive.$color-map, 'cm-orange-abricot-950'),
213
- on-surface-cm-orange-abricot-subtler: map.get(primitive.$color-map, 'cm-orange-abricot-200'),
214
- border-cm-orange-abricot-subtle: map.get(primitive.$color-map, 'cm-orange-abricot-700'),
215
-
216
- surface-cm-orange-subtler: map.get(primitive.$color-map, 'cm-orange-950'),
217
- on-surface-cm-orange-subtler: map.get(primitive.$color-map, 'cm-orange-200'),
218
- border-cm-orange-subtle: map.get(primitive.$color-map, 'cm-orange-700'),
219
-
220
- surface-cm-red-tomato-subtler: map.get(primitive.$color-map, 'cm-red-tomato-950'),
221
- on-surface-cm-red-tomato-subtler: map.get(primitive.$color-map, 'cm-red-tomato-200'),
222
- border-cm-red-tomato-subtle: map.get(primitive.$color-map, 'cm-red-tomato-700'),
223
-
224
- surface-cm-red-crayola-subtler: map.get(primitive.$color-map, 'cm-red-crayola-950'),
225
- on-surface-cm-red-crayola-subtler: map.get(primitive.$color-map, 'cm-red-crayola-200'),
226
- border-cm-red-crayola-subtle: map.get(primitive.$color-map, 'cm-red-crayola-700'),
227
-
228
- surface-cm-warm-grey-subtler: map.get(primitive.$color-map, 'cm-warm-grey-950'),
229
- on-surface-cm-warm-grey-subtler: map.get(primitive.$color-map, 'cm-warm-grey-200'),
230
- border-cm-warm-grey-subtle: map.get(primitive.$color-map, 'cm-warm-grey-700'),
231
-
232
- // =============================================
233
- // FOREGROUND / Text
234
- // =============================================
235
-
236
- foreground: map.get(primitive.$color-map, 'graphite-25'),
237
- foreground-subtle: map.get(primitive.$color-map, 'graphite-75'),
238
- foreground-subtler: map.get(primitive.$color-map, 'graphite-100'),
239
- foreground-placeholder: map.get(primitive.$color-map, 'graphite-200'),
240
- foreground-disabled: map.get(primitive.$color-map, 'graphite-400'),
241
- foreground-primary: map.get(primitive.$color-map, 'european-blue-500'),
242
- foreground-success: map.get(primitive.$color-map, 'green-500'),
243
- foreground-info: map.get(primitive.$color-map, 'blue-500'),
244
- foreground-warning: map.get(primitive.$color-map, 'orange-500'),
245
- foreground-critical: map.get(primitive.$color-map, 'red-400'),
246
- foreground-highlight: map.get(primitive.$color-map, 'sunrise-orange-600'),
247
- foreground-inverted: map.get(primitive.$color-map, 'graphite-950'),
248
-
249
- // =============================================
250
- // BORDERS
251
- // =============================================
252
-
253
- border-brand: map.get(primitive.$color-map, 'silver-fog-50'),
254
- border-divider: map.get(primitive.$color-map, 'graphite-500'),
255
- border-disabled: map.get(primitive.$color-map, 'graphite-700'),
256
-
257
- border-primary: map.get(primitive.$color-map, 'european-blue-600'),
258
- border-primary--hover: map.get(primitive.$color-map, 'european-blue-700'),
259
- border-primary--pressed: map.get(primitive.$color-map, 'european-blue-800'),
260
- border-primary-subtle: map.get(primitive.$color-map, 'european-blue-800'),
261
- border-primary-subtler: map.get(primitive.$color-map, 'european-blue-900'),
262
-
263
- border-info: map.get(primitive.$color-map, 'blue-700'),
264
- border-info-subtle: map.get(primitive.$color-map, 'blue-900'),
265
-
266
- border-success: map.get(primitive.$color-map, 'green-700'),
267
- border-success-subtle: map.get(primitive.$color-map, 'green-900'),
268
-
269
- border-warning: map.get(primitive.$color-map, 'orange-600'),
270
- border-warning-subtle: map.get(primitive.$color-map, 'orange-900'),
271
-
272
- border-critical: map.get(primitive.$color-map, 'red-600'),
273
- border-critical-subtle: map.get(primitive.$color-map, 'red-900'),
274
-
275
- border-highlight: map.get(primitive.$color-map, 'sunrise-orange-400'),
276
- border-highlight-subtle: map.get(primitive.$color-map, 'sunrise-orange-700'),
277
-
278
- border-inverted: map.get(primitive.$color-map, 'graphite-900'),
279
- border-inverted-disabled: map.get(primitive.$color-map, 'graphite-800'),
280
-
281
- border-neutral: map.get(primitive.$color-map, 'graphite-500'),
282
- border-neutral--hover: map.get(primitive.$color-map, 'graphite-600'),
283
- border-neutral-subtle: map.get(primitive.$color-map, 'graphite-700'),
284
- border-neutral-subtle--hover: map.get(primitive.$color-map, 'graphite-600'),
285
-
286
- // =============================================
287
- // LINKS
288
- // =============================================
289
-
290
- link: map.get(primitive.$color-map, 'european-blue-400'),
291
- link--focused: map.get(primitive.$color-map, 'european-blue-400'),
292
- link--hover: map.get(primitive.$color-map, 'european-blue-500'),
293
- link--pressed: map.get(primitive.$color-map, 'european-blue-200'),
294
- link--visited: map.get(primitive.$color-map, 'european-blue-300'),
295
-
296
- link-inverted: map.get(primitive.$color-map, 'european-blue-600'),
297
- link-inverted--focused: map.get(primitive.$color-map, 'european-blue-600'),
298
- link-inverted--hover: map.get(primitive.$color-map, 'european-blue-700'),
299
- link-inverted--pressed: map.get(primitive.$color-map, 'european-blue-800'),
300
- link-inverted--visited: map.get(primitive.$color-map, 'european-blue-700'),
301
-
302
- link-contrast: map.get(primitive.$color-map, 'graphite-0'),
303
- link-contrast--focused: map.get(primitive.$color-map, 'graphite-0'),
304
- link-contrast--hover: map.get(primitive.$color-map, 'graphite-50'),
305
- link-contrast--pressed: map.get(primitive.$color-map, 'graphite-100'),
306
- link-contrast--visited: map.get(primitive.$color-map, 'graphite-25'),
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-800'),
314
- focus-critical: map.get(primitive.$color-map, 'red-600'),
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-graphite-0-14'),
322
- alpha-backdrop: map.get(primitive.$color-map, 'alpha-graphite-0-14'),
323
- alpha-backdrop-subtle: map.get(primitive.$color-map, 'alpha-graphite-0-10'),
324
- alpha-backdrop-inverted: map.get(primitive.$color-map, 'alpha-graphite-950-30'),
325
- alpha-backdrop-inverted-subtle: map.get(primitive.$color-map, 'alpha-graphite-950-10'),
7
+ // ============================================================================
8
+ // SEMANTIC COLORS (DARK) — ECL foundations as source of truth + local overlay.
9
+ //
10
+ // Base values come from the generated ECL semantic map `ecl.$color-dark`
11
+ // (ecl/semantic/_color-dark.scss, built from the ECL primitives + color-domain-dark).
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-*`; the EDS
17
+ // semantic contract uses the legacy `*-cm-*` names, so every `-domain-`
18
+ // segment is renamed to `-cm-`. The underlying values are identical.
19
+ // 2. `$_overlay`: EDS-specific tokens that ECL does not define, plus the few
20
+ // values intentionally diverging from ECL (each annotated). Overlay wins and
21
+ // its values are pulled from `primitive.$color-map` to preserve exact EDS
22
+ // ramp references.
23
+ //
24
+ // The public contract (`$color-semantic-map` + every key below) is unchanged.
25
+ // ============================================================================
26
+
27
+ $_ecl-base: map.merge(ecl.$color-dark, ecl-domain.$color-domain-dark);
28
+
29
+ // 2. Local overlay — EDS-only tokens + intentional divergences from ECL.
30
+ $_overlay: (
31
+ // --- On-surface for state surfaces that ship no `on-*--hover/--pressed` in ECL ---
32
+ // Each state surface reuses its base family's on-* text color (text color does
33
+ // not change between rest/hover/pressed), so eds-u-c-* and components resolve a
34
+ // readable foreground for every interactive state.
35
+ on-surface-primary--hover: map.get(primitive.$color-map, 'graphite-0'), // #fff
36
+ on-surface-primary--pressed: map.get(primitive.$color-map, 'graphite-0'), // #fff
37
+ on-surface-highlight--hover: map.get(primitive.$color-map, 'graphite-950'), // #0d0d12
38
+ on-surface-highlight--pressed: map.get(primitive.$color-map, 'graphite-950'), // #0d0d12
39
+ on-surface-neutral--hover: map.get(primitive.$color-map, 'graphite-0'), // #fff
40
+ on-surface-neutral--pressed: map.get(primitive.$color-map, 'graphite-0'), // #fff
41
+ on-surface-critical--hover: map.get(primitive.$color-map, 'graphite-0'), // #fff
42
+ on-surface-critical--pressed: map.get(primitive.$color-map, 'graphite-0'), // #fff
43
+ on-surface-brand--hover: map.get(primitive.$color-map, 'graphite-0'), // #fff
44
+
45
+ // used by: fab-button, icon-button, input-chat, language-selector, user-profile
46
+ surface-brand--hover: map.get(primitive.$color-map, 'graphite-950'), // #0d0d12
47
+
48
+ // used by: chip, menu
49
+ surface-neutral-subtler: map.get(primitive.$color-map, 'graphite-600'), // #24242c
50
+ surface-neutral-subtle: map.get(primitive.$color-map, 'graphite-400'), // #24242c
51
+ // used by: chip
52
+ on-surface-neutral-subtler: map.get(primitive.$color-map, 'graphite-0'), // #fff
53
+ on-surface-neutral-subtle: map.get(primitive.$color-map, 'graphite-0'), // #fff
54
+
55
+ surface-highlight-subtle: map.get(primitive.$color-map, 'sunrise-orange-800'),
56
+ on-surface-highlight-subtle: map.get(primitive.$color-map, 'sunrise-orange-400'),
57
+
58
+ // --- Foreground (EDS-only inverted) ---
59
+ // used by: banner, shell, tabs
60
+ foreground-inverted: map.get(primitive.$color-map, 'graphite-950'), // #0d0d12
61
+
62
+ // --- Borders (EDS-only + divergences) ---
63
+ // used by: badge, chat-bubble, chip, language-selector, tag, tag-group
64
+ border-neutral-subtle: map.get(primitive.$color-map, 'graphite-400'), // #48484f
65
+
66
+ // wrongly named ECL side : border-brand
67
+ border: map.get(primitive.$color-map, 'silver-fog-50'),
68
+
69
+ // --- Domain (brand) `-subtle` surfaces (EDS-only) ---
70
+ // ECL ships only `surface-domain-*-subtler` (dark ramp -950) for domain colors.
71
+ // A stronger `-subtle` fill (e.g. the tag's `filled` variant) mirrors the
72
+ // dark standard-color convention (surface -800 / on-surface -50) for every domain.
73
+ surface-domain-blue-navy-subtle: map.get(primitive.$color-map, 'domain-blue-navy-800'),
74
+ on-surface-domain-blue-navy-subtle: map.get(primitive.$color-map, 'domain-blue-navy-50'),
75
+ surface-domain-blue-electric-subtle: map.get(primitive.$color-map, 'domain-blue-electric-800'),
76
+ on-surface-domain-blue-electric-subtle: map.get(primitive.$color-map, 'domain-blue-electric-50'),
77
+ surface-domain-blue-ocean-subtle: map.get(primitive.$color-map, 'domain-blue-ocean-800'),
78
+ on-surface-domain-blue-ocean-subtle: map.get(primitive.$color-map, 'domain-blue-ocean-50'),
79
+ surface-domain-green-subtle: map.get(primitive.$color-map, 'domain-green-800'),
80
+ on-surface-domain-green-subtle: map.get(primitive.$color-map, 'domain-green-50'),
81
+ surface-domain-green-dark-subtle: map.get(primitive.$color-map, 'domain-green-dark-800'),
82
+ on-surface-domain-green-dark-subtle: map.get(primitive.$color-map, 'domain-green-dark-50'),
83
+ surface-domain-green-lemon-subtle: map.get(primitive.$color-map, 'domain-green-lemon-800'),
84
+ on-surface-domain-green-lemon-subtle: map.get(primitive.$color-map, 'domain-green-lemon-50'),
85
+ surface-domain-green-pine-subtle: map.get(primitive.$color-map, 'domain-green-pine-800'),
86
+ on-surface-domain-green-pine-subtle: map.get(primitive.$color-map, 'domain-green-pine-50'),
87
+ surface-domain-orange-subtle: map.get(primitive.$color-map, 'domain-orange-800'),
88
+ on-surface-domain-orange-subtle: map.get(primitive.$color-map, 'domain-orange-50'),
89
+ surface-domain-orange-abricot-subtle: map.get(primitive.$color-map, 'domain-orange-abricot-800'),
90
+ on-surface-domain-orange-abricot-subtle: map.get(primitive.$color-map, 'domain-orange-abricot-50'),
91
+ surface-domain-purple-subtle: map.get(primitive.$color-map, 'domain-purple-800'),
92
+ on-surface-domain-purple-subtle: map.get(primitive.$color-map, 'domain-purple-50'),
93
+ surface-domain-purple-violet-subtle: map.get(primitive.$color-map, 'domain-purple-violet-800'),
94
+ on-surface-domain-purple-violet-subtle: map.get(primitive.$color-map, 'domain-purple-violet-50'),
95
+ surface-domain-red-crayola-subtle: map.get(primitive.$color-map, 'domain-red-crayola-800'),
96
+ on-surface-domain-red-crayola-subtle: map.get(primitive.$color-map, 'domain-red-crayola-50'),
97
+ surface-domain-red-tomato-subtle: map.get(primitive.$color-map, 'domain-red-tomato-800'),
98
+ on-surface-domain-red-tomato-subtle: map.get(primitive.$color-map, 'domain-red-tomato-50'),
99
+ surface-domain-warm-grey-subtle: map.get(primitive.$color-map, 'domain-warm-grey-800'),
100
+ on-surface-domain-warm-grey-subtle: map.get(primitive.$color-map, 'domain-warm-grey-50'),
101
+ surface-domain-yellow-gold-subtle: map.get(primitive.$color-map, 'domain-yellow-gold-800'),
102
+ on-surface-domain-yellow-gold-subtle: map.get(primitive.$color-map, 'domain-yellow-gold-50'),
326
103
  );
104
+
105
+ $color-semantic-map: map.merge($_ecl-base, $_overlay);