@eui/styles 21.0.0-next.8 → 21.0.0-rc.1
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/icons/sprites/eui-file.json +6 -0
- package/dist/assets/icons/sprites/eui-file.svg +1 -1
- package/dist/assets/icons/sprites/eui.json +25 -14
- package/dist/assets/icons/sprites/eui.svg +1 -1
- package/dist/base/01-base/functions/_color.functions.scss +46 -124
- package/dist/base/01-base/functions/_other.functions.scss +4 -0
- package/dist/base/01-base/mixins/_accessibility.mixins.scss +2 -2
- package/dist/base/01-base/mixins/_eui-input.scss +2 -2
- package/dist/base/01-base/mixins/_eui-resizable.scss +1 -1
- package/dist/base/01-base/mixins/_icon-svg.mixins.scss +3 -3
- package/dist/base/02-tokens/colors-dark-theme.scss +232 -0
- package/dist/base/02-tokens/colors-default.scss +451 -0
- package/dist/base/02-tokens/colors-extra-palettes.scss +512 -0
- package/dist/base/02-tokens/maps.scss +292 -703
- package/dist/base/03-vars/vars-dark-theme.scss +47 -17
- package/dist/base/03-vars/vars.scss +93 -129
- package/dist/base/99-utilities/{default/index.scss → index.scss} +1 -0
- package/dist/base/99-utilities/{default/others → others}/_eui-u-anim.scss +1 -1
- package/dist/base/99-utilities/{default/others → others}/_eui-u-display.scss +2 -2
- package/dist/base/99-utilities/{default/others → others}/_eui-u-flex.scss +1 -1
- package/dist/base/99-utilities/{default/others → others}/_misc-utilities.scss +3 -0
- package/dist/base/99-utilities/tokens/_border-radius.scss +7 -0
- package/dist/base/99-utilities/{default/tokens → tokens}/_colors.scss +4 -2
- package/dist/base/99-utilities/{default/tokens → tokens}/_margins.scss +1 -1
- package/dist/base/99-utilities/{default/tokens → tokens}/_opacity.scss +1 -1
- package/dist/base/99-utilities/{default/tokens → tokens}/_paddings.scss +1 -1
- package/dist/base/99-utilities/{default/tokens → tokens}/_shadows.scss +1 -1
- package/dist/base/99-utilities/{default/tokens → tokens}/_spacings.scss +1 -1
- package/dist/base/99-utilities/{default/tokens → tokens}/_typography.scss +17 -6
- package/dist/base/99-utilities/{default/tokens → tokens}/_z-indexes.scss +1 -1
- package/dist/base/index.scss +1 -0
- package/dist/eui-base.css +1 -1
- package/dist/eui-base.css.map +1 -1
- package/dist/eui-bootstrap-grid.css +1 -0
- package/dist/eui-bootstrap-grid.css.map +1 -0
- package/dist/eui-ecl-ec.css +8 -2
- package/dist/eui-ecl-ec.css.map +1 -1
- package/dist/eui-ecl-eu.css +8 -2
- package/dist/eui-ecl-eu.css.map +1 -1
- package/dist/eui-ecl-grid.css +1 -0
- package/dist/eui-ecl-grid.css.map +1 -0
- package/dist/eui-icons-flags.css +1 -1
- package/dist/eui-print.css +1 -1
- package/dist/eui-showcase-all.css +2 -1
- package/dist/eui-showcase-all.css.map +1 -1
- package/dist/eui-theme-compact.css +1 -1
- package/dist/eui-theme-compact.css.map +1 -1
- package/dist/eui-theme-dark.css +1 -1
- package/dist/eui-theme-dark.css.map +1 -1
- package/dist/eui-utilities.css +1 -1
- package/dist/eui-utilities.css.map +1 -1
- package/dist/eui.css +1 -1
- package/dist/eui.css.map +1 -1
- package/package.json +1 -1
- package/dist/assets/icons/sprites/eui-social.json +0 -29
- package/dist/assets/icons/sprites/eui-social.svg +0 -1
- package/dist/base/02-tokens/maps-dark-theme.scss +0 -17
- package/dist/base/03-vars/vars-extras.scss +0 -34
- package/dist/base/99-utilities/utilities-extras.scss +0 -14
- package/dist/eui-ecl-ec-rtl.css +0 -1
- package/dist/eui-ecl-ec-rtl.css.map +0 -1
- package/dist/eui-ecl-eu-rtl.css +0 -1
- package/dist/eui-ecl-eu-rtl.css.map +0 -1
- package/dist/eui-extra-vars.css +0 -0
- package/dist/eui-extra-vars.css.map +0 -1
- package/dist/eui-utilities-extras.css +0 -1
- package/dist/eui-utilities-extras.css.map +0 -1
- /package/dist/base/99-utilities/{default/others → others}/_eui-u-border-states.scss +0 -0
- /package/dist/base/99-utilities/{default/others → others}/_eui-u-cursors.scss +0 -0
- /package/dist/base/99-utilities/{default/others → others}/_eui-u-height.scss +0 -0
- /package/dist/base/99-utilities/{default/others → others}/_eui-u-overflow.scss +0 -0
- /package/dist/base/99-utilities/{default/others → others}/_eui-u-position.scss +0 -0
- /package/dist/base/99-utilities/{default/others → others}/_eui-u-sr.scss +0 -0
- /package/dist/base/99-utilities/{default/others → others}/_eui-u-states.scss +0 -0
- /package/dist/base/99-utilities/{default/others → others}/_eui-u-visibility.scss +0 -0
- /package/dist/base/99-utilities/{default/others → others}/_eui-u-width.scss +0 -0
|
@@ -2,21 +2,53 @@
|
|
|
2
2
|
@use 'sass:color';
|
|
3
3
|
@use '../01-base/' as base;
|
|
4
4
|
|
|
5
|
-
//
|
|
6
|
-
|
|
7
|
-
$
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
'
|
|
11
|
-
'
|
|
5
|
+
// PALETTES LIST
|
|
6
|
+
|
|
7
|
+
$color-state-palettes: ( 'primary', 'secondary', 'info', 'success', 'warning', 'danger');
|
|
8
|
+
$color-state-palettes-main: ( 'info', 'success', 'warning', 'danger');
|
|
9
|
+
$color-extra-palettes: (
|
|
10
|
+
'red',
|
|
11
|
+
'orange',
|
|
12
|
+
'amber',
|
|
13
|
+
'yellow',
|
|
14
|
+
'lime',
|
|
15
|
+
'green',
|
|
16
|
+
'emerald',
|
|
17
|
+
'teal',
|
|
18
|
+
'cyan',
|
|
19
|
+
'sky',
|
|
20
|
+
'blue',
|
|
21
|
+
'indigo',
|
|
22
|
+
'violet',
|
|
23
|
+
'purple',
|
|
24
|
+
'fuchsia',
|
|
25
|
+
'pink',
|
|
26
|
+
'rose',
|
|
27
|
+
'ecl-blue-navy',
|
|
28
|
+
'ecl-blue-electric',
|
|
29
|
+
'ecl-blue-ocean',
|
|
30
|
+
'ecl-green',
|
|
31
|
+
'ecl-green-dark',
|
|
32
|
+
'ecl-orange',
|
|
33
|
+
'ecl-purple',
|
|
34
|
+
'ecl-green-lemon',
|
|
35
|
+
'ecl-green-pine',
|
|
36
|
+
'ecl-red-crayola',
|
|
37
|
+
'ecl-yellow-gold',
|
|
38
|
+
'ecl-orange-abricot',
|
|
39
|
+
'ecl-purple-violet',
|
|
40
|
+
'ecl-red-tomato'
|
|
12
41
|
);
|
|
13
42
|
|
|
43
|
+
|
|
44
|
+
// BORDER RADIUS
|
|
45
|
+
|
|
14
46
|
$border-radius-map: (
|
|
15
47
|
none: 0,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
48
|
+
xs: 2px,
|
|
49
|
+
s: 4px,
|
|
50
|
+
m: 8px,
|
|
51
|
+
l: 12px,
|
|
20
52
|
max: 999px
|
|
21
53
|
);
|
|
22
54
|
|
|
@@ -46,7 +78,7 @@ $breakpoint-map: (
|
|
|
46
78
|
);
|
|
47
79
|
|
|
48
80
|
// naming
|
|
49
|
-
$xs: base.new-breakpoint(min-width map.get($breakpoint-map, 'xs') max-width map.get($breakpoint-map, '
|
|
81
|
+
$xs: base.new-breakpoint(min-width map.get($breakpoint-map, 'xs') max-width map.get($breakpoint-map, 'sm') - 1) !default;
|
|
50
82
|
$s: base.new-breakpoint(min-width map.get($breakpoint-map, 'sm') max-width map.get($breakpoint-map, 'md') - 1) !default;
|
|
51
83
|
$m: base.new-breakpoint(min-width map.get($breakpoint-map, 'md') max-width map.get($breakpoint-map, 'lg') - 1) !default;
|
|
52
84
|
$l: base.new-breakpoint(min-width map.get($breakpoint-map, 'lg') max-width map.get($breakpoint-map, 'xl') - 1) !default;
|
|
@@ -55,7 +87,8 @@ $xxl: base.new-breakpoint(min-width map.get($breakpoint-map, 'xxl') max-width ma
|
|
|
55
87
|
$fhd: base.new-breakpoint(min-width map.get($breakpoint-map, 'fhd') max-width map.get($breakpoint-map, '2k') - 1) !default;
|
|
56
88
|
|
|
57
89
|
// human naming
|
|
58
|
-
$eui-bkp-mobile-
|
|
90
|
+
$eui-bkp-mobile-xs: $xs !default;
|
|
91
|
+
$eui-bkp-mobile-s: $s !default;
|
|
59
92
|
$eui-bkp-mobile: base.new-breakpoint(max-width map.get($breakpoint-map, 'md') - 1) !default;
|
|
60
93
|
$eui-bkp-mobile-up: base.new-breakpoint(min-width map.get($breakpoint-map, 'md')) !default;
|
|
61
94
|
$eui-bkp-tablet: $m !default;
|
|
@@ -98,24 +131,24 @@ $opacity-map: (
|
|
|
98
131
|
|
|
99
132
|
$spacing-map: (
|
|
100
133
|
none: 0,
|
|
101
|
-
5xs: 0.0625rem, // 4xs
|
|
102
|
-
4xs: 0.125rem, // 3xs
|
|
103
|
-
3xs: 0.25rem, // 2xs
|
|
104
|
-
2xs: 0.375rem,
|
|
105
|
-
xs: 0.5rem, // ==
|
|
106
|
-
s: 0.75rem, // ==
|
|
107
|
-
m: 1rem, // ==
|
|
108
|
-
l: 1.25rem, // ==
|
|
109
|
-
xl: 1.5rem, // ==
|
|
110
|
-
2xl: 1.75rem, //
|
|
111
|
-
3xl: 2rem, // 2xl
|
|
112
|
-
4xl: 2.25rem, //
|
|
113
|
-
5xl: 2.5rem, // 3xl
|
|
114
|
-
6xl: 3rem, // 4xl
|
|
115
|
-
7xl: 3.5rem, // 5xl
|
|
116
|
-
8xl: 4rem, // 6xl
|
|
117
|
-
9xl: 4.5rem,
|
|
118
|
-
10xl: 5rem, // 7xl
|
|
134
|
+
5xs: 0.0625rem, // 4xs - 1px
|
|
135
|
+
4xs: 0.125rem, // 3xs - 2px
|
|
136
|
+
3xs: 0.25rem, // 2xs - 4px
|
|
137
|
+
2xs: 0.375rem, // - 6px
|
|
138
|
+
xs: 0.5rem, // == - 8px
|
|
139
|
+
s: 0.75rem, // == - 12px
|
|
140
|
+
m: 1rem, // == - 16px
|
|
141
|
+
l: 1.25rem, // == - 20px
|
|
142
|
+
xl: 1.5rem, // == - 24px
|
|
143
|
+
2xl: 1.75rem, // - 28px
|
|
144
|
+
3xl: 2rem, // 2xl - 32px
|
|
145
|
+
4xl: 2.25rem, // - 36px
|
|
146
|
+
5xl: 2.5rem, // 3xl - 40px
|
|
147
|
+
6xl: 3rem, // 4xl - 48px
|
|
148
|
+
7xl: 3.5rem, // 5xl - 56px
|
|
149
|
+
8xl: 4rem, // 6xl - 64px
|
|
150
|
+
9xl: 4.5rem, // - 72px
|
|
151
|
+
10xl: 5rem, // 7xl - 80px
|
|
119
152
|
);
|
|
120
153
|
|
|
121
154
|
|
|
@@ -150,470 +183,15 @@ $z-index-map: (
|
|
|
150
183
|
growl-message: 99999
|
|
151
184
|
);
|
|
152
185
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
// COLORS
|
|
156
|
-
|
|
157
|
-
$ecl-colors: (
|
|
158
|
-
'primary-25': #f7f9ff,
|
|
159
|
-
'primary-50': #f2f6ff,
|
|
160
|
-
'primary-75': #eef2ff,
|
|
161
|
-
'primary-100': #e6edff,
|
|
162
|
-
'primary-200': #d9e3ff,
|
|
163
|
-
'primary-300': #b0c6ff,
|
|
164
|
-
'primary-400': #8cacff,
|
|
165
|
-
'primary-500': #5987ff,
|
|
166
|
-
'primary-600': #0046ff,
|
|
167
|
-
'primary-700': #0035bf,
|
|
168
|
-
'primary-800': #002a99,
|
|
169
|
-
'primary-900': #001f73,
|
|
170
|
-
'primary-950': #001959,
|
|
171
|
-
|
|
172
|
-
'secondary-25': #fffcf7,
|
|
173
|
-
'secondary-50': #fff5e5,
|
|
174
|
-
'secondary-75': #ffebcc,
|
|
175
|
-
'secondary-100': #ffe1b4,
|
|
176
|
-
'secondary-200': #ffd392,
|
|
177
|
-
'secondary-300': #ffcb7d,
|
|
178
|
-
'secondary-400': #ffbe5c,
|
|
179
|
-
'secondary-500': #fea439,
|
|
180
|
-
'secondary-600': #fc8713,
|
|
181
|
-
'secondary-700': #ed6c09,
|
|
182
|
-
'secondary-800': #c55109,
|
|
183
|
-
'secondary-900': #9e4107,
|
|
184
|
-
'secondary-950': #763105,
|
|
185
|
-
|
|
186
|
-
'grey-25': #fafafb,
|
|
187
|
-
'grey-50': #f6f6f8,
|
|
188
|
-
'grey-75': #ededf0,
|
|
189
|
-
'grey-100': #e1e1e7,
|
|
190
|
-
'grey-200': #d4d4dc,
|
|
191
|
-
'grey-300': #b9b9c5,
|
|
192
|
-
'grey-400': #a0a0b1,
|
|
193
|
-
'grey-500': #84849b,
|
|
194
|
-
'grey-600': #696984,
|
|
195
|
-
'grey-700': #505070,
|
|
196
|
-
'grey-800': #353559,
|
|
197
|
-
'grey-900': #1c1c45,
|
|
198
|
-
'grey-950': #00002e,
|
|
199
|
-
|
|
200
|
-
// Status
|
|
201
|
-
'info-25': #f9fbfd,
|
|
202
|
-
'info-50': #f5f7fb,
|
|
203
|
-
'info-75': #ebeff7,
|
|
204
|
-
'info-100': #dee4f2,
|
|
205
|
-
'info-200': #bfcce6,
|
|
206
|
-
'info-300': #a3b6da,
|
|
207
|
-
'info-400': #859dce,
|
|
208
|
-
'info-500': #6685c2,
|
|
209
|
-
'info-600': #3b62b0,
|
|
210
|
-
'info-700': #1c49a4,
|
|
211
|
-
'info-800': #039,
|
|
212
|
-
'info-900': #00297a,
|
|
213
|
-
'info-950': #001f5c,
|
|
214
|
-
|
|
215
|
-
'success-25': #f9fefc,
|
|
216
|
-
'success-50': #edfbf6,
|
|
217
|
-
'success-75': #e3f9f0,
|
|
218
|
-
'success-100': #daf6eb,
|
|
219
|
-
'success-200': #b2edd6,
|
|
220
|
-
'success-300': #8fe5c4,
|
|
221
|
-
'success-400': #5ddaa9,
|
|
222
|
-
'success-500': #05c67b,
|
|
223
|
-
'success-600': #05b26f,
|
|
224
|
-
'success-700': #049e62,
|
|
225
|
-
'success-800': #037e4e,
|
|
226
|
-
'success-900': #025f3b,
|
|
227
|
-
'success-950': #02472c,
|
|
228
|
-
|
|
229
|
-
'error-25': #fefafa,
|
|
230
|
-
'error-50': #fdefef,
|
|
231
|
-
'error-75': #fce9ea,
|
|
232
|
-
'error-100': #f5bbbe,
|
|
233
|
-
'error-200': #f09a9e,
|
|
234
|
-
'error-300': #ea6c72,
|
|
235
|
-
'error-400': #e54f57,
|
|
236
|
-
'error-500': #df232d,
|
|
237
|
-
'error-600': #cb2029,
|
|
238
|
-
'error-700': #9e1920,
|
|
239
|
-
'error-800': #7b1319,
|
|
240
|
-
'error-900': #5a0e12,
|
|
241
|
-
'error-950': #1f0506,
|
|
242
|
-
|
|
243
|
-
'warning-25': #fffaf5,
|
|
244
|
-
'warning-50': #fff3e8,
|
|
245
|
-
'warning-75': #ffeddc,
|
|
246
|
-
'warning-100': #ffdbba,
|
|
247
|
-
'warning-200': #ffc998,
|
|
248
|
-
'warning-300': #ffb16a,
|
|
249
|
-
'warning-400': #ffa14d,
|
|
250
|
-
'warning-500': #ff8a20,
|
|
251
|
-
'warning-600': #e87e1d,
|
|
252
|
-
'warning-700': #ba6517,
|
|
253
|
-
'warning-800': #8b4c11,
|
|
254
|
-
'warning-900': #68390d,
|
|
255
|
-
'warning-950': #512c0a
|
|
256
|
-
);
|
|
257
|
-
|
|
258
|
-
$color-map: (
|
|
259
|
-
br: (
|
|
260
|
-
950: map.get($ecl-colors, 'grey-950'),
|
|
261
|
-
900: map.get($ecl-colors, 'grey-900'),
|
|
262
|
-
800: map.get($ecl-colors, 'grey-800'),
|
|
263
|
-
700: map.get($ecl-colors, 'grey-700')
|
|
264
|
-
),
|
|
265
|
-
pr: (
|
|
266
|
-
950: map.get($ecl-colors, 'primary-950'),
|
|
267
|
-
900: map.get($ecl-colors, 'primary-900'),
|
|
268
|
-
800: map.get($ecl-colors, 'primary-800'),
|
|
269
|
-
700: map.get($ecl-colors, 'primary-700'),
|
|
270
|
-
600: map.get($ecl-colors, 'primary-600'),
|
|
271
|
-
500: map.get($ecl-colors, 'primary-500'),
|
|
272
|
-
400: map.get($ecl-colors, 'primary-400'),
|
|
273
|
-
300: map.get($ecl-colors, 'primary-300'),
|
|
274
|
-
200: map.get($ecl-colors, 'primary-200'),
|
|
275
|
-
100: map.get($ecl-colors, 'primary-100'),
|
|
276
|
-
75: map.get($ecl-colors, 'primary-75'),
|
|
277
|
-
50: map.get($ecl-colors, 'primary-50'),
|
|
278
|
-
25: map.get($ecl-colors, 'primary-25')
|
|
279
|
-
),
|
|
280
|
-
gr: (
|
|
281
|
-
950: map.get($ecl-colors, 'grey-950'),
|
|
282
|
-
900: map.get($ecl-colors, 'grey-900'),
|
|
283
|
-
800: map.get($ecl-colors, 'grey-800'),
|
|
284
|
-
700: map.get($ecl-colors, 'grey-700'),
|
|
285
|
-
600: map.get($ecl-colors, 'grey-600'),
|
|
286
|
-
500: map.get($ecl-colors, 'grey-500'),
|
|
287
|
-
400: map.get($ecl-colors, 'grey-400'),
|
|
288
|
-
300: map.get($ecl-colors, 'grey-300'),
|
|
289
|
-
200: map.get($ecl-colors, 'grey-200'),
|
|
290
|
-
100: map.get($ecl-colors, 'grey-100'),
|
|
291
|
-
75: map.get($ecl-colors, 'grey-75'),
|
|
292
|
-
50: map.get($ecl-colors, 'grey-50'),
|
|
293
|
-
// 50: #f3f3f6,
|
|
294
|
-
25: map.get($ecl-colors, 'grey-25')
|
|
295
|
-
),
|
|
296
|
-
grn: (
|
|
297
|
-
950: #171717,
|
|
298
|
-
900: #313131,
|
|
299
|
-
800: #474747,
|
|
300
|
-
700: #606060,
|
|
301
|
-
600: #777777,
|
|
302
|
-
500: #909090,
|
|
303
|
-
400: #a9a9a9,
|
|
304
|
-
300: #bfbfbf,
|
|
305
|
-
200: #d8d8d8,
|
|
306
|
-
100: #e4e4e4,
|
|
307
|
-
75: #efefef,
|
|
308
|
-
50: #f7f7f7,
|
|
309
|
-
// 50: #f5f5f5,
|
|
310
|
-
25: #fbfbfb
|
|
311
|
-
),
|
|
312
|
-
in: (
|
|
313
|
-
950: map.get($ecl-colors, 'info-950'),
|
|
314
|
-
900: map.get($ecl-colors, 'info-900'),
|
|
315
|
-
800: map.get($ecl-colors, 'info-800'),
|
|
316
|
-
700: map.get($ecl-colors, 'info-700'),
|
|
317
|
-
600: map.get($ecl-colors, 'info-600'),
|
|
318
|
-
500: map.get($ecl-colors, 'info-500'),
|
|
319
|
-
400: map.get($ecl-colors, 'info-400'),
|
|
320
|
-
300: map.get($ecl-colors, 'info-300'),
|
|
321
|
-
200: map.get($ecl-colors, 'info-200'),
|
|
322
|
-
100: map.get($ecl-colors, 'info-100'),
|
|
323
|
-
75: map.get($ecl-colors, 'info-75'),
|
|
324
|
-
50: map.get($ecl-colors, 'info-50'),
|
|
325
|
-
25: map.get($ecl-colors, 'info-25')
|
|
326
|
-
),
|
|
327
|
-
su: (
|
|
328
|
-
950: map.get($ecl-colors, 'success-950'),
|
|
329
|
-
900: map.get($ecl-colors, 'success-900'),
|
|
330
|
-
800: map.get($ecl-colors, 'success-800'),
|
|
331
|
-
700: map.get($ecl-colors, 'success-700'),
|
|
332
|
-
600: map.get($ecl-colors, 'success-600'),
|
|
333
|
-
500: map.get($ecl-colors, 'success-500'),
|
|
334
|
-
400: map.get($ecl-colors, 'success-400'),
|
|
335
|
-
300: map.get($ecl-colors, 'success-300'),
|
|
336
|
-
200: map.get($ecl-colors, 'success-200'),
|
|
337
|
-
100: map.get($ecl-colors, 'success-100'),
|
|
338
|
-
75: map.get($ecl-colors, 'success-75'),
|
|
339
|
-
50: map.get($ecl-colors, 'success-50'),
|
|
340
|
-
25: map.get($ecl-colors, 'success-25')
|
|
341
|
-
),
|
|
342
|
-
wa: (
|
|
343
|
-
950: map.get($ecl-colors, 'warning-950'),
|
|
344
|
-
900: map.get($ecl-colors, 'warning-900'),
|
|
345
|
-
800: map.get($ecl-colors, 'warning-800'),
|
|
346
|
-
700: map.get($ecl-colors, 'warning-700'),
|
|
347
|
-
600: map.get($ecl-colors, 'warning-600'),
|
|
348
|
-
500: map.get($ecl-colors, 'warning-500'),
|
|
349
|
-
400: map.get($ecl-colors, 'warning-400'),
|
|
350
|
-
300: map.get($ecl-colors, 'warning-300'),
|
|
351
|
-
200: map.get($ecl-colors, 'warning-200'),
|
|
352
|
-
100: map.get($ecl-colors, 'warning-100'),
|
|
353
|
-
75: map.get($ecl-colors, 'warning-75'),
|
|
354
|
-
50: map.get($ecl-colors, 'warning-50'),
|
|
355
|
-
25: map.get($ecl-colors, 'warning-25')
|
|
356
|
-
),
|
|
357
|
-
da: (
|
|
358
|
-
950: map.get($ecl-colors, 'error-950'),
|
|
359
|
-
900: map.get($ecl-colors, 'error-900'),
|
|
360
|
-
800: map.get($ecl-colors, 'error-800'),
|
|
361
|
-
700: map.get($ecl-colors, 'error-700'),
|
|
362
|
-
600: map.get($ecl-colors, 'error-600'),
|
|
363
|
-
500: map.get($ecl-colors, 'error-500'),
|
|
364
|
-
400: map.get($ecl-colors, 'error-400'),
|
|
365
|
-
300: map.get($ecl-colors, 'error-300'),
|
|
366
|
-
200: map.get($ecl-colors, 'error-200'),
|
|
367
|
-
100: map.get($ecl-colors, 'error-100'),
|
|
368
|
-
75: map.get($ecl-colors, 'error-75'),
|
|
369
|
-
50: map.get($ecl-colors, 'error-50'),
|
|
370
|
-
25: map.get($ecl-colors, 'error-25')
|
|
371
|
-
),
|
|
372
|
-
cta: (
|
|
373
|
-
950: map.get($ecl-colors, 'secondary-950'),
|
|
374
|
-
900: map.get($ecl-colors, 'secondary-900'),
|
|
375
|
-
800: map.get($ecl-colors, 'secondary-800'),
|
|
376
|
-
700: map.get($ecl-colors, 'secondary-700'),
|
|
377
|
-
600: map.get($ecl-colors, 'secondary-600'),
|
|
378
|
-
500: map.get($ecl-colors, 'secondary-500'),
|
|
379
|
-
400: map.get($ecl-colors, 'secondary-400'),
|
|
380
|
-
300: map.get($ecl-colors, 'secondary-300'),
|
|
381
|
-
200: map.get($ecl-colors, 'secondary-200'),
|
|
382
|
-
100: map.get($ecl-colors, 'secondary-100'),
|
|
383
|
-
75: map.get($ecl-colors, 'secondary-75'),
|
|
384
|
-
50: map.get($ecl-colors, 'secondary-50'),
|
|
385
|
-
25: map.get($ecl-colors, 'secondary-25')
|
|
386
|
-
)
|
|
387
|
-
);
|
|
388
|
-
|
|
389
|
-
// COLOR STATES
|
|
390
|
-
|
|
391
|
-
$color-state-map: (
|
|
392
|
-
branding: (
|
|
393
|
-
base: 'br-900',
|
|
394
|
-
default: 'br-900',
|
|
395
|
-
lighter: 'br-700',
|
|
396
|
-
on-lighter: 'br-700-contrast',
|
|
397
|
-
light: 'br-800',
|
|
398
|
-
on-light: 'br-800-contrast',
|
|
399
|
-
dark: 'br-950',
|
|
400
|
-
on-dark: 'br-950-contrast',
|
|
401
|
-
surface: 'br-900',
|
|
402
|
-
on-surface: 'br-900-contrast',
|
|
403
|
-
surface-light: 'br-800',
|
|
404
|
-
on-surface-light: 'br-800-contrast'
|
|
405
|
-
),
|
|
406
|
-
primary: (
|
|
407
|
-
base: 'pr-600',
|
|
408
|
-
default: 'pr-700',
|
|
409
|
-
lighter: 'pr-500',
|
|
410
|
-
on-lighter: 'pr-500-contrast',
|
|
411
|
-
light: 'pr-600',
|
|
412
|
-
on-light: 'pr-600-contrast',
|
|
413
|
-
dark: 'pr-900',
|
|
414
|
-
on-dark: 'pr-900-contrast',
|
|
415
|
-
darker: 'pr-950',
|
|
416
|
-
on-darker: 'pr-950-contrast',
|
|
417
|
-
surface-light: 'pr-75',
|
|
418
|
-
on-surface-light: 'pr-900',
|
|
419
|
-
surface-light-hover: 'pr-100',
|
|
420
|
-
on-surface-light-hover: 'pr-950',
|
|
421
|
-
surface-medium: 'pr-200',
|
|
422
|
-
on-surface-medium: 'pr-950',
|
|
423
|
-
surface: 'pr-600',
|
|
424
|
-
on-surface: 'pr-600-contrast',
|
|
425
|
-
surface-hover: 'pr-700',
|
|
426
|
-
on-surface-hover: 'pr-700-contrast',
|
|
427
|
-
border: 'pr-500',
|
|
428
|
-
border-light: 'pr-300',
|
|
429
|
-
border-lighter: 'pr-200'
|
|
430
|
-
),
|
|
431
|
-
secondary: (
|
|
432
|
-
base: 'gr-500',
|
|
433
|
-
default: 'gr-800',
|
|
434
|
-
lighter: 'gr-600',
|
|
435
|
-
on-lighter: 'gr-600-contrast',
|
|
436
|
-
light: 'gr-700',
|
|
437
|
-
on-light: 'gr-700-contrast',
|
|
438
|
-
dark: 'gr-900',
|
|
439
|
-
on-dark: 'gr-900-contrast',
|
|
440
|
-
darker: 'gr-950',
|
|
441
|
-
on-darker: 'gr-950-contrast',
|
|
442
|
-
surface-light: 'gr-75',
|
|
443
|
-
on-surface-light: 'gr-900',
|
|
444
|
-
surface-light-hover: 'gr-100',
|
|
445
|
-
on-surface-light-hover: 'gr-950',
|
|
446
|
-
surface-medium: 'gr-200',
|
|
447
|
-
on-surface-medium: 'gr-900',
|
|
448
|
-
surface: 'gr-600',
|
|
449
|
-
on-surface: 'gr-600-contrast',
|
|
450
|
-
surface-hover: 'gr-700',
|
|
451
|
-
on-surface-hover: 'gr-700-contrast',
|
|
452
|
-
border: 'gr-500',
|
|
453
|
-
border-light: 'gr-400',
|
|
454
|
-
border-lighter: 'gr-300'
|
|
455
|
-
),
|
|
456
|
-
neutral: (
|
|
457
|
-
base: 'grn-500',
|
|
458
|
-
default: 'grn-800',
|
|
459
|
-
lighter: 'grn-600',
|
|
460
|
-
on-lighter: 'grn-600-contrast',
|
|
461
|
-
light: 'grn-700',
|
|
462
|
-
on-light: 'grn-700-contrast',
|
|
463
|
-
dark: 'grn-900',
|
|
464
|
-
on-dark: 'grn-900-contrast',
|
|
465
|
-
darker: 'grn-950',
|
|
466
|
-
on-darker: 'grn-950-contrast',
|
|
467
|
-
surface-light: 'grn-50',
|
|
468
|
-
on-surface-light: 'grn-900',
|
|
469
|
-
surface-light-hover: 'grn-75',
|
|
470
|
-
on-surface-light-hover: 'grn-950',
|
|
471
|
-
surface-medium: 'grn-100',
|
|
472
|
-
on-surface-medium: 'grn-900',
|
|
473
|
-
surface: 'grn-400',
|
|
474
|
-
on-surface: 'grn-400-contrast',
|
|
475
|
-
surface-hover: 'grn-300',
|
|
476
|
-
on-surface-hover: 'grn-300-contrast',
|
|
477
|
-
border: 'grn-500',
|
|
478
|
-
border-light: 'grn-400',
|
|
479
|
-
border-lighter: 'grn-300'
|
|
480
|
-
),
|
|
481
|
-
cta: (
|
|
482
|
-
base: 'cta-400',
|
|
483
|
-
default: 'cta-900',
|
|
484
|
-
lighter: 'cta-400',
|
|
485
|
-
on-lighter: 'cta-400-contrast',
|
|
486
|
-
light: 'cta-500',
|
|
487
|
-
on-light: 'cta-500-contrast',
|
|
488
|
-
dark: 'cta-800',
|
|
489
|
-
on-dark: 'cta-800-contrast',
|
|
490
|
-
darker: 'cta-900',
|
|
491
|
-
on-darker: 'cta-900-contrast',
|
|
492
|
-
surface-light: 'cta-25',
|
|
493
|
-
on-surface-light: 'cta-800',
|
|
494
|
-
surface-light-hover: 'cta-50',
|
|
495
|
-
on-surface-light-hover: 'cta-950',
|
|
496
|
-
surface-medium: 'cta-75',
|
|
497
|
-
on-surface-medium: 'cta-900',
|
|
498
|
-
surface: 'cta-400',
|
|
499
|
-
on-surface: 'cta-400-contrast',
|
|
500
|
-
surface-hover: 'cta-500',
|
|
501
|
-
on-surface-hover: 'cta-500-contrast',
|
|
502
|
-
border: 'cta-300',
|
|
503
|
-
border-light: 'cta-100',
|
|
504
|
-
border-lighter: 'cta-75'
|
|
505
|
-
),
|
|
506
|
-
info: (
|
|
507
|
-
base: 'in-500',
|
|
508
|
-
default: 'in-600',
|
|
509
|
-
lighter: 'in-400',
|
|
510
|
-
on-lighter: 'in-400-contrast',
|
|
511
|
-
light: 'in-500',
|
|
512
|
-
on-light: 'in-500-contrast',
|
|
513
|
-
dark: 'in-800',
|
|
514
|
-
on-dark: 'in-800-contrast',
|
|
515
|
-
darker: 'in-900',
|
|
516
|
-
on-darker: 'in-900-contrast',
|
|
517
|
-
surface-light: 'in-75',
|
|
518
|
-
on-surface-light: 'in-600',
|
|
519
|
-
surface-light-hover: 'in-100',
|
|
520
|
-
on-surface-light-hover: 'in-800',
|
|
521
|
-
surface-medium: 'in-200',
|
|
522
|
-
on-surface-medium: 'in-950',
|
|
523
|
-
surface: 'in-600',
|
|
524
|
-
on-surface: 'in-600-contrast',
|
|
525
|
-
surface-hover: 'in-800',
|
|
526
|
-
on-surface-hover: 'in-800-contrast',
|
|
527
|
-
border: 'in-400',
|
|
528
|
-
border-light: 'in-300',
|
|
529
|
-
border-lighter: 'in-200'
|
|
530
|
-
),
|
|
531
|
-
success: (
|
|
532
|
-
base: 'su-700',
|
|
533
|
-
default: 'su-900',
|
|
534
|
-
lighter: 'su-700',
|
|
535
|
-
on-lighter: 'su-700-contrast',
|
|
536
|
-
light: 'su-800',
|
|
537
|
-
on-light: 'su-800-contrast',
|
|
538
|
-
dark: 'su-900',
|
|
539
|
-
on-dark: 'su-900-contrast',
|
|
540
|
-
darker: 'su-950',
|
|
541
|
-
on-darker: 'su-950-contrast',
|
|
542
|
-
surface-light: 'su-100',
|
|
543
|
-
on-surface-light: 'su-950',
|
|
544
|
-
surface-light-hover: 'su-200',
|
|
545
|
-
on-surface-light-hover: 'su-950',
|
|
546
|
-
surface-medium: 'su-300',
|
|
547
|
-
on-surface-medium: 'su-950',
|
|
548
|
-
surface: 'su-900',
|
|
549
|
-
on-surface: 'su-950-contrast',
|
|
550
|
-
surface-hover: 'su-950',
|
|
551
|
-
on-surface-hover: 'su-950-contrast',
|
|
552
|
-
border: 'su-600',
|
|
553
|
-
border-light: 'su-400',
|
|
554
|
-
border-lighter: 'su-300'
|
|
555
|
-
),
|
|
556
|
-
warning: (
|
|
557
|
-
base: 'wa-500',
|
|
558
|
-
default: 'wa-800',
|
|
559
|
-
lighter: 'wa-500',
|
|
560
|
-
on-lighter: 'wa-500-contrast',
|
|
561
|
-
light: 'wa-600',
|
|
562
|
-
on-light: 'wa-600-contrast',
|
|
563
|
-
dark: 'wa-900',
|
|
564
|
-
on-dark: 'wa-900-contrast',
|
|
565
|
-
darker: 'wa-950',
|
|
566
|
-
on-darker: 'wa-950-contrast',
|
|
567
|
-
surface-light: 'wa-50',
|
|
568
|
-
on-surface-light: 'wa-900',
|
|
569
|
-
surface-light-hover: 'wa-75',
|
|
570
|
-
on-surface-light-hover: 'wa-950',
|
|
571
|
-
surface-medium: 'wa-100',
|
|
572
|
-
on-surface-medium: 'wa-900',
|
|
573
|
-
surface: 'wa-500',
|
|
574
|
-
on-surface: 'wa-500-contrast',
|
|
575
|
-
surface-hover: 'wa-600',
|
|
576
|
-
on-surface-hover: 'wa-600-contrast',
|
|
577
|
-
border: 'wa-400',
|
|
578
|
-
border-light: 'wa-200',
|
|
579
|
-
border-lighter: 'wa-100'
|
|
580
|
-
),
|
|
581
|
-
danger: (
|
|
582
|
-
base: 'da-600',
|
|
583
|
-
default: 'da-600',
|
|
584
|
-
lighter: 'da-400',
|
|
585
|
-
on-lighter: 'da-400-contrast',
|
|
586
|
-
light: 'da-500',
|
|
587
|
-
on-light: 'da-500-contrast',
|
|
588
|
-
dark: 'da-700',
|
|
589
|
-
on-dark: 'da-700-contrast',
|
|
590
|
-
darker: 'da-800',
|
|
591
|
-
on-darker: 'da-800-contrast',
|
|
592
|
-
surface-light: 'da-75',
|
|
593
|
-
on-surface-light: 'da-700',
|
|
594
|
-
surface-light-hover: 'da-100',
|
|
595
|
-
on-surface-light-hover: 'da-900',
|
|
596
|
-
surface-medium: 'da-200',
|
|
597
|
-
on-surface-medium: 'da-900',
|
|
598
|
-
surface: 'da-600',
|
|
599
|
-
on-surface: 'da-600-contrast',
|
|
600
|
-
surface-hover: 'da-700',
|
|
601
|
-
on-surface-hover: 'da-700-contrast',
|
|
602
|
-
border: 'da-500',
|
|
603
|
-
border-light: 'da-300',
|
|
604
|
-
border-lighter: 'da-200'
|
|
605
|
-
),
|
|
606
|
-
);
|
|
607
|
-
|
|
608
186
|
// SHADOWS
|
|
609
187
|
|
|
610
|
-
$ecl-shadow-color: #
|
|
188
|
+
$ecl-shadow-color: #1c1c45 !default;
|
|
611
189
|
$ecl-shadow: (
|
|
612
|
-
1: (0 0 0.5px 0.5px rgba($ecl-shadow-color, 0.08), 0 6px 12px 0 rgba($ecl-shadow-color, 0.
|
|
613
|
-
2: (0 0 0.5px 0.5px rgba($ecl-shadow-color, 0.08), 0 10px
|
|
614
|
-
3: (0 0 0.5px 0.5px rgba($ecl-shadow-color, 0.08), 0
|
|
615
|
-
4: (0 0 0.5px 0.5px rgba($ecl-shadow-color, 0.08), 0
|
|
616
|
-
5: (0 0 0.5px 0.5px rgba($ecl-shadow-color, 0.08), 0
|
|
190
|
+
1: (0 0 0.5px 0.5px rgba($ecl-shadow-color, 0.08), 0 6px 12px 0 rgba($ecl-shadow-color, 0.06)),
|
|
191
|
+
2: (0 0 0.5px 0.5px rgba($ecl-shadow-color, 0.08), 0 10px 18px 0 rgba($ecl-shadow-color, 0.1)),
|
|
192
|
+
3: (0 0 0.5px 0.5px rgba($ecl-shadow-color, 0.08), 0 14px 24px 0 rgba($ecl-shadow-color, 0.12)),
|
|
193
|
+
4: (0 0 0.5px 0.5px rgba($ecl-shadow-color, 0.08), 0 18px 32px 0 rgba($ecl-shadow-color, 0.12)),
|
|
194
|
+
5: (0 0 0.5px 0.5px rgba($ecl-shadow-color, 0.08), 0 20px 40px 0 rgba($ecl-shadow-color, 0.14))
|
|
617
195
|
);
|
|
618
196
|
|
|
619
197
|
$box-shadow-map: (
|
|
@@ -625,229 +203,240 @@ $box-shadow-map: (
|
|
|
625
203
|
5: map.get($ecl-shadow, 5)
|
|
626
204
|
);
|
|
627
205
|
|
|
628
|
-
|
|
629
206
|
// TYPOGRAPHY
|
|
207
|
+
$font-size-list: ('2xs', 'xs', 's', 'm', 'l', 'xl', '2xl', '3xl', '4xl', '5xl', '6xl');
|
|
630
208
|
|
|
631
|
-
$font-size-
|
|
632
|
-
|
|
633
|
-
|
|
209
|
+
$font-size-map: (
|
|
210
|
+
'6xl': 2.5rem,
|
|
211
|
+
'5xl': 2.25rem,
|
|
212
|
+
'4xl': 2rem,
|
|
213
|
+
'3xl': 1.75rem,
|
|
214
|
+
'2xl': 1.5rem,
|
|
215
|
+
'xl': 1.25rem,
|
|
216
|
+
'l': 1.125rem,
|
|
217
|
+
'm': 1rem,
|
|
218
|
+
's': 0.875rem,
|
|
219
|
+
'xs': 0.75rem,
|
|
220
|
+
'2xs': 0.625rem
|
|
634
221
|
);
|
|
635
222
|
|
|
636
223
|
$font-line-height-map: (
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
5xl: 3.25rem,
|
|
647
|
-
6xl: 3.50rem,
|
|
648
|
-
2xs-compact: 0.75rem,
|
|
649
|
-
xs-compact: 1rem,
|
|
650
|
-
s-compact: 1rem,
|
|
651
|
-
m-compact: 1.25rem,
|
|
652
|
-
l-compact: 1.5rem,
|
|
653
|
-
xl-compact: 1.75rem,
|
|
654
|
-
2xl-compact: 2rem,
|
|
655
|
-
3xl-compact: 2.5rem,
|
|
656
|
-
4xl-compact: 2.75rem,
|
|
657
|
-
5xl-compact: 3rem,
|
|
658
|
-
6xl-compact: 3.25rem
|
|
224
|
+
'4xl': 3rem,
|
|
225
|
+
'3xl': 2.75rem,
|
|
226
|
+
'2xl': 2.5rem,
|
|
227
|
+
'xl': 2rem,
|
|
228
|
+
'l': 1.75rem,
|
|
229
|
+
'm': 1.5rem,
|
|
230
|
+
's': 1.25rem,
|
|
231
|
+
'xs': 1.125rem,
|
|
232
|
+
'2xs': 1rem
|
|
659
233
|
);
|
|
660
234
|
|
|
661
|
-
$font-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
235
|
+
$font-map: (
|
|
236
|
+
6xl: (
|
|
237
|
+
desktop: (
|
|
238
|
+
font-size: 6xl,
|
|
239
|
+
line-height: 4xl
|
|
240
|
+
),
|
|
241
|
+
tablet: (
|
|
242
|
+
font-size: 5xl,
|
|
243
|
+
line-height: 3xl
|
|
244
|
+
),
|
|
245
|
+
mobile: (
|
|
246
|
+
font-size: 4xl,
|
|
247
|
+
line-height: xl
|
|
248
|
+
),
|
|
249
|
+
mobile-xs: (
|
|
250
|
+
font-size: 3xl,
|
|
251
|
+
line-height: xl
|
|
252
|
+
)
|
|
253
|
+
),
|
|
254
|
+
5xl: (
|
|
255
|
+
desktop: (
|
|
256
|
+
font-size: 5xl,
|
|
257
|
+
line-height: 3xl
|
|
258
|
+
),
|
|
259
|
+
tablet: (
|
|
260
|
+
font-size: 4xl,
|
|
261
|
+
line-height: xl
|
|
262
|
+
),
|
|
263
|
+
mobile: (
|
|
264
|
+
font-size: 3xl,
|
|
265
|
+
line-height: xl
|
|
266
|
+
),
|
|
267
|
+
mobile-xs: (
|
|
268
|
+
font-size: 2xl,
|
|
269
|
+
line-height: l
|
|
270
|
+
)
|
|
271
|
+
),
|
|
272
|
+
4xl: (
|
|
273
|
+
desktop: (
|
|
274
|
+
font-size: 4xl,
|
|
275
|
+
line-height: xl
|
|
276
|
+
),
|
|
277
|
+
tablet: (
|
|
278
|
+
font-size: 3xl,
|
|
279
|
+
line-height: xl
|
|
280
|
+
),
|
|
281
|
+
mobile: (
|
|
282
|
+
font-size: 2xl,
|
|
283
|
+
line-height: l
|
|
284
|
+
),
|
|
285
|
+
mobile-xs: (
|
|
286
|
+
font-size: xl,
|
|
287
|
+
line-height: l
|
|
288
|
+
)
|
|
289
|
+
),
|
|
290
|
+
3xl: (
|
|
291
|
+
desktop: (
|
|
292
|
+
font-size: 3xl,
|
|
293
|
+
line-height: xl
|
|
294
|
+
),
|
|
295
|
+
tablet: (
|
|
296
|
+
font-size: 2xl,
|
|
297
|
+
line-height: xl
|
|
298
|
+
),
|
|
299
|
+
mobile: (
|
|
300
|
+
font-size: xl,
|
|
301
|
+
line-height: l
|
|
302
|
+
),
|
|
303
|
+
mobile-xs: (
|
|
304
|
+
font-size: l,
|
|
305
|
+
line-height: l
|
|
306
|
+
)
|
|
307
|
+
),
|
|
308
|
+
2xl: (
|
|
309
|
+
desktop: (
|
|
310
|
+
font-size: 2xl,
|
|
311
|
+
line-height: xl
|
|
312
|
+
),
|
|
313
|
+
tablet: (
|
|
314
|
+
font-size: xl,
|
|
315
|
+
line-height: l
|
|
316
|
+
),
|
|
317
|
+
mobile: (
|
|
318
|
+
font-size: l,
|
|
319
|
+
line-height: l
|
|
320
|
+
),
|
|
321
|
+
mobile-xs: (
|
|
322
|
+
font-size: l,
|
|
323
|
+
line-height: l
|
|
324
|
+
)
|
|
325
|
+
),
|
|
326
|
+
xl: (
|
|
327
|
+
desktop: (
|
|
328
|
+
font-size: xl,
|
|
329
|
+
line-height: xl
|
|
330
|
+
),
|
|
331
|
+
tablet: (
|
|
332
|
+
font-size: xl,
|
|
333
|
+
line-height: xl
|
|
334
|
+
),
|
|
335
|
+
mobile: (
|
|
336
|
+
font-size: l,
|
|
337
|
+
line-height: l
|
|
338
|
+
),
|
|
339
|
+
mobile-xs: (
|
|
340
|
+
font-size: m,
|
|
341
|
+
line-height: m
|
|
342
|
+
)
|
|
343
|
+
),
|
|
344
|
+
l: (
|
|
345
|
+
desktop: (
|
|
346
|
+
font-size: l,
|
|
347
|
+
line-height: l
|
|
348
|
+
),
|
|
349
|
+
tablet: (
|
|
350
|
+
font-size: l,
|
|
351
|
+
line-height: l
|
|
352
|
+
),
|
|
353
|
+
mobile: (
|
|
354
|
+
font-size: m,
|
|
355
|
+
line-height: m
|
|
356
|
+
),
|
|
357
|
+
mobile-xs: (
|
|
358
|
+
font-size: m,
|
|
359
|
+
line-height: m
|
|
360
|
+
)
|
|
361
|
+
),
|
|
362
|
+
m: (
|
|
363
|
+
desktop: (
|
|
364
|
+
font-size: m,
|
|
365
|
+
line-height: m
|
|
366
|
+
),
|
|
367
|
+
tablet: (
|
|
368
|
+
font-size: m,
|
|
369
|
+
line-height: m
|
|
370
|
+
),
|
|
371
|
+
mobile: (
|
|
372
|
+
font-size: m,
|
|
373
|
+
line-height: m
|
|
374
|
+
),
|
|
375
|
+
mobile-xs: (
|
|
376
|
+
font-size: m,
|
|
377
|
+
line-height: m
|
|
378
|
+
)
|
|
379
|
+
),
|
|
380
|
+
s: (
|
|
381
|
+
desktop: (
|
|
382
|
+
font-size: s,
|
|
383
|
+
line-height: s
|
|
384
|
+
),
|
|
385
|
+
tablet: (
|
|
386
|
+
font-size: s,
|
|
387
|
+
line-height: s
|
|
388
|
+
),
|
|
389
|
+
mobile: (
|
|
390
|
+
font-size: s,
|
|
391
|
+
line-height: s
|
|
392
|
+
),
|
|
393
|
+
mobile-xs: (
|
|
394
|
+
font-size: s,
|
|
395
|
+
line-height: s
|
|
396
|
+
)
|
|
397
|
+
),
|
|
398
|
+
xs: (
|
|
399
|
+
desktop: (
|
|
400
|
+
font-size: xs,
|
|
401
|
+
line-height: xs
|
|
402
|
+
),
|
|
403
|
+
tablet: (
|
|
404
|
+
font-size: xs,
|
|
405
|
+
line-height: xs
|
|
406
|
+
),
|
|
407
|
+
mobile: (
|
|
408
|
+
font-size: xs,
|
|
409
|
+
line-height: xs
|
|
410
|
+
),
|
|
411
|
+
mobile-xs: (
|
|
412
|
+
font-size: xs,
|
|
413
|
+
line-height: xs
|
|
414
|
+
)
|
|
415
|
+
),
|
|
416
|
+
2xs: (
|
|
417
|
+
desktop: (
|
|
418
|
+
font-size: 2xs,
|
|
419
|
+
line-height: 2xs
|
|
420
|
+
),
|
|
421
|
+
tablet: (
|
|
422
|
+
font-size: 2xs,
|
|
423
|
+
line-height: 2xs
|
|
424
|
+
),
|
|
425
|
+
mobile: (
|
|
426
|
+
font-size: 2xs,
|
|
427
|
+
line-height: 2xs
|
|
428
|
+
),
|
|
429
|
+
mobile-xs: (
|
|
430
|
+
font-size: 2xs,
|
|
431
|
+
line-height: 2xs
|
|
432
|
+
)
|
|
433
|
+
)
|
|
673
434
|
);
|
|
674
435
|
|
|
675
436
|
$font-weight-map: (
|
|
437
|
+
'light': 300,
|
|
676
438
|
'regular': 400,
|
|
677
439
|
'medium': 500,
|
|
678
440
|
'semi-bold': 600,
|
|
679
441
|
'bold': 700
|
|
680
442
|
);
|
|
681
|
-
|
|
682
|
-
// ecl font sizes for example, but driven by m = 18px base
|
|
683
|
-
|
|
684
|
-
// $ecl-font-size: (
|
|
685
|
-
// '10xl': 6rem,
|
|
686
|
-
// '9xl': 4.5rem,
|
|
687
|
-
// '8xl': 3.75rem,
|
|
688
|
-
// '7xl': 3.25rem,
|
|
689
|
-
// '6xl': 2.5rem,
|
|
690
|
-
// '5xl': 2.25rem,
|
|
691
|
-
// '4xl': 2rem,
|
|
692
|
-
// '3xl': 1.75rem,
|
|
693
|
-
// '2xl': 1.5rem,
|
|
694
|
-
// 'xl': 1.375rem,
|
|
695
|
-
// 'l': 1.25rem,
|
|
696
|
-
// 'm': 1.125rem,
|
|
697
|
-
// 's': 1rem,
|
|
698
|
-
// 'xs': 0.875rem,
|
|
699
|
-
// '2xs': 0.75rem
|
|
700
|
-
// );
|
|
701
|
-
|
|
702
|
-
// $ecl-line-height: (
|
|
703
|
-
// '10xl': 6.25rem,
|
|
704
|
-
// '9xl': 4.875rem,
|
|
705
|
-
// '8xl': 4.25rem,
|
|
706
|
-
// '7xl': 3.75rem,
|
|
707
|
-
// '6xl': 3.5rem,
|
|
708
|
-
// '5xl': 3.25rem,
|
|
709
|
-
// '4xl': 3rem,
|
|
710
|
-
// '3xl': 2.75rem,
|
|
711
|
-
// '2xl': 2.5rem,
|
|
712
|
-
// 'xl': 2.25rem,
|
|
713
|
-
// 'l': 2rem,
|
|
714
|
-
// 'm': 1.75rem,
|
|
715
|
-
// 's': 1.5rem,
|
|
716
|
-
// 'xs': 1.25rem,
|
|
717
|
-
// '2xs': 1rem,
|
|
718
|
-
// '3xs': 0.875rem,
|
|
719
|
-
// );
|
|
720
|
-
// $ecl-font: (
|
|
721
|
-
// '10xl': #{map.get($font-size, '10xl') + '/' + map.get($line-height, '10xl')}
|
|
722
|
-
// #{map.get($font-family, 'default')},
|
|
723
|
-
// '9xl': #{map.get($font-size, '9xl') + '/' + map.get($line-height, '9xl')}
|
|
724
|
-
// #{map.get($font-family, 'default')},
|
|
725
|
-
// '8xl': #{map.get($font-size, '8xl') + '/' + map.get($line-height, '8xl')}
|
|
726
|
-
// #{map.get($font-family, 'default')},
|
|
727
|
-
// '7xl': #{map.get($font-size, '7xl') + '/' + map.get($line-height, '7xl')}
|
|
728
|
-
// #{map.get($font-family, 'default')},
|
|
729
|
-
// '6xl': #{map.get($font-size, '6xl') + '/' + map.get($line-height, '4xl')}
|
|
730
|
-
// #{map.get($font-family, 'default')},
|
|
731
|
-
// '5xl': #{map.get($font-size, '5xl') + '/' + map.get($line-height, '4xl')}
|
|
732
|
-
// #{map.get($font-family, 'default')},
|
|
733
|
-
// '4xl': #{map.get($font-size, '4xl') + '/' + map.get($line-height, '3xl')}
|
|
734
|
-
// #{map.get($font-family, 'default')},
|
|
735
|
-
// '3xl': #{map.get($font-size, '3xl') + '/' + map.get($line-height, 'xl')}
|
|
736
|
-
// #{map.get($font-family, 'default')},
|
|
737
|
-
// '2xl': #{map.get($font-size, '2xl') + '/' + map.get($line-height, 'xl')}
|
|
738
|
-
// #{map.get($font-family, 'default')},
|
|
739
|
-
// 'xl': #{map.get($font-size, 'xl') + '/' + map.get($line-height, 'l')}
|
|
740
|
-
// #{map.get($font-family, 'default')},
|
|
741
|
-
// 'l': #{map.get($font-size, 'l') + '/' + map.get($line-height, 'm')}
|
|
742
|
-
// #{map.get($font-family, 'default')},
|
|
743
|
-
// 'm': #{map.get($font-size, 'm') + '/' + map.get($line-height, 'm')}
|
|
744
|
-
// #{map.get($font-family, 'default')},
|
|
745
|
-
// 's': #{map.get($font-size, 's') + '/' + map.get($line-height, 's')}
|
|
746
|
-
// #{map.get($font-family, 'default')},
|
|
747
|
-
// 'xs': #{map.get($font-size, 'xs') + '/' + map.get($line-height, 'xs')}
|
|
748
|
-
// #{map.get($font-family, 'default')},
|
|
749
|
-
// '2xs': #{map.get($font-size, '2xs') + '/' + map.get($line-height, '3xs')}
|
|
750
|
-
// #{map.get($font-family, 'default')}
|
|
751
|
-
// );
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
// based on new EDS specs, but not convenient, better to have a flat list of sizes rather than too much semantic and overlaps
|
|
755
|
-
|
|
756
|
-
// $font-map-responsive: (
|
|
757
|
-
// 'display': (
|
|
758
|
-
// 'm': (
|
|
759
|
-
// 'desktop': (
|
|
760
|
-
// 'size': 3rem,
|
|
761
|
-
// 'line-height': 3.5rem
|
|
762
|
-
// ),
|
|
763
|
-
// 'tablet': (
|
|
764
|
-
// 'size': 2.75rem,
|
|
765
|
-
// 'line-height': 3.25rem
|
|
766
|
-
// ),
|
|
767
|
-
// 'mobile': (
|
|
768
|
-
// 'size': 2rem,
|
|
769
|
-
// 'line-height': 2.25rem
|
|
770
|
-
// )
|
|
771
|
-
// )
|
|
772
|
-
// ),
|
|
773
|
-
// 'title': (
|
|
774
|
-
// 'xl': (
|
|
775
|
-
// 'desktop': (
|
|
776
|
-
// 'size': 2.5rem,
|
|
777
|
-
// 'line-height': 3rem
|
|
778
|
-
// ),
|
|
779
|
-
// 'tablet': (
|
|
780
|
-
// 'size': 2rem,
|
|
781
|
-
// 'line-height': 2.75rem
|
|
782
|
-
// ),
|
|
783
|
-
// 'mobile': (
|
|
784
|
-
// 'size': 1.75rem,
|
|
785
|
-
// 'line-height': 2.5rem
|
|
786
|
-
// )
|
|
787
|
-
// ),
|
|
788
|
-
// 'xs': (
|
|
789
|
-
// 'desktop': (
|
|
790
|
-
// 'size': 1.25rem,
|
|
791
|
-
// 'line-height': 1.75rem
|
|
792
|
-
// ),
|
|
793
|
-
// 'tablet': (
|
|
794
|
-
// 'size': 1.25rem,
|
|
795
|
-
// 'line-height': 1.75rem
|
|
796
|
-
// ),
|
|
797
|
-
// 'mobile': (
|
|
798
|
-
// 'size': 1.2rem,
|
|
799
|
-
// 'line-height': 1.5rem
|
|
800
|
-
// )
|
|
801
|
-
// )
|
|
802
|
-
// )
|
|
803
|
-
// );
|
|
804
|
-
|
|
805
|
-
// $font-map: (
|
|
806
|
-
// 'title': (
|
|
807
|
-
// '2xs': (
|
|
808
|
-
// 'size': 1rem,
|
|
809
|
-
// 'line-height': 1.5rem
|
|
810
|
-
// )
|
|
811
|
-
// ),
|
|
812
|
-
// 'card-title': (
|
|
813
|
-
// 'm': (
|
|
814
|
-
// 'size': 1.125rem,
|
|
815
|
-
// 'line-height': 1.5rem
|
|
816
|
-
// )
|
|
817
|
-
// ),
|
|
818
|
-
// 'label': (
|
|
819
|
-
// 'm': (
|
|
820
|
-
// 'size': 0.875rem,
|
|
821
|
-
// 'line-height': 1.25rem
|
|
822
|
-
// ),
|
|
823
|
-
// 'l': (
|
|
824
|
-
// 'size': 1rem,
|
|
825
|
-
// 'line-height': 1.5rem
|
|
826
|
-
// )
|
|
827
|
-
// ),
|
|
828
|
-
// 'body': (
|
|
829
|
-
// 's': (
|
|
830
|
-
// 'size': 0.875rem,
|
|
831
|
-
// 'line-height': 1.25rem
|
|
832
|
-
// ),
|
|
833
|
-
// 'm': (
|
|
834
|
-
// 'size': 1rem,
|
|
835
|
-
// 'line-height': 1.5rem
|
|
836
|
-
// ),
|
|
837
|
-
// 'l': (
|
|
838
|
-
// 'size': 1.25rem,
|
|
839
|
-
// 'line-height': 1.75rem
|
|
840
|
-
// ),
|
|
841
|
-
// 'xl': (
|
|
842
|
-
// 'size': 1.5rem,
|
|
843
|
-
// 'line-height': 2rem
|
|
844
|
-
// )
|
|
845
|
-
// ),
|
|
846
|
-
// 'microcopy': (
|
|
847
|
-
// 'm': (
|
|
848
|
-
// 'size': 0.75rem,
|
|
849
|
-
// 'line-height': 1rem
|
|
850
|
-
// )
|
|
851
|
-
// )
|
|
852
|
-
// );
|
|
853
|
-
|