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