@once-ui-system/foundations 0.0.0-stage → 3.0.0-beta.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/README.md +31 -2
- package/dist/css/styles.css +4 -0
- package/dist/css/styles.css.map +1 -0
- package/dist/css/tokens.css +4 -0
- package/dist/css/tokens.css.map +1 -0
- package/package.json +57 -4
- package/scss/styles/background.generated.scss +395 -0
- package/scss/styles/border.generated.scss +528 -0
- package/scss/styles/breakpoints.scss +39 -0
- package/scss/styles/color.generated.scss +175 -0
- package/scss/styles/cursor.generated.scss +88 -0
- package/scss/styles/density.scss +74 -0
- package/scss/styles/display.generated.scss +1496 -0
- package/scss/styles/flex.generated.scss +867 -0
- package/scss/styles/global.scss +57 -0
- package/scss/styles/grid.generated.scss +649 -0
- package/scss/styles/index.scss +15 -0
- package/scss/styles/position.generated.scss +1957 -0
- package/scss/styles/shadow.generated.scss +23 -0
- package/scss/styles/size.generated.scss +69 -0
- package/scss/styles/spacing.generated.scss +9447 -0
- package/scss/styles/touch.scss +29 -0
- package/scss/styles/typography.generated.scss +334 -0
- package/scss/styles/utilities.scss +23 -0
- package/scss/tokens/border.scss +95 -0
- package/scss/tokens/data.scss +107 -0
- package/scss/tokens/function.scss +742 -0
- package/scss/tokens/index.scss +8 -0
- package/scss/tokens/layout.scss +317 -0
- package/scss/tokens/scheme.scss +352 -0
- package/scss/tokens/shadow.scss +7 -0
- package/scss/tokens/theme.scss +779 -0
- package/scss/tokens/typography.scss +118 -0
- package/tokens/README.md +49 -0
- package/tokens/once-ui.tokens.json +2794 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* Touch helpers for component modules. Emits no CSS of its own. */
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* Grows the area that takes a tap to `--touch-target` (44px) on a coarse
|
|
5
|
+
* pointer, without changing the size the control is drawn at or the layout
|
|
6
|
+
* around it. An invisible pseudo-element, centred on the control and at least
|
|
7
|
+
* as big as it, catches the tap; a tap on it is a tap on the control.
|
|
8
|
+
*
|
|
9
|
+
* The control must be positioned (every Flex is) and must not clip its own
|
|
10
|
+
* overflow, and the pseudo-element must be free. A control drawn larger than
|
|
11
|
+
* the target keeps its own size, so the rule is harmless on big buttons.
|
|
12
|
+
*
|
|
13
|
+
* Two areas that overlap give the overlap to the later control, so this is
|
|
14
|
+
* for controls that stand apart, not for dense grids of dots.
|
|
15
|
+
*/
|
|
16
|
+
@mixin target($pseudo: after) {
|
|
17
|
+
@media (pointer: coarse) {
|
|
18
|
+
&::#{$pseudo} {
|
|
19
|
+
content: "";
|
|
20
|
+
position: absolute;
|
|
21
|
+
top: 50%;
|
|
22
|
+
left: 50%;
|
|
23
|
+
width: max(100%, var(--touch-target, 2.75rem));
|
|
24
|
+
height: max(100%, var(--touch-target, 2.75rem));
|
|
25
|
+
transform: translate(-50%, -50%);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
/* GENERATED by scripts/generate-utilities.mjs — do not edit.
|
|
2
|
+
* The class matrix lives in scripts/utilities.spec.mjs; change it there and
|
|
3
|
+
* re-run `pnpm generate:utilities`. */
|
|
4
|
+
|
|
5
|
+
html {
|
|
6
|
+
font-size: var(--font-scaling-desktop);
|
|
7
|
+
font-family: var(--font-body);
|
|
8
|
+
font-weight: var(--font-weight-normal);
|
|
9
|
+
color: var(--neutral-on-background-strong);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:where([data-theme]) {
|
|
13
|
+
color: var(--neutral-on-background-strong);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
h1, h2, h3, h4, h5, h6, p {
|
|
17
|
+
margin: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.font-size-inherit {
|
|
21
|
+
font-size: inherit;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.font-weight-inherit {
|
|
25
|
+
font-weight: inherit;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.font-default {
|
|
29
|
+
font-weight: var(--font-weight-display-default);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.font-normal {
|
|
33
|
+
font-weight: var(--font-weight-display-normal);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.font-medium {
|
|
37
|
+
font-weight: var(--font-weight-display-medium);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.font-strong {
|
|
41
|
+
font-weight: var(--font-weight-display-strong);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:where(.font-heading).font-default,
|
|
45
|
+
:where(.font-heading) > .font-default {
|
|
46
|
+
font-weight: var(--font-heading-weight-default, var(--font-weight-display-default));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
:where(.font-heading).font-normal,
|
|
50
|
+
:where(.font-heading) > .font-normal {
|
|
51
|
+
font-weight: var(--font-heading-weight-normal, var(--font-weight-display-normal));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:where(.font-heading).font-medium,
|
|
55
|
+
:where(.font-heading) > .font-medium {
|
|
56
|
+
font-weight: var(--font-heading-weight-medium, var(--font-weight-display-medium));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:where(.font-heading).font-strong,
|
|
60
|
+
:where(.font-heading) > .font-strong {
|
|
61
|
+
font-weight: var(--font-heading-weight-strong, var(--font-weight-display-strong));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:where(.font-body).font-default,
|
|
65
|
+
:where(.font-body) > .font-default {
|
|
66
|
+
font-weight: var(--font-body-weight-default, var(--font-weight-display-default));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
:where(.font-body).font-normal,
|
|
70
|
+
:where(.font-body) > .font-normal {
|
|
71
|
+
font-weight: var(--font-body-weight-normal, var(--font-weight-display-normal));
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
:where(.font-body).font-medium,
|
|
75
|
+
:where(.font-body) > .font-medium {
|
|
76
|
+
font-weight: var(--font-body-weight-medium, var(--font-weight-display-medium));
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
:where(.font-body).font-strong,
|
|
80
|
+
:where(.font-body) > .font-strong {
|
|
81
|
+
font-weight: var(--font-body-weight-strong, var(--font-weight-display-strong));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
:where(.font-label).font-default,
|
|
85
|
+
:where(.font-label) > .font-default {
|
|
86
|
+
font-weight: var(--font-label-weight-default, var(--font-weight-display-default));
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:where(.font-label).font-normal,
|
|
90
|
+
:where(.font-label) > .font-normal {
|
|
91
|
+
font-weight: var(--font-label-weight-normal, var(--font-weight-display-normal));
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
:where(.font-label).font-medium,
|
|
95
|
+
:where(.font-label) > .font-medium {
|
|
96
|
+
font-weight: var(--font-label-weight-medium, var(--font-weight-display-medium));
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
:where(.font-label).font-strong,
|
|
100
|
+
:where(.font-label) > .font-strong {
|
|
101
|
+
font-weight: var(--font-label-weight-strong, var(--font-weight-display-strong));
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
:where(.font-code).font-default,
|
|
105
|
+
:where(.font-code) > .font-default {
|
|
106
|
+
font-weight: var(--font-code-weight-default, var(--font-weight-display-default));
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
:where(.font-code).font-normal,
|
|
110
|
+
:where(.font-code) > .font-normal {
|
|
111
|
+
font-weight: var(--font-code-weight-normal, var(--font-weight-display-normal));
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
:where(.font-code).font-medium,
|
|
115
|
+
:where(.font-code) > .font-medium {
|
|
116
|
+
font-weight: var(--font-code-weight-medium, var(--font-weight-display-medium));
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
:where(.font-code).font-strong,
|
|
120
|
+
:where(.font-code) > .font-strong {
|
|
121
|
+
font-weight: var(--font-code-weight-strong, var(--font-weight-display-strong));
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.font-display {
|
|
125
|
+
font-family: var(--font-heading);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.font-display.font-xl,
|
|
129
|
+
.font-display > .font-xl {
|
|
130
|
+
font-size: calc(var(--font-size-display-xl) * var(--font-size-display-multiplier));
|
|
131
|
+
letter-spacing: -0.05em;
|
|
132
|
+
line-height: calc(var(--line-height-display-xl) * var(--line-height-display-multiplier));
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.font-display.font-l,
|
|
136
|
+
.font-display > .font-l {
|
|
137
|
+
font-size: calc(var(--font-size-display-l) * var(--font-size-display-multiplier));
|
|
138
|
+
letter-spacing: -0.04em;
|
|
139
|
+
line-height: calc(var(--line-height-display-l) * var(--line-height-display-multiplier));
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.font-display.font-m,
|
|
143
|
+
.font-display > .font-m {
|
|
144
|
+
font-size: calc(var(--font-size-display-m) * var(--font-size-display-multiplier));
|
|
145
|
+
letter-spacing: -0.03em;
|
|
146
|
+
line-height: calc(var(--line-height-display-m) * var(--line-height-display-multiplier));
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.font-display.font-s,
|
|
150
|
+
.font-display > .font-s {
|
|
151
|
+
font-size: calc(var(--font-size-display-s) * var(--font-size-display-multiplier));
|
|
152
|
+
letter-spacing: -0.02em;
|
|
153
|
+
line-height: calc(var(--line-height-display-s) * var(--line-height-display-multiplier));
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.font-display.font-xs,
|
|
157
|
+
.font-display > .font-xs {
|
|
158
|
+
font-size: calc(var(--font-size-display-xs) * var(--font-size-display-multiplier));
|
|
159
|
+
line-height: calc(var(--line-height-display-xs) * var(--line-height-display-multiplier));
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.font-heading {
|
|
163
|
+
font-family: var(--font-heading);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.font-heading.font-xl,
|
|
167
|
+
.font-heading > .font-xl {
|
|
168
|
+
font-size: calc(var(--font-size-heading-xl) * var(--font-size-heading-multiplier));
|
|
169
|
+
line-height: calc(var(--line-height-heading-xl) * var(--line-height-heading-multiplier));
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.font-heading.font-l,
|
|
173
|
+
.font-heading > .font-l {
|
|
174
|
+
font-size: calc(var(--font-size-heading-l) * var(--font-size-heading-multiplier));
|
|
175
|
+
line-height: calc(var(--line-height-heading-l) * var(--line-height-heading-multiplier));
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.font-heading.font-m,
|
|
179
|
+
.font-heading > .font-m {
|
|
180
|
+
font-size: calc(var(--font-size-heading-m) * var(--font-size-heading-multiplier));
|
|
181
|
+
line-height: calc(var(--line-height-heading-m) * var(--line-height-heading-multiplier));
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.font-heading.font-s,
|
|
185
|
+
.font-heading > .font-s {
|
|
186
|
+
font-size: calc(var(--font-size-heading-s) * var(--font-size-heading-multiplier));
|
|
187
|
+
line-height: calc(var(--line-height-heading-s) * var(--line-height-heading-multiplier));
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.font-heading.font-xs,
|
|
191
|
+
.font-heading > .font-xs {
|
|
192
|
+
font-size: calc(var(--font-size-heading-xs) * var(--font-size-heading-multiplier));
|
|
193
|
+
line-height: calc(var(--line-height-heading-xs) * var(--line-height-heading-multiplier));
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.font-body {
|
|
197
|
+
font-family: var(--font-body);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.font-body.font-xl,
|
|
201
|
+
.font-body > .font-xl {
|
|
202
|
+
font-size: calc(var(--font-size-body-xl) * var(--font-size-body-multiplier));
|
|
203
|
+
line-height: calc(var(--line-height-body-xl) * var(--line-height-body-multiplier));
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.font-body.font-l,
|
|
207
|
+
.font-body > .font-l {
|
|
208
|
+
font-size: calc(var(--font-size-body-l) * var(--font-size-body-multiplier));
|
|
209
|
+
line-height: calc(var(--line-height-body-l) * var(--line-height-body-multiplier));
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.font-body.font-m,
|
|
213
|
+
.font-body > .font-m {
|
|
214
|
+
font-size: calc(var(--font-size-body-m) * var(--font-size-body-multiplier));
|
|
215
|
+
line-height: calc(var(--line-height-body-m) * var(--line-height-body-multiplier));
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.font-body.font-s,
|
|
219
|
+
.font-body > .font-s {
|
|
220
|
+
font-size: calc(var(--font-size-body-s) * var(--font-size-body-multiplier));
|
|
221
|
+
line-height: calc(var(--line-height-body-s) * var(--line-height-body-multiplier));
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.font-body.font-xs,
|
|
225
|
+
.font-body > .font-xs {
|
|
226
|
+
font-size: calc(var(--font-size-body-xs) * var(--font-size-body-multiplier));
|
|
227
|
+
line-height: calc(var(--line-height-body-xs) * var(--line-height-body-multiplier));
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.font-label {
|
|
231
|
+
font-family: var(--font-label);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.font-label.font-xl,
|
|
235
|
+
.font-label > .font-xl {
|
|
236
|
+
font-size: calc(var(--font-size-label-xl) * var(--font-size-label-multiplier));
|
|
237
|
+
line-height: calc(var(--line-height-label-xl) * var(--line-height-label-multiplier));
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.font-label.font-l,
|
|
241
|
+
.font-label > .font-l {
|
|
242
|
+
font-size: calc(var(--font-size-label-l) * var(--font-size-label-multiplier));
|
|
243
|
+
line-height: calc(var(--line-height-label-l) * var(--line-height-label-multiplier));
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.font-label.font-m,
|
|
247
|
+
.font-label > .font-m {
|
|
248
|
+
font-size: calc(var(--font-size-label-m) * var(--font-size-label-multiplier));
|
|
249
|
+
line-height: calc(var(--line-height-label-m) * var(--line-height-label-multiplier));
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.font-label.font-s,
|
|
253
|
+
.font-label > .font-s {
|
|
254
|
+
font-size: calc(var(--font-size-label-s) * var(--font-size-label-multiplier));
|
|
255
|
+
line-height: calc(var(--line-height-label-s) * var(--line-height-label-multiplier));
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.font-label.font-xs,
|
|
259
|
+
.font-label > .font-xs {
|
|
260
|
+
font-size: calc(var(--font-size-label-xs) * var(--font-size-label-multiplier));
|
|
261
|
+
line-height: calc(var(--line-height-label-xs) * var(--line-height-label-multiplier));
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.font-code {
|
|
265
|
+
font-family: var(--font-code);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.font-code.font-xl,
|
|
269
|
+
.font-code > .font-xl {
|
|
270
|
+
font-size: calc(var(--font-size-label-xl) * var(--font-size-label-multiplier));
|
|
271
|
+
line-height: calc(var(--line-height-label-xl) * var(--line-height-label-multiplier));
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.font-code.font-l,
|
|
275
|
+
.font-code > .font-l {
|
|
276
|
+
font-size: calc(var(--font-size-label-l) * var(--font-size-label-multiplier));
|
|
277
|
+
line-height: calc(var(--line-height-label-l) * var(--line-height-label-multiplier));
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.font-code.font-m,
|
|
281
|
+
.font-code > .font-m {
|
|
282
|
+
font-size: calc(var(--font-size-label-m) * var(--font-size-label-multiplier));
|
|
283
|
+
line-height: calc(var(--line-height-label-m) * var(--line-height-label-multiplier));
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.font-code.font-s,
|
|
287
|
+
.font-code > .font-s {
|
|
288
|
+
font-size: calc(var(--font-size-label-s) * var(--font-size-label-multiplier));
|
|
289
|
+
line-height: calc(var(--line-height-label-s) * var(--line-height-label-multiplier));
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.font-code.font-xs,
|
|
293
|
+
.font-code > .font-xs {
|
|
294
|
+
font-size: calc(var(--font-size-label-xs) * var(--font-size-label-multiplier));
|
|
295
|
+
line-height: calc(var(--line-height-label-xs) * var(--line-height-label-multiplier));
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.font-family-display {
|
|
299
|
+
font-family: var(--font-heading);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.font-family-heading {
|
|
303
|
+
font-family: var(--font-heading);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.font-family-body {
|
|
307
|
+
font-family: var(--font-body);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.font-family-label {
|
|
311
|
+
font-family: var(--font-label);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.font-family-code {
|
|
315
|
+
font-family: var(--font-code);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
@media (max-width: 1024px) {
|
|
319
|
+
html {
|
|
320
|
+
font-size: var(--font-scaling-tablet);
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
@media (max-width: 768px) {
|
|
325
|
+
html {
|
|
326
|
+
font-size: var(--font-scaling-mobile);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
@media (max-width: 480px) {
|
|
331
|
+
html {
|
|
332
|
+
font-size: var(--font-scaling-mobile);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.text-decoration-none {
|
|
2
|
+
text-decoration: none;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.reset-button-styles {
|
|
6
|
+
background: none;
|
|
7
|
+
padding: 0;
|
|
8
|
+
outline: 0;
|
|
9
|
+
border: 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.focus-ring {
|
|
13
|
+
&:focus-visible {
|
|
14
|
+
outline: var(--static-space-2) solid var(--brand-solid-strong);
|
|
15
|
+
outline-offset: 2px;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.truncate {
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
text-overflow: ellipsis;
|
|
22
|
+
white-space: nowrap;
|
|
23
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
[data-border="playful"] {
|
|
2
|
+
--radius-xs: 0.25rem;
|
|
3
|
+
--radius-xs-nest-4: 0.375rem;
|
|
4
|
+
--radius-xs-nest-8: 0.5rem;
|
|
5
|
+
|
|
6
|
+
--radius-s: 0.5rem;
|
|
7
|
+
--radius-s-nest-4: 0.75rem;
|
|
8
|
+
--radius-s-nest-8: 1rem;
|
|
9
|
+
|
|
10
|
+
--radius-m: 0.75rem;
|
|
11
|
+
--radius-m-nest-4: 1rem;
|
|
12
|
+
--radius-m-nest-8: 1.25rem;
|
|
13
|
+
|
|
14
|
+
--radius-l: 1rem;
|
|
15
|
+
--radius-l-nest-4: 1.25rem;
|
|
16
|
+
--radius-l-nest-8: 1.625rem;
|
|
17
|
+
|
|
18
|
+
--radius-xl: 1.25rem;
|
|
19
|
+
--radius-xl-nest-4: 1.5rem;
|
|
20
|
+
--radius-xl-nest-8: 1.875rem;
|
|
21
|
+
|
|
22
|
+
--radius-full: 999rem;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
[data-border="conservative"] {
|
|
26
|
+
--radius-xs: 0.125rem;
|
|
27
|
+
--radius-xs-nest-4: 0.25rem;
|
|
28
|
+
--radius-xs-nest-8: 0.375rem;
|
|
29
|
+
|
|
30
|
+
--radius-s: 0.25rem;
|
|
31
|
+
--radius-s-nest-4: 0.375rem;
|
|
32
|
+
--radius-s-nest-8: 0.5rem;
|
|
33
|
+
|
|
34
|
+
--radius-m: 0.375rem;
|
|
35
|
+
--radius-m-nest-4: 0.5rem;
|
|
36
|
+
--radius-m-nest-8: 0.625rem;
|
|
37
|
+
|
|
38
|
+
--radius-l: 0.625rem;
|
|
39
|
+
--radius-l-nest-4: 0.875rem;
|
|
40
|
+
--radius-l-nest-8: 1.125rem;
|
|
41
|
+
|
|
42
|
+
--radius-xl: 0.75rem;
|
|
43
|
+
--radius-xl-nest-4: 1rem;
|
|
44
|
+
--radius-xl-nest-8: 1.25rem;
|
|
45
|
+
|
|
46
|
+
--radius-full: 999rem;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
[data-border="rounded"] {
|
|
50
|
+
--radius-xs: 1rem;
|
|
51
|
+
--radius-xs-nest-4: 1.25rem;
|
|
52
|
+
--radius-xs-nest-8: 1.5rem;
|
|
53
|
+
|
|
54
|
+
--radius-s: 1.25rem;
|
|
55
|
+
--radius-s-nest-4: 1.5rem;
|
|
56
|
+
--radius-s-nest-8: 2rem;
|
|
57
|
+
|
|
58
|
+
--radius-m: 1.25rem;
|
|
59
|
+
--radius-m-nest-4: 1.5rem;
|
|
60
|
+
--radius-m-nest-8: 1.875rem;
|
|
61
|
+
|
|
62
|
+
--radius-l: 1.75rem;
|
|
63
|
+
--radius-l-nest-4: 2rem;
|
|
64
|
+
--radius-l-nest-8: 2.5rem;
|
|
65
|
+
|
|
66
|
+
--radius-xl: 2rem;
|
|
67
|
+
--radius-xl-nest-4: 2.25rem;
|
|
68
|
+
--radius-xl-nest-8: 2.75rem;
|
|
69
|
+
|
|
70
|
+
--radius-full: 999rem;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
[data-border="sharp"] {
|
|
74
|
+
--radius-xs: 0;
|
|
75
|
+
--radius-xs-nest-4: 0;
|
|
76
|
+
--radius-xs-nest-8: 0;
|
|
77
|
+
|
|
78
|
+
--radius-s: 0;
|
|
79
|
+
--radius-s-nest-4: 0;
|
|
80
|
+
--radius-s-nest-8: 0;
|
|
81
|
+
|
|
82
|
+
--radius-m: 0;
|
|
83
|
+
--radius-m-nest-4: 0;
|
|
84
|
+
--radius-m-nest-8: 0;
|
|
85
|
+
|
|
86
|
+
--radius-l: 0;
|
|
87
|
+
--radius-l-nest-4: 0;
|
|
88
|
+
--radius-l-nest-8: 0;
|
|
89
|
+
|
|
90
|
+
--radius-xl: 0;
|
|
91
|
+
--radius-xl-nest-4: 0;
|
|
92
|
+
--radius-xl-nest-8: 0;
|
|
93
|
+
|
|
94
|
+
--radius-full: 999rem;
|
|
95
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
[data-theme="dark"] {
|
|
2
|
+
--data-blue: var(--scheme-blue-400);
|
|
3
|
+
--data-aqua: var(--scheme-aqua-400);
|
|
4
|
+
--data-magenta: var(--scheme-magenta-400);
|
|
5
|
+
--data-pink: var(--scheme-pink-400);
|
|
6
|
+
--data-yellow: var(--scheme-yellow-400);
|
|
7
|
+
--data-orange: var(--scheme-orange-400);
|
|
8
|
+
--data-red: var(--scheme-red-400);
|
|
9
|
+
--data-moss: var(--scheme-moss-400);
|
|
10
|
+
--data-green: var(--scheme-green-400);
|
|
11
|
+
--data-emerald: var(--scheme-emerald-400);
|
|
12
|
+
--data-cyan: var(--scheme-cyan-400);
|
|
13
|
+
--data-violet: var(--scheme-violet-400);
|
|
14
|
+
--data-indigo: var(--scheme-indigo-400);
|
|
15
|
+
--data-gray: var(--scheme-gray-400);
|
|
16
|
+
--data-contrast: var(--static-white);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-theme="dark"] [data-viz-style="divergent"] {
|
|
20
|
+
--data-blue: var(--scheme-red-400);
|
|
21
|
+
--data-aqua: var(--scheme-red-500);
|
|
22
|
+
--data-magenta: var(--scheme-orange-500);
|
|
23
|
+
--data-pink: var(--scheme-orange-600);
|
|
24
|
+
--data-yellow: var(--scheme-yellow-700);
|
|
25
|
+
--data-orange: var(--scheme-yellow-800);
|
|
26
|
+
--data-red: var(--scheme-yellow-900);
|
|
27
|
+
--data-moss: var(--scheme-moss-1000);
|
|
28
|
+
--data-green: var(--scheme-moss-900);
|
|
29
|
+
--data-emerald: var(--scheme-green-800);
|
|
30
|
+
--data-cyan: var(--scheme-aqua-700);
|
|
31
|
+
--data-violet: var(--scheme-aqua-600);
|
|
32
|
+
--data-indigo: var(--scheme-cyan-400);
|
|
33
|
+
--data-gray: var(--scheme-gray-400);
|
|
34
|
+
--data-contrast: var(--static-white);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
[data-theme="dark"] [data-viz-style="sequential"] {
|
|
38
|
+
--data-blue: var(--function-brand-200);
|
|
39
|
+
--data-aqua: var(--function-brand-300);
|
|
40
|
+
--data-magenta: var(--function-brand-400);
|
|
41
|
+
--data-pink: var(--function-brand-500);
|
|
42
|
+
--data-yellow: var(--function-brand-600);
|
|
43
|
+
--data-orange: var(--function-brand-700);
|
|
44
|
+
--data-red: var(--function-brand-800);
|
|
45
|
+
--data-moss: var(--function-brand-900);
|
|
46
|
+
--data-green: var(--function-brand-1000);
|
|
47
|
+
--data-emerald: var(--function-brand-1100);
|
|
48
|
+
--data-cyan: var(--function-brand-1200);
|
|
49
|
+
--data-violet: var(--function-brand-1200);
|
|
50
|
+
--data-indigo: var(--function-brand-1200);
|
|
51
|
+
--data-gray: var(--scheme-gray-400);
|
|
52
|
+
--data-contrast: var(--static-white);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
[data-theme="light"] {
|
|
56
|
+
--data-blue: var(--scheme-blue-400);
|
|
57
|
+
--data-indigo: var(--scheme-indigo-400);
|
|
58
|
+
--data-green: var(--scheme-green-400);
|
|
59
|
+
--data-aqua: var(--scheme-aqua-400);
|
|
60
|
+
--data-violet: var(--scheme-violet-400);
|
|
61
|
+
--data-orange: var(--scheme-orange-400);
|
|
62
|
+
--data-red: var(--scheme-red-400);
|
|
63
|
+
--data-cyan: var(--scheme-cyan-400);
|
|
64
|
+
--data-magenta: var(--scheme-magenta-400);
|
|
65
|
+
--data-pink: var(--scheme-pink-400);
|
|
66
|
+
--data-moss: var(--scheme-moss-400);
|
|
67
|
+
--data-emerald: var(--scheme-emerald-400);
|
|
68
|
+
--data-yellow: var(--scheme-yellow-400);
|
|
69
|
+
--data-gray: var(--scheme-gray-400);
|
|
70
|
+
--data-contrast: var(--static-black);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
[data-theme="light"] [data-viz-style="divergent"] {
|
|
74
|
+
--data-blue: var(--scheme-red-300);
|
|
75
|
+
--data-aqua: var(--scheme-red-400);
|
|
76
|
+
--data-magenta: var(--scheme-orange-400);
|
|
77
|
+
--data-pink: var(--scheme-orange-500);
|
|
78
|
+
--data-yellow: var(--scheme-yellow-500);
|
|
79
|
+
--data-orange: var(--scheme-yellow-600);
|
|
80
|
+
--data-red: var(--scheme-yellow-700);
|
|
81
|
+
--data-moss: var(--scheme-moss-800);
|
|
82
|
+
--data-green: var(--scheme-moss-900);
|
|
83
|
+
--data-emerald: var(--scheme-green-800);
|
|
84
|
+
--data-cyan: var(--scheme-aqua-700);
|
|
85
|
+
--data-violet: var(--scheme-aqua-600);
|
|
86
|
+
--data-indigo: var(--scheme-cyan-400);
|
|
87
|
+
--data-gray: var(--scheme-gray-400);
|
|
88
|
+
--data-contrast: var(--static-black);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
[data-theme="light"] [data-viz-style="sequential"] {
|
|
92
|
+
--data-blue: var(--function-brand-200);
|
|
93
|
+
--data-aqua: var(--function-brand-200);
|
|
94
|
+
--data-magenta: var(--function-brand-200);
|
|
95
|
+
--data-pink: var(--function-brand-300);
|
|
96
|
+
--data-yellow: var(--function-brand-400);
|
|
97
|
+
--data-orange: var(--function-brand-500);
|
|
98
|
+
--data-red: var(--function-brand-600);
|
|
99
|
+
--data-moss: var(--function-brand-700);
|
|
100
|
+
--data-green: var(--function-brand-800);
|
|
101
|
+
--data-emerald: var(--function-brand-900);
|
|
102
|
+
--data-cyan: var(--function-brand-1000);
|
|
103
|
+
--data-violet: var(--function-brand-1100);
|
|
104
|
+
--data-indigo: var(--function-brand-1100);
|
|
105
|
+
--data-gray: var(--scheme-gray-400);
|
|
106
|
+
--data-contrast: var(--static-black);
|
|
107
|
+
}
|