@eui/styles 18.0.0-next.74 → 18.0.0-next.75
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/images/common/ion-avatar.svg +6 -0
- package/dist/base/00-reset/_module.scss +349 -0
- package/dist/base/01-base/_module.scss +3 -0
- package/dist/base/01-base/_variables.scss +33 -0
- package/dist/base/01-base/functions/_module.scss +1 -0
- package/dist/base/01-base/functions/_other.functions.scss +40 -0
- package/dist/base/01-base/mixins/_accessibility.mixins.scss +60 -0
- package/dist/base/01-base/mixins/_color.mixins.scss +0 -0
- package/dist/base/01-base/mixins/_icon-svg.mixins.scss +74 -0
- package/dist/base/01-base/mixins/_media.mixins.scss +26 -0
- package/dist/base/01-base/mixins/_module.scss +7 -0
- package/dist/base/01-base/mixins/_other.mixins.scss +5 -0
- package/dist/base/01-base/mixins/_state.mixins.scss +6 -0
- package/dist/base/01-base/mixins/animations/__hacks.scss +36 -0
- package/dist/base/01-base/mixins/animations/_bob.scss +32 -0
- package/dist/base/01-base/mixins/animations/_buzz.scss +54 -0
- package/dist/base/01-base/mixins/animations/_fade-in.scss +20 -0
- package/dist/base/01-base/mixins/animations/_fade-out.scss +20 -0
- package/dist/base/01-base/mixins/animations/_flip-in-y.scss +32 -0
- package/dist/base/01-base/mixins/animations/_jack-in-the-box.scss +26 -0
- package/dist/base/01-base/mixins/animations/_module.scss +48 -0
- package/dist/base/01-base/mixins/animations/_pop.scss +18 -0
- package/dist/base/01-base/mixins/animations/_pulsar.scss +24 -0
- package/dist/base/01-base/mixins/animations/_pulse.scss +21 -0
- package/dist/base/01-base/mixins/animations/_slide-in-down.scss +20 -0
- package/dist/base/01-base/mixins/animations/_slide-in-left.scss +19 -0
- package/dist/base/01-base/mixins/animations/_slide-in-right.scss +20 -0
- package/dist/base/01-base/mixins/animations/_slide-in-up.scss +20 -0
- package/dist/base/01-base/mixins/animations/_spin.scss +19 -0
- package/dist/base/01-base/mixins/animations/_wobble.scss +38 -0
- package/dist/base/02-tokens/_ecl/ec/color.scss +64 -0
- package/dist/base/02-tokens/_ecl/ec/form.scss +23 -0
- package/dist/base/02-tokens/_ecl/ec/icon.scss +20 -0
- package/dist/base/02-tokens/_ecl/ec/layout.scss +27 -0
- package/dist/base/02-tokens/_ecl/ec/media.scss +4 -0
- package/dist/base/02-tokens/_ecl/ec/shape.scss +28 -0
- package/dist/base/02-tokens/_ecl/ec/spacing.scss +26 -0
- package/dist/base/02-tokens/_ecl/ec/typography.scss +155 -0
- package/dist/base/02-tokens/_ecl/ec/z-index.scss +8 -0
- package/dist/base/02-tokens/_ecl/eu/color.scss +136 -0
- package/dist/base/02-tokens/_ecl/eu/form.scss +23 -0
- package/dist/base/02-tokens/_ecl/eu/icon.scss +20 -0
- package/dist/base/02-tokens/_ecl/eu/layout.scss +27 -0
- package/dist/base/02-tokens/_ecl/eu/media.scss +4 -0
- package/dist/base/02-tokens/_ecl/eu/shape.scss +66 -0
- package/dist/base/02-tokens/_ecl/eu/spacing.scss +22 -0
- package/dist/base/02-tokens/_ecl/eu/typography.scss +282 -0
- package/dist/base/02-tokens/_ecl/eu/z-index.scss +8 -0
- package/dist/base/02-tokens/_module.scss +11 -0
- package/dist/base/02-tokens/_opacity.scss +7 -0
- package/dist/base/02-tokens/_z-indexes.scss +28 -0
- package/dist/base/02-tokens/border-radius/_index.scss +1 -0
- package/dist/base/02-tokens/border-radius/theme-default.scss +19 -0
- package/dist/base/02-tokens/border-width/_index.scss +1 -0
- package/dist/base/02-tokens/border-width/theme-default.scss +13 -0
- package/dist/base/02-tokens/colors/_index.scss +6 -0
- package/dist/base/02-tokens/colors/functions.scss +273 -0
- package/dist/base/02-tokens/colors/theme-dark.scss +10 -0
- package/dist/base/02-tokens/colors/theme-default.scss +120 -0
- package/dist/base/02-tokens/colors/theme-ecl-eu.scss +115 -0
- package/dist/base/02-tokens/colors/theme-eui-legacy-hc.scss +36 -0
- package/dist/base/02-tokens/colors/theme-eui-legacy.scss +92 -0
- package/dist/base/02-tokens/icons/_index.scss +1 -0
- package/dist/base/02-tokens/icons/theme-default.scss +14 -0
- package/dist/base/02-tokens/layout/_index.scss +1 -0
- package/dist/base/02-tokens/layout/theme-default.scss +35 -0
- package/dist/base/02-tokens/shadows/_index.scss +1 -0
- package/dist/base/02-tokens/shadows/theme-default.scss +28 -0
- package/dist/base/02-tokens/spacings/_index.scss +2 -0
- package/dist/base/02-tokens/spacings/theme-default.scss +33 -0
- package/dist/base/02-tokens/spacings/theme-ecl-eu.scss +16 -0
- package/dist/base/02-tokens/typography/_index.scss +2 -0
- package/dist/base/02-tokens/typography/theme-default.scss +210 -0
- package/dist/base/02-tokens/typography/theme-ecl-eu.scss +240 -0
- package/dist/base/03-vars/_internal-icons.vars.scss +7 -0
- package/dist/base/03-vars/_module-dark.scss +1 -0
- package/dist/base/03-vars/_module-ecl-eu.scss +4 -0
- package/dist/base/03-vars/_module-eui-legacy-hc.scss +1 -0
- package/dist/base/03-vars/_module-eui-legacy.scss +27 -0
- package/dist/base/03-vars/_module.scss +25 -0
- package/dist/base/03-vars/_other.vars.scss +27 -0
- package/dist/base/03-vars/_tokens.vars.scss +26 -0
- package/dist/base/03-vars/border-radius/theme-default-base.scss +5 -0
- package/dist/base/03-vars/border-radius/theme-default-context.scss +5 -0
- package/dist/base/03-vars/border-width/theme-default-base.scss +5 -0
- package/dist/base/03-vars/border-width/theme-default-context.scss +5 -0
- package/dist/base/03-vars/colors/theme-dark-base.scss +9 -0
- package/dist/base/03-vars/colors/theme-default-base.scss +11 -0
- package/dist/base/03-vars/colors/theme-default-context.scss +29 -0
- package/dist/base/03-vars/colors/theme-ecl-eu-base.scss +9 -0
- package/dist/base/03-vars/colors/theme-eui-legacy-base.scss +9 -0
- package/dist/base/03-vars/colors/theme-eui-legacy-context.scss +23 -0
- package/dist/base/03-vars/colors/theme-eui-legacy-hc-base.scss +9 -0
- package/dist/base/03-vars/layout/theme-default-base.scss +5 -0
- package/dist/base/03-vars/layout/theme-default-context.scss +5 -0
- package/dist/base/03-vars/shadows/theme-default-base.scss +5 -0
- package/dist/base/03-vars/shadows/theme-default-context.scss +5 -0
- package/dist/base/03-vars/spacings/theme-default-base.scss +5 -0
- package/dist/base/03-vars/spacings/theme-default-context.scss +5 -0
- package/dist/base/03-vars/spacings/theme-ecl-eu-base.scss +5 -0
- package/dist/base/03-vars/typography/theme-default-base.scss +9 -0
- package/dist/base/03-vars/typography/theme-default-context.scss +24 -0
- package/dist/base/03-vars/typography/theme-ecl-eu-base.scss +9 -0
- package/dist/base/03-vars/typography/theme-ecl-eu-context.scss +15 -0
- package/dist/base/04-elements/_body.scss +16 -0
- package/dist/base/04-elements/_html.scss +6 -0
- package/dist/base/04-elements/_module.scss +3 -0
- package/dist/base/04-elements/_shared.scss +82 -0
- package/dist/base/05-assets/_module-icons-flags.scss +1 -0
- package/dist/base/05-assets/_module-icons-svg.scss +1 -0
- package/dist/base/05-assets/flags/_icons-generics.scss +87 -0
- package/dist/base/05-assets/flags/_icons.scss +1546 -0
- package/dist/base/05-assets/flags/_module.scss +2 -0
- package/dist/base/05-assets/icons-svg/_icons-generics.scss +9 -0
- package/dist/base/05-assets/icons-svg/_module.scss +1 -0
- package/dist/base/99-utilities/_module-extras.scss +1 -0
- package/dist/base/99-utilities/_module-legacy.scss +2 -0
- package/dist/base/99-utilities/_module.scss +19 -0
- package/dist/base/99-utilities/others/_eui-u-anim.scss +85 -0
- package/dist/base/99-utilities/others/_eui-u-border-states.scss +35 -0
- package/dist/base/99-utilities/others/_eui-u-cursors.scss +43 -0
- package/dist/base/99-utilities/others/_eui-u-display.scss +39 -0
- package/dist/base/99-utilities/others/_eui-u-flex.scss +121 -0
- package/dist/base/99-utilities/others/_eui-u-overflow.scss +11 -0
- package/dist/base/99-utilities/others/_eui-u-position.scss +11 -0
- package/dist/base/99-utilities/others/_eui-u-states.scss +9 -0
- package/dist/base/99-utilities/others/_eui-u-visibility.scss +7 -0
- package/dist/base/99-utilities/others/_eui-u-width.scss +15 -0
- package/dist/base/99-utilities/tokens/_colors-default-full-palettes.scss +12 -0
- package/dist/base/99-utilities/tokens/_colors-default.scss +48 -0
- package/dist/base/99-utilities/tokens/_colors-legacy.scss +37 -0
- package/dist/base/99-utilities/tokens/_margins.scss +38 -0
- package/dist/base/99-utilities/tokens/_opacity.scss +5 -0
- package/dist/base/99-utilities/tokens/_paddings.scss +31 -0
- package/dist/base/99-utilities/tokens/_shadows.scss +5 -0
- package/dist/base/99-utilities/tokens/_spacings.scss +6 -0
- package/dist/base/99-utilities/tokens/_typography-legacy.scss +25 -0
- package/dist/base/99-utilities/tokens/_typography.scss +237 -0
- package/dist/base/99-utilities/tokens/_z-indexes.scss +5 -0
- package/dist/base/_base.scss +2 -0
- package/dist/eui-base.css +1 -1
- package/dist/eui-base.css.map +1 -1
- package/dist/eui-print.css +1 -1
- package/dist/eui-print.css.map +1 -1
- package/dist/eui-showcase-all.css +2 -2
- package/dist/eui-showcase-all.css.map +1 -1
- package/dist/eui-theme-eui-legacy.css +1 -1
- package/dist/eui-theme-eui-legacy.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/images/common/default-avatar.svg +0 -49
- package/dist/assets/images/common/eui-logo.png +0 -0
- package/dist/assets/images/common/eui-mini-logo.png +0 -0
- package/dist/assets/images/common/profile-avatar.png +0 -0
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
// Screen
|
|
4
|
+
$font-family: (
|
|
5
|
+
'default': (
|
|
6
|
+
arial,
|
|
7
|
+
sans-serif,
|
|
8
|
+
),
|
|
9
|
+
) !default;
|
|
10
|
+
$font-size: (
|
|
11
|
+
'2xs': 0.625rem,
|
|
12
|
+
'xs': 0.75rem,
|
|
13
|
+
's': 0.875rem,
|
|
14
|
+
'm': 1rem,
|
|
15
|
+
'l': 1.125rem,
|
|
16
|
+
'xl': 1.25rem,
|
|
17
|
+
'2xl': 1.5rem,
|
|
18
|
+
'3xl': 1.75rem,
|
|
19
|
+
'4xl': 2rem,
|
|
20
|
+
'5xl': 2.25rem,
|
|
21
|
+
'6xl': 2.625rem,
|
|
22
|
+
) !default;
|
|
23
|
+
$line-height: (
|
|
24
|
+
'2xs': 1rem,
|
|
25
|
+
'xs': 1rem,
|
|
26
|
+
's': 1rem,
|
|
27
|
+
'm': 1.25rem,
|
|
28
|
+
'l': 1.5rem,
|
|
29
|
+
'xl': 1.5rem,
|
|
30
|
+
'2xl': 1.75rem,
|
|
31
|
+
'3xl': 2rem,
|
|
32
|
+
'4xl': 2.5rem,
|
|
33
|
+
'5xl': 2.75rem,
|
|
34
|
+
'6xl': 3.25rem,
|
|
35
|
+
) !default;
|
|
36
|
+
$line-height-prolonged: (
|
|
37
|
+
'xs': 1.25rem,
|
|
38
|
+
's': 1.25rem,
|
|
39
|
+
'm': 1.5rem,
|
|
40
|
+
'l': 1.75rem,
|
|
41
|
+
'xl': 1.75rem,
|
|
42
|
+
) !default;
|
|
43
|
+
$font-weight: (
|
|
44
|
+
'regular': 400,
|
|
45
|
+
'bold': 700,
|
|
46
|
+
) !default;
|
|
47
|
+
$font: (
|
|
48
|
+
'2xs': normal normal map.get($font-weight, 'regular') #{map.get(
|
|
49
|
+
$font-size,
|
|
50
|
+
'2xs'
|
|
51
|
+
) + '/' + map.get($line-height, '2xs')} #{map.get($font-family, 'default')},
|
|
52
|
+
'xs': normal normal map.get($font-weight, 'regular') #{map.get(
|
|
53
|
+
$font-size,
|
|
54
|
+
'xs'
|
|
55
|
+
) + '/' + map.get($line-height, 'xs')} #{map.get($font-family, 'default')},
|
|
56
|
+
's': normal normal map.get($font-weight, 'regular') #{map.get($font-size, 's') +
|
|
57
|
+
'/' + map.get($line-height, 's')} #{map.get($font-family, 'default')},
|
|
58
|
+
'm': normal normal map.get($font-weight, 'regular') #{map.get($font-size, 'm') +
|
|
59
|
+
'/' + map.get($line-height, 'm')} #{map.get($font-family, 'default')},
|
|
60
|
+
'l': normal normal map.get($font-weight, 'regular') #{map.get($font-size, 'l') +
|
|
61
|
+
'/' + map.get($line-height, 'l')} #{map.get($font-family, 'default')},
|
|
62
|
+
'xl': normal normal map.get($font-weight, 'regular') #{map.get(
|
|
63
|
+
$font-size,
|
|
64
|
+
'xl'
|
|
65
|
+
) + '/' + map.get($line-height, 'xl')} #{map.get($font-family, 'default')},
|
|
66
|
+
'2xl': normal normal map.get($font-weight, 'regular') #{map.get(
|
|
67
|
+
$font-size,
|
|
68
|
+
'2xl'
|
|
69
|
+
) + '/' + map.get($line-height, '2xl')} #{map.get($font-family, 'default')},
|
|
70
|
+
'3xl': normal normal map.get($font-weight, 'regular') #{map.get(
|
|
71
|
+
$font-size,
|
|
72
|
+
'3xl'
|
|
73
|
+
) + '/' + map.get($line-height, '3xl')} #{map.get($font-family, 'default')},
|
|
74
|
+
'4xl': normal normal map.get($font-weight, 'regular') #{map.get(
|
|
75
|
+
$font-size,
|
|
76
|
+
'4xl'
|
|
77
|
+
) + '/' + map.get($line-height, '4xl')} #{map.get($font-family, 'default')},
|
|
78
|
+
'5xl': normal normal map.get($font-weight, 'regular') #{map.get(
|
|
79
|
+
$font-size,
|
|
80
|
+
'5xl'
|
|
81
|
+
) + '/' + map.get($line-height, '5xl')} #{map.get($font-family, 'default')},
|
|
82
|
+
'6xl': normal normal map.get($font-weight, 'regular') #{map.get(
|
|
83
|
+
$font-size,
|
|
84
|
+
'6xl'
|
|
85
|
+
) + '/' + map.get($line-height, '6xl')} #{map.get($font-family, 'default')},
|
|
86
|
+
) !default;
|
|
87
|
+
$font-prolonged: (
|
|
88
|
+
'xs': normal normal map.get($font-weight, 'regular') #{map.get(
|
|
89
|
+
$font-size,
|
|
90
|
+
'xs'
|
|
91
|
+
) + '/' + map.get($line-height-prolonged, 'xs')} #{map.get(
|
|
92
|
+
$font-family,
|
|
93
|
+
'default'
|
|
94
|
+
)},
|
|
95
|
+
's': normal normal map.get($font-weight, 'regular') #{map.get($font-size, 's') +
|
|
96
|
+
'/' + map.get($line-height-prolonged, 's')} #{map.get(
|
|
97
|
+
$font-family,
|
|
98
|
+
'default'
|
|
99
|
+
)},
|
|
100
|
+
'm': normal normal map.get($font-weight, 'regular') #{map.get($font-size, 'm') +
|
|
101
|
+
'/' + map.get($line-height-prolonged, 'm')} #{map.get(
|
|
102
|
+
$font-family,
|
|
103
|
+
'default'
|
|
104
|
+
)},
|
|
105
|
+
'l': normal normal map.get($font-weight, 'regular') #{map.get($font-size, 'l') +
|
|
106
|
+
'/' + map.get($line-height-prolonged, 'l')} #{map.get(
|
|
107
|
+
$font-family,
|
|
108
|
+
'default'
|
|
109
|
+
)},
|
|
110
|
+
'xl': normal normal map.get($font-weight, 'regular') #{map.get(
|
|
111
|
+
$font-size,
|
|
112
|
+
'xl'
|
|
113
|
+
) + '/' + map.get($line-height-prolonged, 'xl')} #{map.get(
|
|
114
|
+
$font-family,
|
|
115
|
+
'default'
|
|
116
|
+
)},
|
|
117
|
+
) !default;
|
|
118
|
+
|
|
119
|
+
// Print
|
|
120
|
+
$font-family-print: (
|
|
121
|
+
'default': (
|
|
122
|
+
verdana,
|
|
123
|
+
sans-serif,
|
|
124
|
+
),
|
|
125
|
+
'alt': (
|
|
126
|
+
arial,
|
|
127
|
+
sans-serif,
|
|
128
|
+
),
|
|
129
|
+
) !default;
|
|
130
|
+
$font-size-print: (
|
|
131
|
+
'2xs': 6pt,
|
|
132
|
+
'xs': 7.5pt,
|
|
133
|
+
's': 9pt,
|
|
134
|
+
'm': 10.5pt,
|
|
135
|
+
'l': 12pt,
|
|
136
|
+
'xl': 13.5pt,
|
|
137
|
+
'2xl': 15pt,
|
|
138
|
+
'3xl': 18pt,
|
|
139
|
+
'4xl': 21pt,
|
|
140
|
+
'5xl': 24pt,
|
|
141
|
+
'6xl': 27pt,
|
|
142
|
+
) !default;
|
|
143
|
+
$line-height-print: (
|
|
144
|
+
'2xs': 10pt,
|
|
145
|
+
'xs': 12pt,
|
|
146
|
+
's': 12pt,
|
|
147
|
+
'm': 12pt,
|
|
148
|
+
'l': 15pt,
|
|
149
|
+
'xl': 18pt,
|
|
150
|
+
'2xl': 18pt,
|
|
151
|
+
'3xl': 21pt,
|
|
152
|
+
'4xl': 24pt,
|
|
153
|
+
'5xl': 30pt,
|
|
154
|
+
'6xl': 33pt,
|
|
155
|
+
) !default;
|
|
156
|
+
$line-height-prolonged-print: (
|
|
157
|
+
'xs': 15pt,
|
|
158
|
+
's': 15pt,
|
|
159
|
+
'm': 15pt,
|
|
160
|
+
'l': 18pt,
|
|
161
|
+
'xl': 21pt,
|
|
162
|
+
) !default;
|
|
163
|
+
$font-weight-print: (
|
|
164
|
+
'regular': 400,
|
|
165
|
+
'bold': 600,
|
|
166
|
+
) !default;
|
|
167
|
+
$font-print: (
|
|
168
|
+
'2xs': normal normal map.get($font-weight-print, 'regular') #{map.get(
|
|
169
|
+
$font-size-print,
|
|
170
|
+
'2xs'
|
|
171
|
+
) + '/' + map.get($line-height-print, '2xs')} #{map.get(
|
|
172
|
+
$font-family-print,
|
|
173
|
+
'default'
|
|
174
|
+
)},
|
|
175
|
+
'xs': normal normal map.get($font-weight-print, 'regular') #{map.get(
|
|
176
|
+
$font-size-print,
|
|
177
|
+
'xs'
|
|
178
|
+
) + '/' + map.get($line-height-print, 'xs')} #{map.get(
|
|
179
|
+
$font-family-print,
|
|
180
|
+
'default'
|
|
181
|
+
)},
|
|
182
|
+
's': normal normal map.get($font-weight-print, 'regular') #{map.get(
|
|
183
|
+
$font-size-print,
|
|
184
|
+
's'
|
|
185
|
+
) + '/' + map.get($line-height-print, 's')} #{map.get(
|
|
186
|
+
$font-family-print,
|
|
187
|
+
'default'
|
|
188
|
+
)},
|
|
189
|
+
'm': normal normal map.get($font-weight-print, 'regular') #{map.get(
|
|
190
|
+
$font-size-print,
|
|
191
|
+
'm'
|
|
192
|
+
) + '/' + map.get($line-height-print, 'm')} #{map.get(
|
|
193
|
+
$font-family-print,
|
|
194
|
+
'default'
|
|
195
|
+
)},
|
|
196
|
+
'l': normal normal map.get($font-weight-print, 'regular') #{map.get(
|
|
197
|
+
$font-size-print,
|
|
198
|
+
'l'
|
|
199
|
+
) + '/' + map.get($line-height-print, 'l')} #{map.get(
|
|
200
|
+
$font-family-print,
|
|
201
|
+
'default'
|
|
202
|
+
)},
|
|
203
|
+
'xl': normal normal map.get($font-weight-print, 'regular') #{map.get(
|
|
204
|
+
$font-size-print,
|
|
205
|
+
'xl'
|
|
206
|
+
) + '/' + map.get($line-height-print, 'xl')} #{map.get(
|
|
207
|
+
$font-family-print,
|
|
208
|
+
'default'
|
|
209
|
+
)},
|
|
210
|
+
'2xl': normal normal map.get($font-weight-print, 'regular') #{map.get(
|
|
211
|
+
$font-size-print,
|
|
212
|
+
'2xl'
|
|
213
|
+
) + '/' + map.get($line-height-print, '2xl')} #{map.get(
|
|
214
|
+
$font-family-print,
|
|
215
|
+
'default'
|
|
216
|
+
)},
|
|
217
|
+
'3xl': normal normal map.get($font-weight-print, 'regular') #{map.get(
|
|
218
|
+
$font-size-print,
|
|
219
|
+
'3xl'
|
|
220
|
+
) + '/' + map.get($line-height-print, '3xl')} #{map.get(
|
|
221
|
+
$font-family-print,
|
|
222
|
+
'default'
|
|
223
|
+
)},
|
|
224
|
+
'4xl': normal normal map.get($font-weight-print, 'regular') #{map.get(
|
|
225
|
+
$font-size-print,
|
|
226
|
+
'4xl'
|
|
227
|
+
) + '/' + map.get($line-height-print, '4xl')} #{map.get(
|
|
228
|
+
$font-family-print,
|
|
229
|
+
'default'
|
|
230
|
+
)},
|
|
231
|
+
'5xl': normal normal map.get($font-weight-print, 'regular') #{map.get(
|
|
232
|
+
$font-size-print,
|
|
233
|
+
'5xl'
|
|
234
|
+
) + '/' + map.get($line-height-print, '5xl')} #{map.get(
|
|
235
|
+
$font-family-print,
|
|
236
|
+
'default'
|
|
237
|
+
)},
|
|
238
|
+
'6xl': normal normal map.get($font-weight-print, 'regular') #{map.get(
|
|
239
|
+
$font-size-print,
|
|
240
|
+
'6xl'
|
|
241
|
+
) + '/' + map.get($line-height-print, '6xl')} #{map.get(
|
|
242
|
+
$font-family-print,
|
|
243
|
+
'default'
|
|
244
|
+
)},
|
|
245
|
+
) !default;
|
|
246
|
+
$font-prolonged-print: (
|
|
247
|
+
'xs': normal normal map.get($font-weight-print, 'regular') #{map.get(
|
|
248
|
+
$font-size-print,
|
|
249
|
+
'xs'
|
|
250
|
+
) + '/' + map.get($line-height-prolonged-print, 'xs')} #{map.get(
|
|
251
|
+
$font-family,
|
|
252
|
+
'default'
|
|
253
|
+
)},
|
|
254
|
+
's': normal normal map.get($font-weight-print, 'regular') #{map.get(
|
|
255
|
+
$font-size-print,
|
|
256
|
+
's'
|
|
257
|
+
) + '/' + map.get($line-height-prolonged-print, 's')} #{map.get(
|
|
258
|
+
$font-family,
|
|
259
|
+
'default'
|
|
260
|
+
)},
|
|
261
|
+
'm': normal normal map.get($font-weight-print, 'regular') #{map.get(
|
|
262
|
+
$font-size-print,
|
|
263
|
+
'm'
|
|
264
|
+
) + '/' + map.get($line-height-prolonged-print, 'm')} #{map.get(
|
|
265
|
+
$font-family,
|
|
266
|
+
'default'
|
|
267
|
+
)},
|
|
268
|
+
'l': normal normal map.get($font-weight-print, 'regular') #{map.get(
|
|
269
|
+
$font-size-print,
|
|
270
|
+
'l'
|
|
271
|
+
) + '/' + map.get($line-height-prolonged-print, 'l')} #{map.get(
|
|
272
|
+
$font-family,
|
|
273
|
+
'default'
|
|
274
|
+
)},
|
|
275
|
+
'xl': normal normal map.get($font-weight-print, 'regular') #{map.get(
|
|
276
|
+
$font-size-print,
|
|
277
|
+
'xl'
|
|
278
|
+
) + '/' + map.get($line-height-prolonged-print, 'xl')} #{map.get(
|
|
279
|
+
$font-family,
|
|
280
|
+
'default'
|
|
281
|
+
)},
|
|
282
|
+
) !default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@import 'colors/index';
|
|
2
|
+
@import 'spacings/index';
|
|
3
|
+
@import 'typography/index';
|
|
4
|
+
@import 'icons/index';
|
|
5
|
+
@import 'border-radius/index';
|
|
6
|
+
@import 'border-width/index';
|
|
7
|
+
@import 'shadows/index';
|
|
8
|
+
@import 'layout/index';
|
|
9
|
+
|
|
10
|
+
@import 'z-indexes';
|
|
11
|
+
@import 'opacity';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
$eui-base-tokens-z-indexes: (
|
|
2
|
+
auto: auto,
|
|
3
|
+
zero: 0,
|
|
4
|
+
root: 1,
|
|
5
|
+
input-maxlength: 2,
|
|
6
|
+
clearable-icon: 3,
|
|
7
|
+
breadcrumb: 9,
|
|
8
|
+
header: 10,
|
|
9
|
+
top-message: 12,
|
|
10
|
+
nav: 15,
|
|
11
|
+
loading-indicator: 20,
|
|
12
|
+
cdk-overlay-pane: 999,
|
|
13
|
+
logo: 1000,
|
|
14
|
+
sticky: 1040,
|
|
15
|
+
sidebar: 1044,
|
|
16
|
+
overlay: 1045,
|
|
17
|
+
btn-floating: 1046,
|
|
18
|
+
highlighted: 1047,
|
|
19
|
+
footer-action-bar: 1048,
|
|
20
|
+
modal-backdrop: 1049,
|
|
21
|
+
modal: 1050,
|
|
22
|
+
menu: 1060,
|
|
23
|
+
tooltip: 1070,
|
|
24
|
+
max: 9999,
|
|
25
|
+
cdk-overlay-container: 10000,
|
|
26
|
+
block-document: 10010,
|
|
27
|
+
growl-message: 99999
|
|
28
|
+
);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import 'theme-default';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@use '../_ecl/ec/shape' as EclEcShape;
|
|
2
|
+
|
|
3
|
+
$eui-base-tokens-border-radius: (
|
|
4
|
+
'none': 0,
|
|
5
|
+
's': map-get(EclEcShape.$border-radius, 's'),
|
|
6
|
+
'm': map-get(EclEcShape.$border-radius, 'm'),
|
|
7
|
+
'l': map-get(EclEcShape.$border-radius, 'l'),
|
|
8
|
+
'xl': map-get(EclEcShape.$border-radius, 'xl'),
|
|
9
|
+
'max': 999px,
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
$eui-base-context-border-radius: (
|
|
13
|
+
'none': 'none',
|
|
14
|
+
's': 's',
|
|
15
|
+
'm': 'm',
|
|
16
|
+
'l': 'l',
|
|
17
|
+
'xl': 'xl',
|
|
18
|
+
'max': 'max'
|
|
19
|
+
);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import 'theme-default';
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
|
|
3
|
+
@function getColorVariant($color, $variant: 100) {
|
|
4
|
+
@if ($variant < 100) {
|
|
5
|
+
@return mix(#ffffff, $color, (100 - $variant) * 1%);
|
|
6
|
+
} @else {
|
|
7
|
+
@return mix(#000000, $color, ($variant - 100) * 1%);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@function getPaletteContext($baseColor, $overrideMap: false, $neutral: false) {
|
|
12
|
+
$shadeDefs: (
|
|
13
|
+
160, 140, 130, 120, 110, 100, 80, 60, 40, 20, 10, 5, 0
|
|
14
|
+
);
|
|
15
|
+
@if $neutral {
|
|
16
|
+
$shadeDefs: (
|
|
17
|
+
160, 140, 130, 120, 110, 100, 80, 60, 40, 20, 10, 5, 2, 0
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
$paletteMap: ();
|
|
21
|
+
|
|
22
|
+
@each $shade in $shadeDefs {
|
|
23
|
+
$value: getColorVariant($baseColor, $shade);
|
|
24
|
+
|
|
25
|
+
@if $overrideMap {
|
|
26
|
+
$overrideShade: map-get($overrideMap, $shade);
|
|
27
|
+
@if $overrideShade {
|
|
28
|
+
$value: $overrideShade;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
$paletteMap: map-merge(
|
|
33
|
+
$paletteMap,
|
|
34
|
+
(
|
|
35
|
+
#{$shade}: $value
|
|
36
|
+
)
|
|
37
|
+
)
|
|
38
|
+
}
|
|
39
|
+
@return $paletteMap;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
@function getPaletteLegacy($baseColor, $overrideMap: false, $neutral: false) {
|
|
44
|
+
$shadeDefs: (
|
|
45
|
+
140, 130, 120, 110, 100, 75, 50, 25, 10, 5, 0
|
|
46
|
+
);
|
|
47
|
+
@if $neutral {
|
|
48
|
+
$shadeDefs: (
|
|
49
|
+
110, 100, 90, 80, 75, 50, 25, 20, 15, 10, 5, 2, 0
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
$paletteMap: ();
|
|
53
|
+
|
|
54
|
+
@each $shade in $shadeDefs {
|
|
55
|
+
$value: getColorVariant($baseColor, $shade);
|
|
56
|
+
|
|
57
|
+
@if $overrideMap {
|
|
58
|
+
$overrideShade: map-get($overrideMap, $shade);
|
|
59
|
+
@if $overrideShade {
|
|
60
|
+
$value: $overrideShade;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
$paletteMap: map-merge(
|
|
65
|
+
$paletteMap,
|
|
66
|
+
(
|
|
67
|
+
#{$shade}: $value
|
|
68
|
+
)
|
|
69
|
+
)
|
|
70
|
+
}
|
|
71
|
+
@return $paletteMap;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
@function mapReverseValues($map) {
|
|
76
|
+
$keys: map-keys($map);
|
|
77
|
+
$map-reversed: ();
|
|
78
|
+
|
|
79
|
+
@for $i from length($keys) through 1 {
|
|
80
|
+
$currentPos: calc(length($keys) - $i + 1);
|
|
81
|
+
|
|
82
|
+
$map-reversed: map-merge(
|
|
83
|
+
$map-reversed,
|
|
84
|
+
(nth($keys, $currentPos): map-get($map, nth($keys, $i)))
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
@return $map-reversed;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@function toRGB($color) {
|
|
91
|
+
@return "rgb(" + red($color) + ", " + green($color) + ", " + blue($color) +
|
|
92
|
+
")";
|
|
93
|
+
}
|
|
94
|
+
@function getContrast($color) {
|
|
95
|
+
$color-brightness: round(
|
|
96
|
+
(red($color) * 299) + (green($color) * 587) +
|
|
97
|
+
math.div((blue($color) * 114), 1000)
|
|
98
|
+
);
|
|
99
|
+
$light-color: round(
|
|
100
|
+
(red(#fff) * 299) + (green(#fff) * 587) +
|
|
101
|
+
math.div((blue(#fff) * 114), 1000)
|
|
102
|
+
);
|
|
103
|
+
@if abs($color-brightness) < math.div($light-color, 1.7) {
|
|
104
|
+
@return #ffffff;
|
|
105
|
+
} @else {
|
|
106
|
+
@return #000000;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@function col_r($color) {
|
|
111
|
+
@if $color <= 0.03928 {
|
|
112
|
+
@return $color / 12.92;
|
|
113
|
+
} @else {
|
|
114
|
+
@return pow((($color + 0.055) / 1.055), (2.4));
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@function getContrastNew($bgColor, $lightColor: #fff, $darkColor: #404040) {
|
|
119
|
+
$r: red($bgColor);
|
|
120
|
+
$g: green($bgColor);
|
|
121
|
+
$b: blue($bgColor);
|
|
122
|
+
$ui_r: $r / 255;
|
|
123
|
+
$ui_g: $g / 255;
|
|
124
|
+
$ui_b: $b / 255;
|
|
125
|
+
|
|
126
|
+
$ui_r_c: col_r($ui_r);
|
|
127
|
+
$ui_g_c: col_r($ui_g);
|
|
128
|
+
$ui_b_c: col_r($ui_b);
|
|
129
|
+
|
|
130
|
+
$L: (0.2126 * $ui_r_c) + (0.7152 * $ui_g_c) + (0.0722 * $ui_b_c);
|
|
131
|
+
@if ($L > 0.179) {
|
|
132
|
+
@return $darkColor;
|
|
133
|
+
} @else {
|
|
134
|
+
@return $lightColor;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
// method 1 check here : very accurate contrast compared to chrome extension contrast checker tool
|
|
140
|
+
// https://gist.github.com/isGabe/8959422
|
|
141
|
+
|
|
142
|
+
@function color_luminance($color) {
|
|
143
|
+
// Adapted from: https://github.com/LeaVerou/contrast-ratio/blob/gh-pages/color.js
|
|
144
|
+
// Formula: http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
|
|
145
|
+
$rgba: red($color), green($color), blue($color);
|
|
146
|
+
$rgba2: ();
|
|
147
|
+
|
|
148
|
+
@for $i from 1 through 3 {
|
|
149
|
+
$rgb: nth($rgba, $i);
|
|
150
|
+
$rgb: calc($rgb / 255);
|
|
151
|
+
|
|
152
|
+
$rgb: if($rgb < .03928, calc($rgb / 12.92), math.pow(math.div($rgb + .055, 1.055), 2.4));
|
|
153
|
+
|
|
154
|
+
$rgba2: append($rgba2, $rgb);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@return .2126 * nth($rgba2, 1) + .7152 * nth($rgba2, 2) + 0.0722 * nth($rgba2, 3);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
@function calculate-contrast($color1, $color2) {
|
|
161
|
+
// Adapted from: https://github.com/LeaVerou/contrast-ratio/blob/gh-pages/color.js
|
|
162
|
+
// Formula: http://www.w3.org/TR/2008/REC-WCAG20-20081211/#contrast-ratiodef
|
|
163
|
+
$luminance1: color_luminance($color1) + .05;
|
|
164
|
+
$luminance2: color_luminance($color2) + .05;
|
|
165
|
+
$ratio: math.div($luminance1, $luminance2);
|
|
166
|
+
|
|
167
|
+
@if $luminance2 > $luminance1 {
|
|
168
|
+
$ratio: calc(1 / $ratio);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
$ratio: calc(round($ratio * 10) / 10);
|
|
172
|
+
|
|
173
|
+
@return $ratio;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
// https://www.jasongaylord.com/blog/2023/05/30/calculate-contrast-in-sass
|
|
178
|
+
|
|
179
|
+
// NOT used as not accurate compared to chrome extension tool
|
|
180
|
+
|
|
181
|
+
// @function sRGBToLinear($colorValue) {
|
|
182
|
+
// $colorValue: calc($colorValue / 255);
|
|
183
|
+
// @if $colorValue <= 0.04045 {
|
|
184
|
+
// @return calc($colorValue / 12.92);
|
|
185
|
+
// } @else {
|
|
186
|
+
// @return calc(math.pow($colorValue + 0.055, 2.4));
|
|
187
|
+
// }
|
|
188
|
+
// }
|
|
189
|
+
|
|
190
|
+
// @function calculate-contrast($value1, $value2) {
|
|
191
|
+
// $luminance1: (0.2126 * sRGBToLinear(red($value1))) +
|
|
192
|
+
// (0.7152 * sRGBToLinear(green($value1))) +
|
|
193
|
+
// (0.0722 * sRGBToLinear(blue($value1)));
|
|
194
|
+
// $luminance2: (0.2126 * sRGBToLinear(red($value2))) +
|
|
195
|
+
// (0.7152 * sRGBToLinear(green($value2))) +
|
|
196
|
+
// (0.0722 * sRGBToLinear(blue($value2)));
|
|
197
|
+
|
|
198
|
+
// @return calc(
|
|
199
|
+
// (max($luminance1, $luminance2) + 0.05) /
|
|
200
|
+
// (min($luminance1, $luminance2) + 0.05)
|
|
201
|
+
// );
|
|
202
|
+
// }
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
// TO BE TESTED to auto-calculated based on a certain ratio, creating high-contrast maps, etc...
|
|
207
|
+
|
|
208
|
+
@function find-safe-color($color, $ratio: 4.5) {
|
|
209
|
+
$lightness: lightness($color);
|
|
210
|
+
$value: $color;
|
|
211
|
+
$contrast: 0;
|
|
212
|
+
$i: 0;
|
|
213
|
+
|
|
214
|
+
@if $lightness < 50 {
|
|
215
|
+
$value: lighten($value, 5%);
|
|
216
|
+
$contrast: calculate-contrast($color, $value);
|
|
217
|
+
$i: $i + 1;
|
|
218
|
+
|
|
219
|
+
@while $contrast < $ratio and $i < 20 {
|
|
220
|
+
$value: lighten($value, 5%);
|
|
221
|
+
$contrast: calculate-contrast($color, $value);
|
|
222
|
+
$i: $i + 1;
|
|
223
|
+
}
|
|
224
|
+
} @else {
|
|
225
|
+
$value: darken($value, 5%);
|
|
226
|
+
$contrast: calculate-contrast($color, $value);
|
|
227
|
+
$i: $i + 1;
|
|
228
|
+
|
|
229
|
+
@while $contrast < $ratio and $i < 20 {
|
|
230
|
+
$value: darken($value, 5%);
|
|
231
|
+
$contrast: calculate-contrast($color, $value);
|
|
232
|
+
$i: $i + 1;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
@if $i >= 20 {
|
|
237
|
+
@debug "Color not safe";
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
@return ($value, $contrast);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
// interesting to generate maps of same colors and corresponding to some defaults for some
|
|
244
|
+
// categories of html elements where the colors are used : to be checked later
|
|
245
|
+
|
|
246
|
+
@function wcag-safe-colors($base-color) {
|
|
247
|
+
$colors: ();
|
|
248
|
+
|
|
249
|
+
$wcag30: find-safe-color($base-color, 3);
|
|
250
|
+
$wcag45: find-safe-color($base-color);
|
|
251
|
+
$wcag70: find-safe-color($base-color, 7);
|
|
252
|
+
|
|
253
|
+
// Generate shades
|
|
254
|
+
$colors: map-merge(
|
|
255
|
+
$colors,
|
|
256
|
+
(
|
|
257
|
+
"base-color": $base-color,
|
|
258
|
+
"wcag20-aa-normal-color": nth($wcag45, 1),
|
|
259
|
+
"wcag20-aa-normal-ratio": nth($wcag45, 2),
|
|
260
|
+
"wcag20-aa-large-color": nth($wcag30, 1),
|
|
261
|
+
"wcag20-aa-large-ratio": nth($wcag30, 2),
|
|
262
|
+
"wcag21-aa-input-color": nth($wcag30, 1),
|
|
263
|
+
"wcag21-aa-input-ratio": nth($wcag30, 1),
|
|
264
|
+
"wcag21-aaa-normal-color": nth($wcag70, 1),
|
|
265
|
+
"wcag21-aaa-normal-ratio": nth($wcag70, 2),
|
|
266
|
+
"wcag21-aaa-large-color": nth($wcag45, 1),
|
|
267
|
+
"wcag21-aaa-large-ratio": nth($wcag45, 2),
|
|
268
|
+
)
|
|
269
|
+
);
|
|
270
|
+
|
|
271
|
+
@return $colors;
|
|
272
|
+
}
|
|
273
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
$eui-base-tokens-colors-dark: (
|
|
2
|
+
branding: mapReverseValues(map-get($eui-base-tokens-colors, branding)),
|
|
3
|
+
primary: mapReverseValues(map-get($eui-base-tokens-colors, primary)),
|
|
4
|
+
neutral: mapReverseValues(map-get($eui-base-tokens-colors, neutral)),
|
|
5
|
+
info: mapReverseValues(map-get($eui-base-tokens-colors, info)),
|
|
6
|
+
success: mapReverseValues(map-get($eui-base-tokens-colors, success)),
|
|
7
|
+
warning: mapReverseValues(map-get($eui-base-tokens-colors, warning)),
|
|
8
|
+
danger: mapReverseValues(map-get($eui-base-tokens-colors, danger)),
|
|
9
|
+
accent: mapReverseValues(map-get($eui-base-tokens-colors, accent)),
|
|
10
|
+
);
|