@equinor/eds-tokens 0.7.1 → 0.8.0
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/esm/base/clickbounds.js +9 -0
- package/dist/esm/base/colors.js +389 -0
- package/dist/esm/base/elevation.js +10 -0
- package/dist/esm/base/index.js +19 -0
- package/dist/esm/base/interactions.js +34 -0
- package/dist/esm/base/shape.js +108 -0
- package/dist/esm/base/spacings.js +15 -0
- package/dist/esm/base/typography.js +438 -0
- package/dist/esm/index.js +1 -0
- package/dist/tokens.cjs.js +990 -990
- package/dist/types/base/clickbounds.d.ts +7 -7
- package/dist/types/base/colors.d.ts +387 -387
- package/dist/types/base/elevation.d.ts +8 -8
- package/dist/types/base/index.d.ts +991 -991
- package/dist/types/base/interactions.d.ts +32 -32
- package/dist/types/base/shape.d.ts +106 -106
- package/dist/types/base/spacings.d.ts +13 -13
- package/dist/types/base/typography.d.ts +436 -436
- package/dist/types/index.d.ts +2 -2
- package/dist/types/{src/types → types}/borders.d.ts +15 -15
- package/dist/types/{src/types → types}/clickbound.d.ts +8 -8
- package/dist/types/{src/types → types}/component.d.ts +36 -36
- package/dist/types/{src/types → types}/focus.d.ts +7 -7
- package/dist/types/{src/types → types}/index.d.ts +75 -75
- package/dist/types/{src/types → types}/pressed.d.ts +4 -4
- package/elements.css +89 -0
- package/package.json +12 -11
- package/tokens.css +143 -0
- package/commonjs/package.json +0 -4
- package/dist/tokens.esm.js +0 -1007
- package/dist/tokens.umd.js +0 -1017
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
var colors = {
|
|
2
|
+
text: {
|
|
3
|
+
static_icons__default: {
|
|
4
|
+
hex: '#3d3d3d',
|
|
5
|
+
hsla: 'hsla(0, 0%, 23.9%, 1)',
|
|
6
|
+
rgba: 'var(--eds_text__static_icons__default, rgba(61, 61, 61, 1))'
|
|
7
|
+
},
|
|
8
|
+
static_icons__secondary: {
|
|
9
|
+
hex: '#565656',
|
|
10
|
+
hsla: 'hsla(0, 0%, 33.7%, 1)',
|
|
11
|
+
rgba: 'var(--eds_text__static_icons__secondary, rgba(86, 86, 86, 1))'
|
|
12
|
+
},
|
|
13
|
+
static_icons__tertiary: {
|
|
14
|
+
hex: '#6f6f6f',
|
|
15
|
+
hsla: 'hsla(0, 0%, 43.5%, 1)',
|
|
16
|
+
rgba: 'var(--eds_text__static_icons__tertiary, rgba(111, 111, 111, 1))'
|
|
17
|
+
},
|
|
18
|
+
static_icons__primary_white: {
|
|
19
|
+
hex: '#ffffff',
|
|
20
|
+
hsla: 'hsla(0, 0%, 100%, 1)',
|
|
21
|
+
rgba: 'var(--eds_text__static_icons__primary_white, rgba(255, 255, 255, 1))'
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
ui: {
|
|
25
|
+
background__default: {
|
|
26
|
+
hex: '#ffffff',
|
|
27
|
+
hsla: 'hsla(0, 0%, 100%, 1)',
|
|
28
|
+
rgba: 'var(--eds_ui_background__default, rgba(255, 255, 255, 1))'
|
|
29
|
+
},
|
|
30
|
+
background__semitransparent: {
|
|
31
|
+
hex: '#ffffff',
|
|
32
|
+
hsla: 'hsla(0, 0%, 100%, 0.2)',
|
|
33
|
+
rgba: 'var(--eds_ui_background__semitransparent, rgba(255, 255, 255, 0.2))'
|
|
34
|
+
},
|
|
35
|
+
background__light: {
|
|
36
|
+
hex: '#f7f7f7',
|
|
37
|
+
hsla: 'hsla(0, 0%, 96.9%, 1)',
|
|
38
|
+
rgba: 'var(--eds_ui_background__light, rgba(247, 247, 247, 1))'
|
|
39
|
+
},
|
|
40
|
+
background__scrim: {
|
|
41
|
+
hex: '#000000',
|
|
42
|
+
hsla: 'hsla(0, 0%, 0%, 0.4)',
|
|
43
|
+
rgba: 'var(--eds_ui_background__scrim, rgba(0, 0, 0, 0.4))'
|
|
44
|
+
},
|
|
45
|
+
background__overlay: {
|
|
46
|
+
hex: '#000000',
|
|
47
|
+
hsla: 'hsla(0, 0%, 0%, 0.8)',
|
|
48
|
+
rgba: 'var(--eds_ui_background__overlay, rgba(0, 0, 0, 0.8))'
|
|
49
|
+
},
|
|
50
|
+
background__medium: {
|
|
51
|
+
hex: '#dcdcdc',
|
|
52
|
+
hsla: 'hsla(0, 0%, 86.3%, 1)',
|
|
53
|
+
rgba: 'var(--eds_ui_background__medium, rgba(220, 220, 220, 1))'
|
|
54
|
+
},
|
|
55
|
+
background__info: {
|
|
56
|
+
hex: '#d5eaf4',
|
|
57
|
+
hsla: 'hsla(199, 58.5%, 89.6%, 1)',
|
|
58
|
+
rgba: 'var(--eds_ui_background__info, rgba(213, 234, 244, 1))'
|
|
59
|
+
},
|
|
60
|
+
background__warning: {
|
|
61
|
+
hex: '#ffe7d6',
|
|
62
|
+
hsla: 'hsla(25, 100%, 92%, 1)',
|
|
63
|
+
rgba: 'var(--eds_ui_background__warning, rgba(255, 231, 214, 1))'
|
|
64
|
+
},
|
|
65
|
+
background__danger: {
|
|
66
|
+
hex: '#ffc1c1',
|
|
67
|
+
hsla: 'hsla(0, 100%, 87.8%, 1)',
|
|
68
|
+
rgba: 'var(--eds_ui_background__danger, rgba(255, 193, 193, 1))'
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
infographic: {
|
|
72
|
+
substitute__purple_berry: {
|
|
73
|
+
hex: '#8c1159',
|
|
74
|
+
hsla: 'hsla(325, 78.3%, 30.8%, 1)',
|
|
75
|
+
rgba: 'var(--eds_infographic_substitute__purple_berry, rgba(140, 17, 89, 1))'
|
|
76
|
+
},
|
|
77
|
+
substitute__pink_rose: {
|
|
78
|
+
hex: '#e24973',
|
|
79
|
+
hsla: 'hsla(344, 72.5%, 58.6%, 1)',
|
|
80
|
+
rgba: 'var(--eds_infographic_substitute__pink_rose, rgba(226, 73, 115, 1))'
|
|
81
|
+
},
|
|
82
|
+
substitute__pink_salmon: {
|
|
83
|
+
hex: '#ff92a8',
|
|
84
|
+
hsla: 'hsla(348, 100%, 78.6%, 1)',
|
|
85
|
+
rgba: 'var(--eds_infographic_substitute__pink_salmon, rgba(255, 146, 168, 1))'
|
|
86
|
+
},
|
|
87
|
+
substitute__green_cucumber: {
|
|
88
|
+
hex: '#005f57',
|
|
89
|
+
hsla: 'hsla(175, 100%, 18.6%, 1)',
|
|
90
|
+
rgba: 'var(--eds_infographic_substitute__green_cucumber, rgba(0, 95, 87, 1))'
|
|
91
|
+
},
|
|
92
|
+
substitute__green_succulent: {
|
|
93
|
+
hex: '#00977b',
|
|
94
|
+
hsla: 'hsla(169, 100%, 29.6%, 1)',
|
|
95
|
+
rgba: 'var(--eds_infographic_substitute__green_succulent, rgba(0, 151, 123, 1))'
|
|
96
|
+
},
|
|
97
|
+
substitute__green_mint: {
|
|
98
|
+
hex: '#40d38f',
|
|
99
|
+
hsla: 'hsla(152, 62.6%, 53.9%, 1)',
|
|
100
|
+
rgba: 'var(--eds_infographic_substitute__green_mint, rgba(64, 211, 143, 1))'
|
|
101
|
+
},
|
|
102
|
+
substitute__blue_ocean: {
|
|
103
|
+
hex: '#004088',
|
|
104
|
+
hsla: 'hsla(212, 100%, 26.7%, 1)',
|
|
105
|
+
rgba: 'var(--eds_infographic_substitute__blue_ocean, rgba(0, 64, 136, 1))'
|
|
106
|
+
},
|
|
107
|
+
substitute__blue_overcast: {
|
|
108
|
+
hex: '#0084c4',
|
|
109
|
+
hsla: 'hsla(200, 100%, 38.4%, 1)',
|
|
110
|
+
rgba: 'var(--eds_infographic_substitute__blue_overcast, rgba(0, 132, 196, 1))'
|
|
111
|
+
},
|
|
112
|
+
substitute__blue_sky: {
|
|
113
|
+
hex: '#52c0ff',
|
|
114
|
+
hsla: 'hsla(202, 100%, 66.1%, 1)',
|
|
115
|
+
rgba: 'var(--eds_infographic_substitute__blue_sky, rgba(82, 192, 255, 1))'
|
|
116
|
+
},
|
|
117
|
+
primary__moss_green_100: {
|
|
118
|
+
hex: '#007079',
|
|
119
|
+
hsla: 'hsla(184, 100%, 23.7%, 1)',
|
|
120
|
+
rgba: 'var(--eds_infographic_primary__moss_green_100, rgba(0, 112, 121, 1))'
|
|
121
|
+
},
|
|
122
|
+
primary__moss_green_55: {
|
|
123
|
+
hex: '#73b1b5',
|
|
124
|
+
hsla: 'hsla(184, 30.8%, 58%, 1)',
|
|
125
|
+
rgba: 'var(--eds_infographic_primary__moss_green_55, rgba(115, 177, 181, 1))'
|
|
126
|
+
},
|
|
127
|
+
primary__moss_green_34: {
|
|
128
|
+
hex: '#a8ced1',
|
|
129
|
+
hsla: 'hsla(184, 30.8%, 73.9%, 1)',
|
|
130
|
+
rgba: 'var(--eds_infographic_primary__moss_green_34, rgba(168, 206, 209, 1))'
|
|
131
|
+
},
|
|
132
|
+
primary__moss_green_21: {
|
|
133
|
+
hex: '#c9e0e2',
|
|
134
|
+
hsla: 'hsla(185, 30.1%, 83.7%, 1)',
|
|
135
|
+
rgba: 'var(--eds_infographic_primary__moss_green_21, rgba(201, 224, 226, 1))'
|
|
136
|
+
},
|
|
137
|
+
primary__moss_green_13: {
|
|
138
|
+
hex: '#deedee',
|
|
139
|
+
hsla: 'hsla(184, 32%, 90.2%, 1)',
|
|
140
|
+
rgba: 'var(--eds_infographic_primary__moss_green_13, rgba(222, 237, 238, 1))'
|
|
141
|
+
},
|
|
142
|
+
primary__energy_red_100: {
|
|
143
|
+
hex: '#eb0037',
|
|
144
|
+
hsla: 'hsla(346, 100%, 46.1%, 1)',
|
|
145
|
+
rgba: 'var(--eds_infographic_primary__energy_red_100, rgba(235, 0, 55, 1))'
|
|
146
|
+
},
|
|
147
|
+
primary__energy_red_55: {
|
|
148
|
+
hex: '#ff7d98',
|
|
149
|
+
hsla: 'hsla(348, 100%, 74.5%, 1)',
|
|
150
|
+
rgba: 'var(--eds_infographic_primary__energy_red_55, rgba(255, 125, 152, 1))'
|
|
151
|
+
},
|
|
152
|
+
primary__energy_red_34: {
|
|
153
|
+
hex: '#ffaebf',
|
|
154
|
+
hsla: 'hsla(347, 100%, 84.1%, 1)',
|
|
155
|
+
rgba: 'var(--eds_infographic_primary__energy_red_34, rgba(255, 174, 191, 1))'
|
|
156
|
+
},
|
|
157
|
+
primary__energy_red_21: {
|
|
158
|
+
hex: '#ffcdd7',
|
|
159
|
+
hsla: 'hsla(348, 100%, 90.2%, 1)',
|
|
160
|
+
rgba: 'var(--eds_infographic_primary__energy_red_21, rgba(255, 205, 215, 1))'
|
|
161
|
+
},
|
|
162
|
+
primary__energy_red_13: {
|
|
163
|
+
hex: '#ffe0e7',
|
|
164
|
+
hsla: 'hsla(346, 100%, 93.9%, 1)',
|
|
165
|
+
rgba: 'var(--eds_infographic_primary__energy_red_13, rgba(255, 224, 231, 1))'
|
|
166
|
+
},
|
|
167
|
+
primary__weathered_red: {
|
|
168
|
+
hex: '#7d0023',
|
|
169
|
+
hsla: 'hsla(343, 100%, 24.5%, 1)',
|
|
170
|
+
rgba: 'var(--eds_infographic_primary__weathered_red, rgba(125, 0, 35, 1))'
|
|
171
|
+
},
|
|
172
|
+
primary__slate_blue: {
|
|
173
|
+
hex: '#243746',
|
|
174
|
+
hsla: 'hsla(206, 32.1%, 20.8%, 1)',
|
|
175
|
+
rgba: 'var(--eds_infographic_primary__slate_blue, rgba(36, 55, 70, 1))'
|
|
176
|
+
},
|
|
177
|
+
primary__spruce_wood: {
|
|
178
|
+
hex: '#ffe7d6',
|
|
179
|
+
hsla: 'hsla(25, 100%, 92%, 1)',
|
|
180
|
+
rgba: 'var(--eds_infographic_primary__spruce_wood, rgba(255, 231, 214, 1))'
|
|
181
|
+
},
|
|
182
|
+
primary__mist_blue: {
|
|
183
|
+
hex: '#d5eaf4',
|
|
184
|
+
hsla: 'hsla(199, 58.5%, 89.6%, 1)',
|
|
185
|
+
rgba: 'var(--eds_infographic_primary__mist_blue, rgba(213, 234, 244, 1))'
|
|
186
|
+
},
|
|
187
|
+
primary__lichen_green: {
|
|
188
|
+
hex: '#e6faec',
|
|
189
|
+
hsla: 'hsla(138, 66.7%, 94.1%, 1)',
|
|
190
|
+
rgba: 'var(--eds_infographic_primary__lichen_green, rgba(230, 250, 236, 1))'
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
logo: {
|
|
194
|
+
fill_positive: {
|
|
195
|
+
hex: '#eb0037',
|
|
196
|
+
hsla: 'hsla(346, 100%, 46.1%, 1)',
|
|
197
|
+
rgba: 'var(--eds_logo__fill_positive, rgba(235, 0, 55, 1))'
|
|
198
|
+
},
|
|
199
|
+
fill_negative: {
|
|
200
|
+
hex: '#ffffff',
|
|
201
|
+
hsla: 'hsla(0, 0%, 100%, 1)',
|
|
202
|
+
rgba: 'var(--eds_logo__fill_negative, rgba(255, 255, 255, 1))'
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
interactive: {
|
|
206
|
+
primary__selected_highlight: {
|
|
207
|
+
hex: '#e6faec',
|
|
208
|
+
hsla: 'hsla(138, 66.7%, 94.1%, 1)',
|
|
209
|
+
rgba: 'var(--eds_interactive_primary__selected_highlight, rgba(230, 250, 236, 1))'
|
|
210
|
+
},
|
|
211
|
+
primary__selected_hover: {
|
|
212
|
+
hex: '#c3f3d2',
|
|
213
|
+
hsla: 'hsla(139, 66.7%, 85.9%, 1)',
|
|
214
|
+
rgba: 'var(--eds_interactive_primary__selected_hover, rgba(195, 243, 210, 1))'
|
|
215
|
+
},
|
|
216
|
+
primary__resting: {
|
|
217
|
+
hex: '#007079',
|
|
218
|
+
hsla: 'hsla(184, 100%, 23.7%, 1)',
|
|
219
|
+
rgba: 'var(--eds_interactive_primary__resting, rgba(0, 112, 121, 1))'
|
|
220
|
+
},
|
|
221
|
+
primary__hover: {
|
|
222
|
+
hex: '#004f55',
|
|
223
|
+
hsla: 'hsla(184, 100%, 16.7%, 1)',
|
|
224
|
+
rgba: 'var(--eds_interactive_primary__hover, rgba(0, 79, 85, 1))'
|
|
225
|
+
},
|
|
226
|
+
primary__hover_alt: {
|
|
227
|
+
hex: '#deedee',
|
|
228
|
+
hsla: 'hsla(184, 32%, 90.2%, 1)',
|
|
229
|
+
rgba: 'var(--eds_interactive_primary__hover_alt, rgba(222, 237, 238, 1))'
|
|
230
|
+
},
|
|
231
|
+
secondary__highlight: {
|
|
232
|
+
hex: '#d5eaf4',
|
|
233
|
+
hsla: 'hsla(199, 58.5%, 89.6%, 1)',
|
|
234
|
+
rgba: 'var(--eds_interactive_secondary__highlight, rgba(213, 234, 244, 1))'
|
|
235
|
+
},
|
|
236
|
+
secondary__resting: {
|
|
237
|
+
hex: '#243746',
|
|
238
|
+
hsla: 'hsla(206, 32.1%, 20.8%, 1)',
|
|
239
|
+
rgba: 'var(--eds_interactive_secondary__resting, rgba(36, 55, 70, 1))'
|
|
240
|
+
},
|
|
241
|
+
secondary__link_hover: {
|
|
242
|
+
hex: '#17242f',
|
|
243
|
+
hsla: 'hsla(208, 34.3%, 13.7%, 1)',
|
|
244
|
+
rgba: 'var(--eds_interactive_secondary__link_hover, rgba(23, 36, 47, 1))'
|
|
245
|
+
},
|
|
246
|
+
danger__highlight: {
|
|
247
|
+
hex: '#ffc1c1',
|
|
248
|
+
hsla: 'hsla(0, 100%, 87.8%, 1)',
|
|
249
|
+
rgba: 'var(--eds_interactive_danger__highlight, rgba(255, 193, 193, 1))'
|
|
250
|
+
},
|
|
251
|
+
danger__resting: {
|
|
252
|
+
hex: '#eb0000',
|
|
253
|
+
hsla: 'hsla(0, 100%, 46.1%, 1)',
|
|
254
|
+
rgba: 'var(--eds_interactive_danger__resting, rgba(235, 0, 0, 1))'
|
|
255
|
+
},
|
|
256
|
+
danger__hover: {
|
|
257
|
+
hex: '#b30d2f',
|
|
258
|
+
hsla: 'hsla(348, 86.5%, 37.6%, 1)',
|
|
259
|
+
rgba: 'var(--eds_interactive_danger__hover, rgba(179, 13, 47, 1))'
|
|
260
|
+
},
|
|
261
|
+
danger__text: {
|
|
262
|
+
hex: '#b30d2f',
|
|
263
|
+
hsla: 'hsla(348, 86.5%, 37.6%, 1)',
|
|
264
|
+
rgba: 'var(--eds_interactive_danger__text, rgba(179, 13, 47, 1))'
|
|
265
|
+
},
|
|
266
|
+
warning__highlight: {
|
|
267
|
+
hex: '#ffe7d6',
|
|
268
|
+
hsla: 'hsla(25, 100%, 92%, 1)',
|
|
269
|
+
rgba: 'var(--eds_interactive_warning__highlight, rgba(255, 231, 214, 1))'
|
|
270
|
+
},
|
|
271
|
+
warning__resting: {
|
|
272
|
+
hex: '#ff9200',
|
|
273
|
+
hsla: 'hsla(34, 100%, 50%, 1)',
|
|
274
|
+
rgba: 'var(--eds_interactive_warning__resting, rgba(255, 146, 0, 1))'
|
|
275
|
+
},
|
|
276
|
+
warning__hover: {
|
|
277
|
+
hex: '#ad6200',
|
|
278
|
+
hsla: 'hsla(34, 100%, 33.9%, 1)',
|
|
279
|
+
rgba: 'var(--eds_interactive_warning__hover, rgba(173, 98, 0, 1))'
|
|
280
|
+
},
|
|
281
|
+
warning__text: {
|
|
282
|
+
hex: '#ad6200',
|
|
283
|
+
hsla: 'hsla(34, 100%, 33.9%, 1)',
|
|
284
|
+
rgba: 'var(--eds_interactive_warning__text, rgba(173, 98, 0, 1))'
|
|
285
|
+
},
|
|
286
|
+
success__highlight: {
|
|
287
|
+
hex: '#e6faec',
|
|
288
|
+
hsla: 'hsla(138, 66.7%, 94.1%, 1)',
|
|
289
|
+
rgba: 'var(--eds_interactive_success__highlight, rgba(230, 250, 236, 1))'
|
|
290
|
+
},
|
|
291
|
+
success__resting: {
|
|
292
|
+
hex: '#4bb748',
|
|
293
|
+
hsla: 'hsla(118, 43.5%, 50%, 1)',
|
|
294
|
+
rgba: 'var(--eds_interactive_success__resting, rgba(75, 183, 72, 1))'
|
|
295
|
+
},
|
|
296
|
+
success__hover: {
|
|
297
|
+
hex: '#358132',
|
|
298
|
+
hsla: 'hsla(118, 44.1%, 35.1%, 1)',
|
|
299
|
+
rgba: 'var(--eds_interactive_success__hover, rgba(53, 129, 50, 1))'
|
|
300
|
+
},
|
|
301
|
+
success__text: {
|
|
302
|
+
hex: '#358132',
|
|
303
|
+
hsla: 'hsla(118, 44.1%, 35.1%, 1)',
|
|
304
|
+
rgba: 'var(--eds_interactive_success__text, rgba(53, 129, 50, 1))'
|
|
305
|
+
},
|
|
306
|
+
table__cell__fill_resting: {
|
|
307
|
+
hex: '#ffffff',
|
|
308
|
+
hsla: 'hsla(0, 0%, 100%, 1)',
|
|
309
|
+
rgba: 'var(--eds_interactive_table__cell__fill_resting, rgba(255, 255, 255, 1))'
|
|
310
|
+
},
|
|
311
|
+
table__cell__fill_hover: {
|
|
312
|
+
hex: '#eaeaea',
|
|
313
|
+
hsla: 'hsla(0, 0%, 91.8%, 1)',
|
|
314
|
+
rgba: 'var(--eds_interactive_table__cell__fill_hover, rgba(234, 234, 234, 1))'
|
|
315
|
+
},
|
|
316
|
+
table__cell__fill_activated: {
|
|
317
|
+
hex: '#e6faec',
|
|
318
|
+
hsla: 'hsla(138, 66.7%, 94.1%, 1)',
|
|
319
|
+
rgba: 'var(--eds_interactive_table__cell__fill_activated, rgba(230, 250, 236, 1))'
|
|
320
|
+
},
|
|
321
|
+
table__header__fill_activated: {
|
|
322
|
+
hex: '#eaeaea',
|
|
323
|
+
hsla: 'hsla(0, 0%, 91.8%, 1)',
|
|
324
|
+
rgba: 'var(--eds_interactive_table__header__fill_activated, rgba(234, 234, 234, 1))'
|
|
325
|
+
},
|
|
326
|
+
table__header__fill_hover: {
|
|
327
|
+
hex: '#dcdcdc',
|
|
328
|
+
hsla: 'hsla(0, 0%, 86.3%, 1)',
|
|
329
|
+
rgba: 'var(--eds_interactive_table__header__fill_hover, rgba(220, 220, 220, 1))'
|
|
330
|
+
},
|
|
331
|
+
table__header__fill_resting: {
|
|
332
|
+
hex: '#f7f7f7',
|
|
333
|
+
hsla: 'hsla(0, 0%, 96.9%, 1)',
|
|
334
|
+
rgba: 'var(--eds_interactive_table__header__fill_resting, rgba(247, 247, 247, 1))'
|
|
335
|
+
},
|
|
336
|
+
disabled__text: {
|
|
337
|
+
hex: '#bebebe',
|
|
338
|
+
hsla: 'hsla(0, 0%, 74.5%, 1)',
|
|
339
|
+
rgba: 'var(--eds_interactive__disabled__text, rgba(190, 190, 190, 1))'
|
|
340
|
+
},
|
|
341
|
+
text_highlight: {
|
|
342
|
+
hex: '#d5eaf4',
|
|
343
|
+
hsla: 'hsla(199, 58.5%, 89.6%, 1)',
|
|
344
|
+
rgba: 'var(--eds_interactive__text_highlight, rgba(213, 234, 244, 1))'
|
|
345
|
+
},
|
|
346
|
+
focus: {
|
|
347
|
+
hex: '#007079',
|
|
348
|
+
hsla: 'hsla(184, 100%, 23.7%, 1)',
|
|
349
|
+
rgba: 'var(--eds_interactive__focus, rgba(0, 112, 121, 1))'
|
|
350
|
+
},
|
|
351
|
+
disabled__border: {
|
|
352
|
+
hex: '#dcdcdc',
|
|
353
|
+
hsla: 'hsla(0, 0%, 86.3%, 1)',
|
|
354
|
+
rgba: 'var(--eds_interactive__disabled__border, rgba(220, 220, 220, 1))'
|
|
355
|
+
},
|
|
356
|
+
disabled__fill: {
|
|
357
|
+
hex: '#eaeaea',
|
|
358
|
+
hsla: 'hsla(0, 0%, 91.8%, 1)',
|
|
359
|
+
rgba: 'var(--eds_interactive__disabled__fill, rgba(234, 234, 234, 1))'
|
|
360
|
+
},
|
|
361
|
+
link_on_interactive_colors: {
|
|
362
|
+
hex: '#ffffff',
|
|
363
|
+
hsla: 'hsla(0, 0%, 100%, 1)',
|
|
364
|
+
rgba: 'var(--eds_interactive__link_on_interactive_colors, rgba(255, 255, 255, 1))'
|
|
365
|
+
},
|
|
366
|
+
icon_on_interactive_colors: {
|
|
367
|
+
hex: '#ffffff',
|
|
368
|
+
hsla: 'hsla(0, 0%, 100%, 1)',
|
|
369
|
+
rgba: 'var(--eds_interactive__icon_on_interactive_colors, rgba(255, 255, 255, 1))'
|
|
370
|
+
},
|
|
371
|
+
link_in_snackbars: {
|
|
372
|
+
hex: '#97cace',
|
|
373
|
+
hsla: 'hsla(184, 35.9%, 70%, 1)',
|
|
374
|
+
rgba: 'var(--eds_interactive__link_in_snackbars, rgba(151, 202, 206, 1))'
|
|
375
|
+
},
|
|
376
|
+
pressed_overlay_dark: {
|
|
377
|
+
hex: '#000000',
|
|
378
|
+
hsla: 'hsla(0, 0%, 0%, 0.2)',
|
|
379
|
+
rgba: 'var(--eds_interactive__pressed_overlay_dark, rgba(0, 0, 0, 0.2))'
|
|
380
|
+
},
|
|
381
|
+
pressed_overlay_light: {
|
|
382
|
+
hex: '#ffffff',
|
|
383
|
+
hsla: 'hsla(0, 0%, 100%, 0.2)',
|
|
384
|
+
rgba: 'var(--eds_interactive__pressed_overlay_light, rgba(255, 255, 255, 0.2))'
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
|
|
389
|
+
export { colors };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var elevation = {
|
|
2
|
+
raised: '0 1px 5px rgba(0, 0, 0, 0.2),0 3px 4px rgba(0, 0, 0, 0.12),0 2px 4px rgba(0, 0, 0, 0.14)',
|
|
3
|
+
none: '0 0 1px rgba(0, 0, 0, 0.14)',
|
|
4
|
+
overlay: '0 1px 10px rgba(0, 0, 0, 0.2),0 4px 5px rgba(0, 0, 0, 0.12),0 2px 4px rgba(0, 0, 0, 0.14)',
|
|
5
|
+
sticky: '0 4px 5px rgba(0, 0, 0, 0.2),0 3px 14px rgba(0, 0, 0, 0.12),0 8px 10px rgba(0, 0, 0, 0.14)',
|
|
6
|
+
temporary_nav: '0 7px 8px rgba(0, 0, 0, 0.2),0 5px 22px rgba(0, 0, 0, 0.12),0 12px 17px rgba(0, 0, 0, 0.14)',
|
|
7
|
+
above_scrim: '0 11px 15px rgba(0, 0, 0, 0.2),0 9px 46px rgba(0, 0, 0, 0.12),0 24px 38px rgba(0, 0, 0, 0.14)'
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { elevation };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { clickbounds } from './clickbounds.js';
|
|
2
|
+
import { colors } from './colors.js';
|
|
3
|
+
import { elevation } from './elevation.js';
|
|
4
|
+
import { interactions } from './interactions.js';
|
|
5
|
+
import { shape } from './shape.js';
|
|
6
|
+
import { typography } from './typography.js';
|
|
7
|
+
import { spacings } from './spacings.js';
|
|
8
|
+
|
|
9
|
+
var tokens = {
|
|
10
|
+
clickbounds: clickbounds,
|
|
11
|
+
colors: colors,
|
|
12
|
+
elevation: elevation,
|
|
13
|
+
interactions: interactions,
|
|
14
|
+
shape: shape,
|
|
15
|
+
typography: typography,
|
|
16
|
+
spacings: spacings
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export { tokens };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
var interactions = {
|
|
2
|
+
_modes: {
|
|
3
|
+
compact: {
|
|
4
|
+
pressed_dark_overlay: {
|
|
5
|
+
blendMode: 'pass_through',
|
|
6
|
+
pressedColor: 'transparent'
|
|
7
|
+
},
|
|
8
|
+
focused: {
|
|
9
|
+
style: 'dashed',
|
|
10
|
+
color: 'rgba(0, 112, 121, 1)',
|
|
11
|
+
width: '2px'
|
|
12
|
+
},
|
|
13
|
+
pressed_light_overlay: {
|
|
14
|
+
blendMode: 'pass_through',
|
|
15
|
+
pressedColor: 'rgba(255, 255, 255, 1)'
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
pressed_dark_overlay: {
|
|
20
|
+
blendMode: 'darken',
|
|
21
|
+
pressedColor: 'rgba(0, 0, 0, 0.2)'
|
|
22
|
+
},
|
|
23
|
+
focused: {
|
|
24
|
+
style: 'dashed',
|
|
25
|
+
color: 'rgba(0, 112, 121, 1)',
|
|
26
|
+
width: '2px'
|
|
27
|
+
},
|
|
28
|
+
pressed_light_overlay: {
|
|
29
|
+
blendMode: 'pass_through',
|
|
30
|
+
pressedColor: 'rgba(255, 255, 255, 0.2)'
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export { interactions };
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
var shape = {
|
|
2
|
+
_modes: {
|
|
3
|
+
compact: {
|
|
4
|
+
rounded: {
|
|
5
|
+
minHeight: '24px',
|
|
6
|
+
minWidth: '80px',
|
|
7
|
+
borderRadius: '100px'
|
|
8
|
+
},
|
|
9
|
+
button: {
|
|
10
|
+
minHeight: '24px',
|
|
11
|
+
minWidth: '112px',
|
|
12
|
+
borderRadius: '4px'
|
|
13
|
+
},
|
|
14
|
+
toggle: {
|
|
15
|
+
minHeight: '24px',
|
|
16
|
+
minWidth: '112px',
|
|
17
|
+
borderRadius: '4px'
|
|
18
|
+
},
|
|
19
|
+
corners: {
|
|
20
|
+
minHeight: '24px',
|
|
21
|
+
minWidth: '112px',
|
|
22
|
+
borderRadius: '4px'
|
|
23
|
+
},
|
|
24
|
+
icon_button: {
|
|
25
|
+
minHeight: '32px',
|
|
26
|
+
minWidth: '32px',
|
|
27
|
+
borderRadius: '100px'
|
|
28
|
+
},
|
|
29
|
+
straight: {
|
|
30
|
+
minHeight: '24px',
|
|
31
|
+
minWidth: '112px',
|
|
32
|
+
borderRadius: ''
|
|
33
|
+
},
|
|
34
|
+
toggle_rounded_border: {
|
|
35
|
+
minHeight: '24px',
|
|
36
|
+
minWidth: '2px',
|
|
37
|
+
borderRadius: ''
|
|
38
|
+
},
|
|
39
|
+
toggle_straight_border: {
|
|
40
|
+
minHeight: '24px',
|
|
41
|
+
minWidth: '2px',
|
|
42
|
+
borderRadius: ''
|
|
43
|
+
},
|
|
44
|
+
circle: {
|
|
45
|
+
minHeight: '24px',
|
|
46
|
+
minWidth: '24px',
|
|
47
|
+
borderRadius: '100px'
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
toggle_straight_border: {
|
|
52
|
+
minHeight: '36px',
|
|
53
|
+
minWidth: '4px',
|
|
54
|
+
borderRadius: ''
|
|
55
|
+
},
|
|
56
|
+
toggle_rounded_border: {
|
|
57
|
+
minHeight: '36px',
|
|
58
|
+
minWidth: '4px',
|
|
59
|
+
borderRadius: ''
|
|
60
|
+
},
|
|
61
|
+
circle: {
|
|
62
|
+
minHeight: '40px',
|
|
63
|
+
minWidth: '40px',
|
|
64
|
+
borderRadius: '100px'
|
|
65
|
+
},
|
|
66
|
+
rounded: {
|
|
67
|
+
minHeight: '40px',
|
|
68
|
+
minWidth: '80px',
|
|
69
|
+
borderRadius: '100px'
|
|
70
|
+
},
|
|
71
|
+
button: {
|
|
72
|
+
minHeight: '36px',
|
|
73
|
+
minWidth: '112px',
|
|
74
|
+
borderRadius: '4px'
|
|
75
|
+
},
|
|
76
|
+
toggle: {
|
|
77
|
+
minHeight: '36px',
|
|
78
|
+
minWidth: '112px',
|
|
79
|
+
borderRadius: '4px'
|
|
80
|
+
},
|
|
81
|
+
corners: {
|
|
82
|
+
minHeight: '36px',
|
|
83
|
+
minWidth: '112px',
|
|
84
|
+
borderRadius: '4px'
|
|
85
|
+
},
|
|
86
|
+
icon_button: {
|
|
87
|
+
minHeight: '40px',
|
|
88
|
+
minWidth: '40px',
|
|
89
|
+
borderRadius: '100px'
|
|
90
|
+
},
|
|
91
|
+
field: {
|
|
92
|
+
minHeight: '56px',
|
|
93
|
+
minWidth: '294px',
|
|
94
|
+
borderRadius: ''
|
|
95
|
+
},
|
|
96
|
+
straight: {
|
|
97
|
+
minHeight: '36px',
|
|
98
|
+
minWidth: '112px',
|
|
99
|
+
borderRadius: ''
|
|
100
|
+
},
|
|
101
|
+
caret: {
|
|
102
|
+
minHeight: '8px',
|
|
103
|
+
minWidth: '6px',
|
|
104
|
+
borderRadius: ''
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
export { shape };
|