@asafarim/design-tokens 0.1.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/CHANGELOG.md +13 -0
- package/LICENSE +21 -0
- package/README.md +139 -0
- package/dist/build/index.cjs +166 -0
- package/dist/build/index.cjs.map +1 -0
- package/dist/build/index.d.cts +30 -0
- package/dist/build/index.d.ts +30 -0
- package/dist/build/index.js +135 -0
- package/dist/build/index.js.map +1 -0
- package/dist/css/index.css +8 -0
- package/dist/css/tokens.base.css +121 -0
- package/dist/css/tokens.dark.css +50 -0
- package/dist/css/tokens.density.comfortable.css +6 -0
- package/dist/css/tokens.density.compact.css +6 -0
- package/dist/css/tokens.high-contrast.css +50 -0
- package/dist/css/tokens.light.css +50 -0
- package/dist/css/tokens.rtl.css +3 -0
- package/dist/css/tokens.utilities.css +16 -0
- package/dist/index.cjs +1042 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1118 -0
- package/dist/index.d.ts +1118 -0
- package/dist/index.js +1015 -0
- package/dist/index.js.map +1 -0
- package/package.json +75 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,1118 @@
|
|
|
1
|
+
type Token<T extends string | number = string> = {
|
|
2
|
+
value: T;
|
|
3
|
+
description: string;
|
|
4
|
+
meta?: Record<string, unknown>;
|
|
5
|
+
};
|
|
6
|
+
type ThemeName = "light" | "dark" | "high-contrast";
|
|
7
|
+
type ThemeDefinition = {
|
|
8
|
+
name: ThemeName;
|
|
9
|
+
tokens: Record<string, string | number>;
|
|
10
|
+
};
|
|
11
|
+
type DensityName = "compact" | "comfortable";
|
|
12
|
+
type DensityDefinition = {
|
|
13
|
+
name: DensityName;
|
|
14
|
+
tokens: Record<string, string | number>;
|
|
15
|
+
};
|
|
16
|
+
type TokenTree = Record<string, unknown>;
|
|
17
|
+
type ValidateResult = {
|
|
18
|
+
ok: boolean;
|
|
19
|
+
errors: string[];
|
|
20
|
+
warnings: string[];
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
declare const themes: {
|
|
24
|
+
readonly light: ThemeDefinition;
|
|
25
|
+
readonly dark: ThemeDefinition;
|
|
26
|
+
readonly highContrast: ThemeDefinition;
|
|
27
|
+
readonly density: {
|
|
28
|
+
readonly compact: DensityDefinition;
|
|
29
|
+
readonly comfortable: DensityDefinition;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
declare const brand: {
|
|
34
|
+
readonly primary50: {
|
|
35
|
+
value: string;
|
|
36
|
+
description: string;
|
|
37
|
+
};
|
|
38
|
+
readonly primary100: {
|
|
39
|
+
value: string;
|
|
40
|
+
description: string;
|
|
41
|
+
};
|
|
42
|
+
readonly primary200: {
|
|
43
|
+
value: string;
|
|
44
|
+
description: string;
|
|
45
|
+
};
|
|
46
|
+
readonly primary300: {
|
|
47
|
+
value: string;
|
|
48
|
+
description: string;
|
|
49
|
+
};
|
|
50
|
+
readonly primary400: {
|
|
51
|
+
value: string;
|
|
52
|
+
description: string;
|
|
53
|
+
};
|
|
54
|
+
readonly primary500: {
|
|
55
|
+
value: string;
|
|
56
|
+
description: string;
|
|
57
|
+
meta: {
|
|
58
|
+
wcag: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
readonly primary600: {
|
|
62
|
+
value: string;
|
|
63
|
+
description: string;
|
|
64
|
+
};
|
|
65
|
+
readonly primary700: {
|
|
66
|
+
value: string;
|
|
67
|
+
description: string;
|
|
68
|
+
};
|
|
69
|
+
readonly secondary500: {
|
|
70
|
+
value: string;
|
|
71
|
+
description: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
declare const neutral: {
|
|
76
|
+
readonly gray900: {
|
|
77
|
+
value: string;
|
|
78
|
+
description: string;
|
|
79
|
+
};
|
|
80
|
+
readonly gray700: {
|
|
81
|
+
value: string;
|
|
82
|
+
description: string;
|
|
83
|
+
};
|
|
84
|
+
readonly gray500: {
|
|
85
|
+
value: string;
|
|
86
|
+
description: string;
|
|
87
|
+
};
|
|
88
|
+
readonly gray300: {
|
|
89
|
+
value: string;
|
|
90
|
+
description: string;
|
|
91
|
+
};
|
|
92
|
+
readonly gray50: {
|
|
93
|
+
value: string;
|
|
94
|
+
description: string;
|
|
95
|
+
};
|
|
96
|
+
readonly white: {
|
|
97
|
+
value: string;
|
|
98
|
+
description: string;
|
|
99
|
+
};
|
|
100
|
+
readonly black: {
|
|
101
|
+
value: string;
|
|
102
|
+
description: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
declare const semantic: {
|
|
107
|
+
readonly success: {
|
|
108
|
+
value: string;
|
|
109
|
+
description: string;
|
|
110
|
+
};
|
|
111
|
+
readonly successSubtle: {
|
|
112
|
+
value: string;
|
|
113
|
+
description: string;
|
|
114
|
+
};
|
|
115
|
+
readonly warning: {
|
|
116
|
+
value: string;
|
|
117
|
+
description: string;
|
|
118
|
+
};
|
|
119
|
+
readonly warningSubtle: {
|
|
120
|
+
value: string;
|
|
121
|
+
description: string;
|
|
122
|
+
};
|
|
123
|
+
readonly error: {
|
|
124
|
+
value: string;
|
|
125
|
+
description: string;
|
|
126
|
+
};
|
|
127
|
+
readonly errorSubtle: {
|
|
128
|
+
value: string;
|
|
129
|
+
description: string;
|
|
130
|
+
};
|
|
131
|
+
readonly info: {
|
|
132
|
+
value: string;
|
|
133
|
+
description: string;
|
|
134
|
+
};
|
|
135
|
+
readonly infoSubtle: {
|
|
136
|
+
value: string;
|
|
137
|
+
description: string;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
declare const accent: {
|
|
142
|
+
readonly purple500: {
|
|
143
|
+
value: string;
|
|
144
|
+
description: string;
|
|
145
|
+
};
|
|
146
|
+
readonly cyan500: {
|
|
147
|
+
value: string;
|
|
148
|
+
description: string;
|
|
149
|
+
};
|
|
150
|
+
readonly pink500: {
|
|
151
|
+
value: string;
|
|
152
|
+
description: string;
|
|
153
|
+
};
|
|
154
|
+
readonly lime500: {
|
|
155
|
+
value: string;
|
|
156
|
+
description: string;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
declare const dataViz: {
|
|
161
|
+
readonly series1: {
|
|
162
|
+
value: string;
|
|
163
|
+
description: string;
|
|
164
|
+
};
|
|
165
|
+
readonly series2: {
|
|
166
|
+
value: string;
|
|
167
|
+
description: string;
|
|
168
|
+
};
|
|
169
|
+
readonly series3: {
|
|
170
|
+
value: string;
|
|
171
|
+
description: string;
|
|
172
|
+
};
|
|
173
|
+
readonly series4: {
|
|
174
|
+
value: string;
|
|
175
|
+
description: string;
|
|
176
|
+
};
|
|
177
|
+
readonly series5: {
|
|
178
|
+
value: string;
|
|
179
|
+
description: string;
|
|
180
|
+
};
|
|
181
|
+
readonly series6: {
|
|
182
|
+
value: string;
|
|
183
|
+
description: string;
|
|
184
|
+
};
|
|
185
|
+
readonly series7: {
|
|
186
|
+
value: string;
|
|
187
|
+
description: string;
|
|
188
|
+
};
|
|
189
|
+
readonly series8: {
|
|
190
|
+
value: string;
|
|
191
|
+
description: string;
|
|
192
|
+
};
|
|
193
|
+
readonly series9: {
|
|
194
|
+
value: string;
|
|
195
|
+
description: string;
|
|
196
|
+
};
|
|
197
|
+
readonly series10: {
|
|
198
|
+
value: string;
|
|
199
|
+
description: string;
|
|
200
|
+
};
|
|
201
|
+
readonly series11: {
|
|
202
|
+
value: string;
|
|
203
|
+
description: string;
|
|
204
|
+
};
|
|
205
|
+
readonly series12: {
|
|
206
|
+
value: string;
|
|
207
|
+
description: string;
|
|
208
|
+
};
|
|
209
|
+
readonly gridline: {
|
|
210
|
+
value: string;
|
|
211
|
+
description: string;
|
|
212
|
+
};
|
|
213
|
+
readonly axis: {
|
|
214
|
+
value: string;
|
|
215
|
+
description: string;
|
|
216
|
+
};
|
|
217
|
+
readonly tooltipBg: {
|
|
218
|
+
value: string;
|
|
219
|
+
description: string;
|
|
220
|
+
};
|
|
221
|
+
readonly tooltipText: {
|
|
222
|
+
value: string;
|
|
223
|
+
description: string;
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
declare const overlays: {
|
|
228
|
+
readonly scrimStrong: {
|
|
229
|
+
value: string;
|
|
230
|
+
description: string;
|
|
231
|
+
};
|
|
232
|
+
readonly scrim: {
|
|
233
|
+
value: string;
|
|
234
|
+
description: string;
|
|
235
|
+
};
|
|
236
|
+
readonly scrimSubtle: {
|
|
237
|
+
value: string;
|
|
238
|
+
description: string;
|
|
239
|
+
};
|
|
240
|
+
readonly glassFill: {
|
|
241
|
+
value: string;
|
|
242
|
+
description: string;
|
|
243
|
+
meta: {
|
|
244
|
+
note: string;
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
declare const gradients: {
|
|
250
|
+
readonly primary: {
|
|
251
|
+
value: string;
|
|
252
|
+
description: string;
|
|
253
|
+
};
|
|
254
|
+
readonly subtleHero: {
|
|
255
|
+
value: string;
|
|
256
|
+
description: string;
|
|
257
|
+
meta: {
|
|
258
|
+
note: string;
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
declare const color_accent: typeof accent;
|
|
264
|
+
declare const color_brand: typeof brand;
|
|
265
|
+
declare const color_dataViz: typeof dataViz;
|
|
266
|
+
declare const color_gradients: typeof gradients;
|
|
267
|
+
declare const color_neutral: typeof neutral;
|
|
268
|
+
declare const color_overlays: typeof overlays;
|
|
269
|
+
declare const color_semantic: typeof semantic;
|
|
270
|
+
declare namespace color {
|
|
271
|
+
export { color_accent as accent, color_brand as brand, color_dataViz as dataViz, color_gradients as gradients, color_neutral as neutral, color_overlays as overlays, color_semantic as semantic };
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
declare const families: {
|
|
275
|
+
readonly primary: {
|
|
276
|
+
value: string;
|
|
277
|
+
description: string;
|
|
278
|
+
};
|
|
279
|
+
readonly mono: {
|
|
280
|
+
value: string;
|
|
281
|
+
description: string;
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
|
|
285
|
+
declare const weights: {
|
|
286
|
+
readonly w100: {
|
|
287
|
+
value: number;
|
|
288
|
+
description: string;
|
|
289
|
+
};
|
|
290
|
+
readonly w200: {
|
|
291
|
+
value: number;
|
|
292
|
+
description: string;
|
|
293
|
+
};
|
|
294
|
+
readonly w300: {
|
|
295
|
+
value: number;
|
|
296
|
+
description: string;
|
|
297
|
+
};
|
|
298
|
+
readonly w400: {
|
|
299
|
+
value: number;
|
|
300
|
+
description: string;
|
|
301
|
+
};
|
|
302
|
+
readonly w500: {
|
|
303
|
+
value: number;
|
|
304
|
+
description: string;
|
|
305
|
+
};
|
|
306
|
+
readonly w600: {
|
|
307
|
+
value: number;
|
|
308
|
+
description: string;
|
|
309
|
+
};
|
|
310
|
+
readonly w700: {
|
|
311
|
+
value: number;
|
|
312
|
+
description: string;
|
|
313
|
+
};
|
|
314
|
+
readonly w800: {
|
|
315
|
+
value: number;
|
|
316
|
+
description: string;
|
|
317
|
+
};
|
|
318
|
+
readonly w900: {
|
|
319
|
+
value: number;
|
|
320
|
+
description: string;
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
declare const sizes$1: {
|
|
325
|
+
readonly xs: {
|
|
326
|
+
value: string;
|
|
327
|
+
description: string;
|
|
328
|
+
};
|
|
329
|
+
readonly sm: {
|
|
330
|
+
value: string;
|
|
331
|
+
description: string;
|
|
332
|
+
};
|
|
333
|
+
readonly md: {
|
|
334
|
+
value: string;
|
|
335
|
+
description: string;
|
|
336
|
+
};
|
|
337
|
+
readonly lg: {
|
|
338
|
+
value: string;
|
|
339
|
+
description: string;
|
|
340
|
+
};
|
|
341
|
+
readonly xl: {
|
|
342
|
+
value: string;
|
|
343
|
+
description: string;
|
|
344
|
+
};
|
|
345
|
+
readonly x2l: {
|
|
346
|
+
value: string;
|
|
347
|
+
description: string;
|
|
348
|
+
};
|
|
349
|
+
readonly x3l: {
|
|
350
|
+
value: string;
|
|
351
|
+
description: string;
|
|
352
|
+
};
|
|
353
|
+
readonly x4l: {
|
|
354
|
+
value: string;
|
|
355
|
+
description: string;
|
|
356
|
+
};
|
|
357
|
+
readonly x5l: {
|
|
358
|
+
value: string;
|
|
359
|
+
description: string;
|
|
360
|
+
};
|
|
361
|
+
readonly x6l: {
|
|
362
|
+
value: string;
|
|
363
|
+
description: string;
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
|
|
367
|
+
declare const lineHeights: {
|
|
368
|
+
readonly tight: {
|
|
369
|
+
value: number;
|
|
370
|
+
description: string;
|
|
371
|
+
};
|
|
372
|
+
readonly normal: {
|
|
373
|
+
value: number;
|
|
374
|
+
description: string;
|
|
375
|
+
};
|
|
376
|
+
readonly relaxed: {
|
|
377
|
+
value: number;
|
|
378
|
+
description: string;
|
|
379
|
+
};
|
|
380
|
+
readonly h1: {
|
|
381
|
+
value: number;
|
|
382
|
+
description: string;
|
|
383
|
+
};
|
|
384
|
+
readonly h2: {
|
|
385
|
+
value: number;
|
|
386
|
+
description: string;
|
|
387
|
+
};
|
|
388
|
+
readonly h3: {
|
|
389
|
+
value: number;
|
|
390
|
+
description: string;
|
|
391
|
+
};
|
|
392
|
+
readonly h4: {
|
|
393
|
+
value: number;
|
|
394
|
+
description: string;
|
|
395
|
+
};
|
|
396
|
+
readonly h5: {
|
|
397
|
+
value: number;
|
|
398
|
+
description: string;
|
|
399
|
+
};
|
|
400
|
+
readonly h6: {
|
|
401
|
+
value: number;
|
|
402
|
+
description: string;
|
|
403
|
+
};
|
|
404
|
+
};
|
|
405
|
+
|
|
406
|
+
declare const letterSpacing: {
|
|
407
|
+
readonly tight: {
|
|
408
|
+
value: string;
|
|
409
|
+
description: string;
|
|
410
|
+
};
|
|
411
|
+
readonly normal: {
|
|
412
|
+
value: string;
|
|
413
|
+
description: string;
|
|
414
|
+
};
|
|
415
|
+
readonly wide: {
|
|
416
|
+
value: string;
|
|
417
|
+
description: string;
|
|
418
|
+
};
|
|
419
|
+
};
|
|
420
|
+
|
|
421
|
+
declare const headings: {
|
|
422
|
+
readonly h1: {
|
|
423
|
+
value: string;
|
|
424
|
+
description: string;
|
|
425
|
+
meta: {
|
|
426
|
+
note: string;
|
|
427
|
+
};
|
|
428
|
+
};
|
|
429
|
+
readonly h2: {
|
|
430
|
+
value: string;
|
|
431
|
+
description: string;
|
|
432
|
+
};
|
|
433
|
+
readonly h3: {
|
|
434
|
+
value: string;
|
|
435
|
+
description: string;
|
|
436
|
+
};
|
|
437
|
+
readonly h4: {
|
|
438
|
+
value: string;
|
|
439
|
+
description: string;
|
|
440
|
+
};
|
|
441
|
+
readonly h5: {
|
|
442
|
+
value: string;
|
|
443
|
+
description: string;
|
|
444
|
+
};
|
|
445
|
+
readonly h6: {
|
|
446
|
+
value: string;
|
|
447
|
+
description: string;
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
|
|
451
|
+
declare const responsive: {
|
|
452
|
+
readonly bodyMaxWidth: {
|
|
453
|
+
value: string;
|
|
454
|
+
description: string;
|
|
455
|
+
};
|
|
456
|
+
readonly scaleMobile: {
|
|
457
|
+
value: number;
|
|
458
|
+
description: string;
|
|
459
|
+
meta: {
|
|
460
|
+
note: string;
|
|
461
|
+
};
|
|
462
|
+
};
|
|
463
|
+
readonly scaleTablet: {
|
|
464
|
+
value: number;
|
|
465
|
+
description: string;
|
|
466
|
+
};
|
|
467
|
+
readonly scaleDesktop: {
|
|
468
|
+
value: number;
|
|
469
|
+
description: string;
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
|
|
473
|
+
declare const typography_families: typeof families;
|
|
474
|
+
declare const typography_headings: typeof headings;
|
|
475
|
+
declare const typography_letterSpacing: typeof letterSpacing;
|
|
476
|
+
declare const typography_lineHeights: typeof lineHeights;
|
|
477
|
+
declare const typography_responsive: typeof responsive;
|
|
478
|
+
declare const typography_weights: typeof weights;
|
|
479
|
+
declare namespace typography {
|
|
480
|
+
export { typography_families as families, typography_headings as headings, typography_letterSpacing as letterSpacing, typography_lineHeights as lineHeights, typography_responsive as responsive, sizes$1 as sizes, typography_weights as weights };
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
declare const scale$1: {
|
|
484
|
+
readonly s0: {
|
|
485
|
+
value: string;
|
|
486
|
+
description: string;
|
|
487
|
+
};
|
|
488
|
+
readonly s1: {
|
|
489
|
+
value: string;
|
|
490
|
+
description: string;
|
|
491
|
+
};
|
|
492
|
+
readonly s2: {
|
|
493
|
+
value: string;
|
|
494
|
+
description: string;
|
|
495
|
+
};
|
|
496
|
+
readonly s3: {
|
|
497
|
+
value: string;
|
|
498
|
+
description: string;
|
|
499
|
+
};
|
|
500
|
+
readonly s4: {
|
|
501
|
+
value: string;
|
|
502
|
+
description: string;
|
|
503
|
+
};
|
|
504
|
+
readonly s5: {
|
|
505
|
+
value: string;
|
|
506
|
+
description: string;
|
|
507
|
+
};
|
|
508
|
+
readonly s6: {
|
|
509
|
+
value: string;
|
|
510
|
+
description: string;
|
|
511
|
+
};
|
|
512
|
+
readonly s8: {
|
|
513
|
+
value: string;
|
|
514
|
+
description: string;
|
|
515
|
+
};
|
|
516
|
+
readonly s10: {
|
|
517
|
+
value: string;
|
|
518
|
+
description: string;
|
|
519
|
+
};
|
|
520
|
+
readonly s12: {
|
|
521
|
+
value: string;
|
|
522
|
+
description: string;
|
|
523
|
+
};
|
|
524
|
+
readonly s16: {
|
|
525
|
+
value: string;
|
|
526
|
+
description: string;
|
|
527
|
+
};
|
|
528
|
+
};
|
|
529
|
+
|
|
530
|
+
declare const layout: {
|
|
531
|
+
readonly pagePaddingX: {
|
|
532
|
+
value: string;
|
|
533
|
+
description: string;
|
|
534
|
+
};
|
|
535
|
+
readonly pagePaddingY: {
|
|
536
|
+
value: string;
|
|
537
|
+
description: string;
|
|
538
|
+
};
|
|
539
|
+
readonly sectionGap: {
|
|
540
|
+
value: string;
|
|
541
|
+
description: string;
|
|
542
|
+
};
|
|
543
|
+
readonly componentGap: {
|
|
544
|
+
value: string;
|
|
545
|
+
description: string;
|
|
546
|
+
};
|
|
547
|
+
};
|
|
548
|
+
|
|
549
|
+
declare const grid: {
|
|
550
|
+
readonly columns: {
|
|
551
|
+
value: number;
|
|
552
|
+
description: string;
|
|
553
|
+
};
|
|
554
|
+
readonly gutter: {
|
|
555
|
+
value: string;
|
|
556
|
+
description: string;
|
|
557
|
+
};
|
|
558
|
+
readonly breakpoints: {
|
|
559
|
+
readonly xs: {
|
|
560
|
+
value: string;
|
|
561
|
+
description: string;
|
|
562
|
+
};
|
|
563
|
+
readonly sm: {
|
|
564
|
+
value: string;
|
|
565
|
+
description: string;
|
|
566
|
+
};
|
|
567
|
+
readonly md: {
|
|
568
|
+
value: string;
|
|
569
|
+
description: string;
|
|
570
|
+
};
|
|
571
|
+
readonly lg: {
|
|
572
|
+
value: string;
|
|
573
|
+
description: string;
|
|
574
|
+
};
|
|
575
|
+
readonly xl: {
|
|
576
|
+
value: string;
|
|
577
|
+
description: string;
|
|
578
|
+
};
|
|
579
|
+
readonly x2l: {
|
|
580
|
+
value: string;
|
|
581
|
+
description: string;
|
|
582
|
+
};
|
|
583
|
+
};
|
|
584
|
+
readonly containerWidths: {
|
|
585
|
+
readonly xs: {
|
|
586
|
+
value: string;
|
|
587
|
+
description: string;
|
|
588
|
+
};
|
|
589
|
+
readonly sm: {
|
|
590
|
+
value: string;
|
|
591
|
+
description: string;
|
|
592
|
+
};
|
|
593
|
+
readonly md: {
|
|
594
|
+
value: string;
|
|
595
|
+
description: string;
|
|
596
|
+
};
|
|
597
|
+
readonly lg: {
|
|
598
|
+
value: string;
|
|
599
|
+
description: string;
|
|
600
|
+
};
|
|
601
|
+
readonly xl: {
|
|
602
|
+
value: string;
|
|
603
|
+
description: string;
|
|
604
|
+
};
|
|
605
|
+
readonly x2l: {
|
|
606
|
+
value: string;
|
|
607
|
+
description: string;
|
|
608
|
+
};
|
|
609
|
+
};
|
|
610
|
+
};
|
|
611
|
+
|
|
612
|
+
declare const density: {
|
|
613
|
+
readonly compactFactor: {
|
|
614
|
+
value: number;
|
|
615
|
+
description: string;
|
|
616
|
+
};
|
|
617
|
+
readonly comfortableFactor: {
|
|
618
|
+
value: number;
|
|
619
|
+
description: string;
|
|
620
|
+
};
|
|
621
|
+
};
|
|
622
|
+
|
|
623
|
+
declare const rtl: {
|
|
624
|
+
readonly logicalInsetStart: {
|
|
625
|
+
value: string;
|
|
626
|
+
description: string;
|
|
627
|
+
};
|
|
628
|
+
readonly logicalInsetEnd: {
|
|
629
|
+
value: string;
|
|
630
|
+
description: string;
|
|
631
|
+
};
|
|
632
|
+
readonly logicalMarginStart: {
|
|
633
|
+
value: string;
|
|
634
|
+
description: string;
|
|
635
|
+
};
|
|
636
|
+
readonly logicalMarginEnd: {
|
|
637
|
+
value: string;
|
|
638
|
+
description: string;
|
|
639
|
+
};
|
|
640
|
+
};
|
|
641
|
+
|
|
642
|
+
declare const spacing_density: typeof density;
|
|
643
|
+
declare const spacing_grid: typeof grid;
|
|
644
|
+
declare const spacing_layout: typeof layout;
|
|
645
|
+
declare const spacing_rtl: typeof rtl;
|
|
646
|
+
declare namespace spacing {
|
|
647
|
+
export { spacing_density as density, spacing_grid as grid, spacing_layout as layout, spacing_rtl as rtl, scale$1 as scale };
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
declare const radii: {
|
|
651
|
+
readonly sm: {
|
|
652
|
+
value: string;
|
|
653
|
+
description: string;
|
|
654
|
+
};
|
|
655
|
+
readonly md: {
|
|
656
|
+
value: string;
|
|
657
|
+
description: string;
|
|
658
|
+
};
|
|
659
|
+
readonly lg: {
|
|
660
|
+
value: string;
|
|
661
|
+
description: string;
|
|
662
|
+
};
|
|
663
|
+
readonly xl: {
|
|
664
|
+
value: string;
|
|
665
|
+
description: string;
|
|
666
|
+
};
|
|
667
|
+
readonly full: {
|
|
668
|
+
value: string;
|
|
669
|
+
description: string;
|
|
670
|
+
};
|
|
671
|
+
};
|
|
672
|
+
|
|
673
|
+
declare const borders: {
|
|
674
|
+
readonly hairline: {
|
|
675
|
+
value: string;
|
|
676
|
+
description: string;
|
|
677
|
+
};
|
|
678
|
+
readonly thin: {
|
|
679
|
+
value: string;
|
|
680
|
+
description: string;
|
|
681
|
+
};
|
|
682
|
+
readonly thick: {
|
|
683
|
+
value: string;
|
|
684
|
+
description: string;
|
|
685
|
+
};
|
|
686
|
+
};
|
|
687
|
+
|
|
688
|
+
declare const strokes: {
|
|
689
|
+
readonly default: {
|
|
690
|
+
value: string;
|
|
691
|
+
description: string;
|
|
692
|
+
};
|
|
693
|
+
readonly strong: {
|
|
694
|
+
value: string;
|
|
695
|
+
description: string;
|
|
696
|
+
};
|
|
697
|
+
readonly dash: {
|
|
698
|
+
value: string;
|
|
699
|
+
description: string;
|
|
700
|
+
};
|
|
701
|
+
};
|
|
702
|
+
|
|
703
|
+
declare const shape_borders: typeof borders;
|
|
704
|
+
declare const shape_radii: typeof radii;
|
|
705
|
+
declare const shape_strokes: typeof strokes;
|
|
706
|
+
declare namespace shape {
|
|
707
|
+
export { shape_borders as borders, shape_radii as radii, shape_strokes as strokes };
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
declare const shadows: {
|
|
711
|
+
readonly sm: {
|
|
712
|
+
value: string;
|
|
713
|
+
description: string;
|
|
714
|
+
};
|
|
715
|
+
readonly md: {
|
|
716
|
+
value: string;
|
|
717
|
+
description: string;
|
|
718
|
+
};
|
|
719
|
+
readonly lg: {
|
|
720
|
+
value: string;
|
|
721
|
+
description: string;
|
|
722
|
+
};
|
|
723
|
+
readonly xl: {
|
|
724
|
+
value: string;
|
|
725
|
+
description: string;
|
|
726
|
+
};
|
|
727
|
+
};
|
|
728
|
+
|
|
729
|
+
declare const blur: {
|
|
730
|
+
readonly sm: {
|
|
731
|
+
value: string;
|
|
732
|
+
description: string;
|
|
733
|
+
};
|
|
734
|
+
readonly md: {
|
|
735
|
+
value: string;
|
|
736
|
+
description: string;
|
|
737
|
+
};
|
|
738
|
+
readonly lg: {
|
|
739
|
+
value: string;
|
|
740
|
+
description: string;
|
|
741
|
+
};
|
|
742
|
+
};
|
|
743
|
+
|
|
744
|
+
declare const opacity: {
|
|
745
|
+
readonly o0: {
|
|
746
|
+
value: number;
|
|
747
|
+
description: string;
|
|
748
|
+
};
|
|
749
|
+
readonly o10: {
|
|
750
|
+
value: number;
|
|
751
|
+
description: string;
|
|
752
|
+
};
|
|
753
|
+
readonly o20: {
|
|
754
|
+
value: number;
|
|
755
|
+
description: string;
|
|
756
|
+
};
|
|
757
|
+
readonly o40: {
|
|
758
|
+
value: number;
|
|
759
|
+
description: string;
|
|
760
|
+
};
|
|
761
|
+
readonly o60: {
|
|
762
|
+
value: number;
|
|
763
|
+
description: string;
|
|
764
|
+
};
|
|
765
|
+
readonly o80: {
|
|
766
|
+
value: number;
|
|
767
|
+
description: string;
|
|
768
|
+
};
|
|
769
|
+
readonly o100: {
|
|
770
|
+
value: number;
|
|
771
|
+
description: string;
|
|
772
|
+
};
|
|
773
|
+
};
|
|
774
|
+
|
|
775
|
+
declare const textures: {
|
|
776
|
+
readonly none: {
|
|
777
|
+
value: string;
|
|
778
|
+
description: string;
|
|
779
|
+
};
|
|
780
|
+
readonly noise: {
|
|
781
|
+
value: string;
|
|
782
|
+
description: string;
|
|
783
|
+
meta: {
|
|
784
|
+
note: string;
|
|
785
|
+
};
|
|
786
|
+
};
|
|
787
|
+
};
|
|
788
|
+
|
|
789
|
+
declare const effects_blur: typeof blur;
|
|
790
|
+
declare const effects_opacity: typeof opacity;
|
|
791
|
+
declare const effects_shadows: typeof shadows;
|
|
792
|
+
declare const effects_textures: typeof textures;
|
|
793
|
+
declare namespace effects {
|
|
794
|
+
export { effects_blur as blur, effects_opacity as opacity, effects_shadows as shadows, effects_textures as textures };
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
declare const duration: {
|
|
798
|
+
readonly fast: {
|
|
799
|
+
value: string;
|
|
800
|
+
description: string;
|
|
801
|
+
};
|
|
802
|
+
readonly normal: {
|
|
803
|
+
value: string;
|
|
804
|
+
description: string;
|
|
805
|
+
};
|
|
806
|
+
readonly slow: {
|
|
807
|
+
value: string;
|
|
808
|
+
description: string;
|
|
809
|
+
};
|
|
810
|
+
};
|
|
811
|
+
|
|
812
|
+
declare const easing: {
|
|
813
|
+
readonly standard: {
|
|
814
|
+
value: string;
|
|
815
|
+
description: string;
|
|
816
|
+
};
|
|
817
|
+
readonly emphasized: {
|
|
818
|
+
value: string;
|
|
819
|
+
description: string;
|
|
820
|
+
};
|
|
821
|
+
readonly entrance: {
|
|
822
|
+
value: string;
|
|
823
|
+
description: string;
|
|
824
|
+
};
|
|
825
|
+
readonly exit: {
|
|
826
|
+
value: string;
|
|
827
|
+
description: string;
|
|
828
|
+
};
|
|
829
|
+
};
|
|
830
|
+
|
|
831
|
+
declare const transitions: {
|
|
832
|
+
readonly fade: {
|
|
833
|
+
value: string;
|
|
834
|
+
description: string;
|
|
835
|
+
};
|
|
836
|
+
readonly slide: {
|
|
837
|
+
value: string;
|
|
838
|
+
description: string;
|
|
839
|
+
};
|
|
840
|
+
readonly scale: {
|
|
841
|
+
value: string;
|
|
842
|
+
description: string;
|
|
843
|
+
};
|
|
844
|
+
};
|
|
845
|
+
|
|
846
|
+
declare const reducedMotion: {
|
|
847
|
+
readonly disableTransitions: {
|
|
848
|
+
value: number;
|
|
849
|
+
description: string;
|
|
850
|
+
meta: {
|
|
851
|
+
hint: string;
|
|
852
|
+
};
|
|
853
|
+
};
|
|
854
|
+
};
|
|
855
|
+
|
|
856
|
+
declare const motion_duration: typeof duration;
|
|
857
|
+
declare const motion_easing: typeof easing;
|
|
858
|
+
declare const motion_reducedMotion: typeof reducedMotion;
|
|
859
|
+
declare const motion_transitions: typeof transitions;
|
|
860
|
+
declare namespace motion {
|
|
861
|
+
export { motion_duration as duration, motion_easing as easing, motion_reducedMotion as reducedMotion, motion_transitions as transitions };
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
declare const scale: {
|
|
865
|
+
readonly base: {
|
|
866
|
+
value: number;
|
|
867
|
+
description: string;
|
|
868
|
+
};
|
|
869
|
+
readonly dropdown: {
|
|
870
|
+
value: number;
|
|
871
|
+
description: string;
|
|
872
|
+
};
|
|
873
|
+
readonly sticky: {
|
|
874
|
+
value: number;
|
|
875
|
+
description: string;
|
|
876
|
+
};
|
|
877
|
+
readonly overlay: {
|
|
878
|
+
value: number;
|
|
879
|
+
description: string;
|
|
880
|
+
};
|
|
881
|
+
readonly modal: {
|
|
882
|
+
value: number;
|
|
883
|
+
description: string;
|
|
884
|
+
};
|
|
885
|
+
readonly popover: {
|
|
886
|
+
value: number;
|
|
887
|
+
description: string;
|
|
888
|
+
};
|
|
889
|
+
readonly tooltip: {
|
|
890
|
+
value: number;
|
|
891
|
+
description: string;
|
|
892
|
+
};
|
|
893
|
+
readonly toast: {
|
|
894
|
+
value: number;
|
|
895
|
+
description: string;
|
|
896
|
+
};
|
|
897
|
+
};
|
|
898
|
+
|
|
899
|
+
declare const zindex_scale: typeof scale;
|
|
900
|
+
declare namespace zindex {
|
|
901
|
+
export { zindex_scale as scale };
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
declare const sizes: {
|
|
905
|
+
readonly xs: {
|
|
906
|
+
value: string;
|
|
907
|
+
description: string;
|
|
908
|
+
};
|
|
909
|
+
readonly sm: {
|
|
910
|
+
value: string;
|
|
911
|
+
description: string;
|
|
912
|
+
};
|
|
913
|
+
readonly md: {
|
|
914
|
+
value: string;
|
|
915
|
+
description: string;
|
|
916
|
+
};
|
|
917
|
+
readonly lg: {
|
|
918
|
+
value: string;
|
|
919
|
+
description: string;
|
|
920
|
+
};
|
|
921
|
+
readonly xl: {
|
|
922
|
+
value: string;
|
|
923
|
+
description: string;
|
|
924
|
+
};
|
|
925
|
+
};
|
|
926
|
+
|
|
927
|
+
declare const strokeWidths: {
|
|
928
|
+
readonly thin: {
|
|
929
|
+
value: number;
|
|
930
|
+
description: string;
|
|
931
|
+
};
|
|
932
|
+
readonly regular: {
|
|
933
|
+
value: number;
|
|
934
|
+
description: string;
|
|
935
|
+
};
|
|
936
|
+
readonly bold: {
|
|
937
|
+
value: number;
|
|
938
|
+
description: string;
|
|
939
|
+
};
|
|
940
|
+
};
|
|
941
|
+
|
|
942
|
+
declare const iconography_sizes: typeof sizes;
|
|
943
|
+
declare const iconography_strokeWidths: typeof strokeWidths;
|
|
944
|
+
declare namespace iconography {
|
|
945
|
+
export { iconography_sizes as sizes, iconography_strokeWidths as strokeWidths };
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
declare const surface: {
|
|
949
|
+
readonly background: {
|
|
950
|
+
value: string;
|
|
951
|
+
description: string;
|
|
952
|
+
};
|
|
953
|
+
readonly surface: {
|
|
954
|
+
value: string;
|
|
955
|
+
description: string;
|
|
956
|
+
};
|
|
957
|
+
readonly surfaceMuted: {
|
|
958
|
+
value: string;
|
|
959
|
+
description: string;
|
|
960
|
+
};
|
|
961
|
+
readonly panel: {
|
|
962
|
+
value: string;
|
|
963
|
+
description: string;
|
|
964
|
+
};
|
|
965
|
+
readonly modal: {
|
|
966
|
+
value: string;
|
|
967
|
+
description: string;
|
|
968
|
+
};
|
|
969
|
+
};
|
|
970
|
+
|
|
971
|
+
declare const button: {
|
|
972
|
+
readonly primaryBg: {
|
|
973
|
+
value: string;
|
|
974
|
+
description: string;
|
|
975
|
+
};
|
|
976
|
+
readonly primaryText: {
|
|
977
|
+
value: string;
|
|
978
|
+
description: string;
|
|
979
|
+
};
|
|
980
|
+
readonly primaryBgHover: {
|
|
981
|
+
value: string;
|
|
982
|
+
description: string;
|
|
983
|
+
};
|
|
984
|
+
readonly primaryBgActive: {
|
|
985
|
+
value: string;
|
|
986
|
+
description: string;
|
|
987
|
+
};
|
|
988
|
+
readonly secondaryBg: {
|
|
989
|
+
value: string;
|
|
990
|
+
description: string;
|
|
991
|
+
};
|
|
992
|
+
readonly secondaryText: {
|
|
993
|
+
value: string;
|
|
994
|
+
description: string;
|
|
995
|
+
};
|
|
996
|
+
readonly ghostBgHover: {
|
|
997
|
+
value: string;
|
|
998
|
+
description: string;
|
|
999
|
+
};
|
|
1000
|
+
readonly destructiveBg: {
|
|
1001
|
+
value: string;
|
|
1002
|
+
description: string;
|
|
1003
|
+
};
|
|
1004
|
+
readonly destructiveText: {
|
|
1005
|
+
value: string;
|
|
1006
|
+
description: string;
|
|
1007
|
+
};
|
|
1008
|
+
readonly disabledBg: {
|
|
1009
|
+
value: string;
|
|
1010
|
+
description: string;
|
|
1011
|
+
};
|
|
1012
|
+
readonly disabledText: {
|
|
1013
|
+
value: string;
|
|
1014
|
+
description: string;
|
|
1015
|
+
};
|
|
1016
|
+
};
|
|
1017
|
+
|
|
1018
|
+
declare const input: {
|
|
1019
|
+
readonly bg: {
|
|
1020
|
+
value: string;
|
|
1021
|
+
description: string;
|
|
1022
|
+
};
|
|
1023
|
+
readonly text: {
|
|
1024
|
+
value: string;
|
|
1025
|
+
description: string;
|
|
1026
|
+
};
|
|
1027
|
+
readonly border: {
|
|
1028
|
+
value: string;
|
|
1029
|
+
description: string;
|
|
1030
|
+
};
|
|
1031
|
+
readonly borderHover: {
|
|
1032
|
+
value: string;
|
|
1033
|
+
description: string;
|
|
1034
|
+
};
|
|
1035
|
+
readonly borderFocus: {
|
|
1036
|
+
value: string;
|
|
1037
|
+
description: string;
|
|
1038
|
+
};
|
|
1039
|
+
readonly placeholder: {
|
|
1040
|
+
value: string;
|
|
1041
|
+
description: string;
|
|
1042
|
+
};
|
|
1043
|
+
readonly errorBorder: {
|
|
1044
|
+
value: string;
|
|
1045
|
+
description: string;
|
|
1046
|
+
};
|
|
1047
|
+
readonly successBorder: {
|
|
1048
|
+
value: string;
|
|
1049
|
+
description: string;
|
|
1050
|
+
};
|
|
1051
|
+
};
|
|
1052
|
+
|
|
1053
|
+
declare const focus: {
|
|
1054
|
+
readonly ringColor: {
|
|
1055
|
+
value: string;
|
|
1056
|
+
description: string;
|
|
1057
|
+
};
|
|
1058
|
+
readonly ringWidth: {
|
|
1059
|
+
value: string;
|
|
1060
|
+
description: string;
|
|
1061
|
+
};
|
|
1062
|
+
readonly ringOffset: {
|
|
1063
|
+
value: string;
|
|
1064
|
+
description: string;
|
|
1065
|
+
};
|
|
1066
|
+
};
|
|
1067
|
+
|
|
1068
|
+
declare const overlay: {
|
|
1069
|
+
readonly scrim: {
|
|
1070
|
+
value: string;
|
|
1071
|
+
description: string;
|
|
1072
|
+
};
|
|
1073
|
+
readonly backdropBlur: {
|
|
1074
|
+
value: string;
|
|
1075
|
+
description: string;
|
|
1076
|
+
};
|
|
1077
|
+
};
|
|
1078
|
+
|
|
1079
|
+
declare const ui_button: typeof button;
|
|
1080
|
+
declare const ui_focus: typeof focus;
|
|
1081
|
+
declare const ui_input: typeof input;
|
|
1082
|
+
declare const ui_overlay: typeof overlay;
|
|
1083
|
+
declare const ui_surface: typeof surface;
|
|
1084
|
+
declare namespace ui {
|
|
1085
|
+
export { ui_button as button, ui_focus as focus, ui_input as input, ui_overlay as overlay, ui_surface as surface };
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
declare const tokens: {
|
|
1089
|
+
readonly color: typeof color;
|
|
1090
|
+
readonly typography: typeof typography;
|
|
1091
|
+
readonly spacing: typeof spacing;
|
|
1092
|
+
readonly shape: typeof shape;
|
|
1093
|
+
readonly effects: typeof effects;
|
|
1094
|
+
readonly motion: typeof motion;
|
|
1095
|
+
readonly zindex: typeof zindex;
|
|
1096
|
+
readonly iconography: typeof iconography;
|
|
1097
|
+
readonly ui: typeof ui;
|
|
1098
|
+
};
|
|
1099
|
+
|
|
1100
|
+
type CssVarDict = Record<string, string>;
|
|
1101
|
+
declare function toCssVars(tree: TokenTree): CssVarDict;
|
|
1102
|
+
|
|
1103
|
+
declare const cssVarNames: Record<string, string>;
|
|
1104
|
+
|
|
1105
|
+
type ApplyThemeOptions = {
|
|
1106
|
+
overrides?: Record<string, string | number>;
|
|
1107
|
+
cleanup?: boolean;
|
|
1108
|
+
};
|
|
1109
|
+
declare function applyThemeToElement(element: {
|
|
1110
|
+
style: {
|
|
1111
|
+
setProperty: (k: string, v: string) => void;
|
|
1112
|
+
removeProperty: (k: string) => void;
|
|
1113
|
+
};
|
|
1114
|
+
}, theme: ThemeDefinition | DensityDefinition, options?: ApplyThemeOptions): void;
|
|
1115
|
+
declare function prefersColorScheme(): "light" | "dark" | undefined;
|
|
1116
|
+
declare function validateTokens(): ValidateResult;
|
|
1117
|
+
|
|
1118
|
+
export { type ApplyThemeOptions, type ThemeDefinition, type Token, type ValidateResult, applyThemeToElement, cssVarNames, prefersColorScheme, themes, toCssVars, tokens, validateTokens };
|