@sumup-oss/design-tokens 8.0.0-next.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.
Files changed (44) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +115 -0
  3. package/dark-scoped.css +140 -0
  4. package/dark.css +201 -0
  5. package/dist/cjs/index.d.ts +27 -0
  6. package/dist/cjs/index.js +55 -0
  7. package/dist/cjs/scripts/build.d.ts +36 -0
  8. package/dist/cjs/scripts/build.js +182 -0
  9. package/dist/cjs/themes/dark.d.ts +555 -0
  10. package/dist/cjs/themes/dark.js +694 -0
  11. package/dist/cjs/themes/legacy/light.d.ts +85 -0
  12. package/dist/cjs/themes/legacy/light.js +196 -0
  13. package/dist/cjs/themes/light.d.ts +555 -0
  14. package/dist/cjs/themes/light.js +694 -0
  15. package/dist/cjs/themes/schema.d.ts +603 -0
  16. package/dist/cjs/themes/schema.js +243 -0
  17. package/dist/cjs/themes/shared.d.ts +259 -0
  18. package/dist/cjs/themes/shared.js +333 -0
  19. package/dist/cjs/types/index.d.ts +175 -0
  20. package/dist/cjs/types/index.js +16 -0
  21. package/dist/cjs/utils/theme-prop-type.d.ts +36 -0
  22. package/dist/cjs/utils/theme-prop-type.js +162 -0
  23. package/dist/es/index.d.ts +27 -0
  24. package/dist/es/index.js +27 -0
  25. package/dist/es/scripts/build.d.ts +36 -0
  26. package/dist/es/scripts/build.js +174 -0
  27. package/dist/es/themes/dark.d.ts +555 -0
  28. package/dist/es/themes/dark.js +691 -0
  29. package/dist/es/themes/legacy/light.d.ts +85 -0
  30. package/dist/es/themes/legacy/light.js +193 -0
  31. package/dist/es/themes/light.d.ts +555 -0
  32. package/dist/es/themes/light.js +691 -0
  33. package/dist/es/themes/schema.d.ts +603 -0
  34. package/dist/es/themes/schema.js +240 -0
  35. package/dist/es/themes/shared.d.ts +259 -0
  36. package/dist/es/themes/shared.js +330 -0
  37. package/dist/es/types/index.d.ts +175 -0
  38. package/dist/es/types/index.js +15 -0
  39. package/dist/es/utils/theme-prop-type.d.ts +36 -0
  40. package/dist/es/utils/theme-prop-type.js +156 -0
  41. package/dynamic.css +626 -0
  42. package/light-scoped.css +140 -0
  43. package/light.css +201 -0
  44. package/package.json +44 -0
@@ -0,0 +1,603 @@
1
+ /**
2
+ * Copyright 2023, SumUp Ltd.
3
+ * Licensed under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License.
5
+ * You may obtain a copy of the License at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software
10
+ * distributed under the License is distributed on an "AS IS" BASIS,
11
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ * See the License for the specific language governing permissions and
13
+ * limitations under the License.
14
+ */
15
+ export declare const schema: ({
16
+ name: "--cui-bg-normal";
17
+ type: "color";
18
+ } | {
19
+ name: "--cui-bg-normal-hovered";
20
+ type: "color";
21
+ } | {
22
+ name: "--cui-bg-normal-pressed";
23
+ type: "color";
24
+ } | {
25
+ name: "--cui-bg-normal-disabled";
26
+ type: "color";
27
+ } | {
28
+ name: "--cui-bg-subtle";
29
+ type: "color";
30
+ } | {
31
+ name: "--cui-bg-subtle-hovered";
32
+ type: "color";
33
+ } | {
34
+ name: "--cui-bg-subtle-pressed";
35
+ type: "color";
36
+ } | {
37
+ name: "--cui-bg-subtle-disabled";
38
+ type: "color";
39
+ } | {
40
+ name: "--cui-bg-highlight";
41
+ type: "color";
42
+ } | {
43
+ name: "--cui-bg-highlight-hovered";
44
+ type: "color";
45
+ } | {
46
+ name: "--cui-bg-highlight-pressed";
47
+ type: "color";
48
+ } | {
49
+ name: "--cui-bg-highlight-disabled";
50
+ type: "color";
51
+ } | {
52
+ name: "--cui-bg-strong";
53
+ type: "color";
54
+ } | {
55
+ name: "--cui-bg-strong-hovered";
56
+ type: "color";
57
+ } | {
58
+ name: "--cui-bg-strong-pressed";
59
+ type: "color";
60
+ } | {
61
+ name: "--cui-bg-strong-disabled";
62
+ type: "color";
63
+ } | {
64
+ name: "--cui-bg-accent";
65
+ type: "color";
66
+ } | {
67
+ name: "--cui-bg-accent-hovered";
68
+ type: "color";
69
+ } | {
70
+ name: "--cui-bg-accent-pressed";
71
+ type: "color";
72
+ } | {
73
+ name: "--cui-bg-accent-disabled";
74
+ type: "color";
75
+ } | {
76
+ name: "--cui-bg-accent-strong";
77
+ type: "color";
78
+ } | {
79
+ name: "--cui-bg-accent-strong-hovered";
80
+ type: "color";
81
+ } | {
82
+ name: "--cui-bg-accent-strong-pressed";
83
+ type: "color";
84
+ } | {
85
+ name: "--cui-bg-accent-strong-disabled";
86
+ type: "color";
87
+ } | {
88
+ name: "--cui-bg-success";
89
+ type: "color";
90
+ } | {
91
+ name: "--cui-bg-success-hovered";
92
+ type: "color";
93
+ } | {
94
+ name: "--cui-bg-success-pressed";
95
+ type: "color";
96
+ } | {
97
+ name: "--cui-bg-success-disabled";
98
+ type: "color";
99
+ } | {
100
+ name: "--cui-bg-success-strong";
101
+ type: "color";
102
+ } | {
103
+ name: "--cui-bg-success-strong-hovered";
104
+ type: "color";
105
+ } | {
106
+ name: "--cui-bg-success-strong-pressed";
107
+ type: "color";
108
+ } | {
109
+ name: "--cui-bg-success-strong-disabled";
110
+ type: "color";
111
+ } | {
112
+ name: "--cui-bg-warning";
113
+ type: "color";
114
+ } | {
115
+ name: "--cui-bg-warning-hovered";
116
+ type: "color";
117
+ } | {
118
+ name: "--cui-bg-warning-pressed";
119
+ type: "color";
120
+ } | {
121
+ name: "--cui-bg-warning-disabled";
122
+ type: "color";
123
+ } | {
124
+ name: "--cui-bg-warning-strong";
125
+ type: "color";
126
+ } | {
127
+ name: "--cui-bg-warning-strong-hovered";
128
+ type: "color";
129
+ } | {
130
+ name: "--cui-bg-warning-strong-pressed";
131
+ type: "color";
132
+ } | {
133
+ name: "--cui-bg-warning-strong-disabled";
134
+ type: "color";
135
+ } | {
136
+ name: "--cui-bg-danger";
137
+ type: "color";
138
+ } | {
139
+ name: "--cui-bg-danger-hovered";
140
+ type: "color";
141
+ } | {
142
+ name: "--cui-bg-danger-pressed";
143
+ type: "color";
144
+ } | {
145
+ name: "--cui-bg-danger-disabled";
146
+ type: "color";
147
+ } | {
148
+ name: "--cui-bg-danger-strong";
149
+ type: "color";
150
+ } | {
151
+ name: "--cui-bg-danger-strong-hovered";
152
+ type: "color";
153
+ } | {
154
+ name: "--cui-bg-danger-strong-pressed";
155
+ type: "color";
156
+ } | {
157
+ name: "--cui-bg-danger-strong-disabled";
158
+ type: "color";
159
+ } | {
160
+ name: "--cui-bg-promo";
161
+ type: "color";
162
+ } | {
163
+ name: "--cui-bg-promo-hovered";
164
+ type: "color";
165
+ } | {
166
+ name: "--cui-bg-promo-pressed";
167
+ type: "color";
168
+ } | {
169
+ name: "--cui-bg-promo-disabled";
170
+ type: "color";
171
+ } | {
172
+ name: "--cui-bg-promo-strong";
173
+ type: "color";
174
+ } | {
175
+ name: "--cui-bg-promo-strong-hovered";
176
+ type: "color";
177
+ } | {
178
+ name: "--cui-bg-promo-strong-pressed";
179
+ type: "color";
180
+ } | {
181
+ name: "--cui-bg-promo-strong-disabled";
182
+ type: "color";
183
+ } | {
184
+ name: "--cui-fg-normal";
185
+ type: "color";
186
+ } | {
187
+ name: "--cui-fg-normal-hovered";
188
+ type: "color";
189
+ } | {
190
+ name: "--cui-fg-normal-pressed";
191
+ type: "color";
192
+ } | {
193
+ name: "--cui-fg-normal-disabled";
194
+ type: "color";
195
+ } | {
196
+ name: "--cui-fg-subtle";
197
+ type: "color";
198
+ } | {
199
+ name: "--cui-fg-subtle-hovered";
200
+ type: "color";
201
+ } | {
202
+ name: "--cui-fg-subtle-pressed";
203
+ type: "color";
204
+ } | {
205
+ name: "--cui-fg-subtle-disabled";
206
+ type: "color";
207
+ } | {
208
+ name: "--cui-fg-placeholder";
209
+ type: "color";
210
+ } | {
211
+ name: "--cui-fg-placeholder-hovered";
212
+ type: "color";
213
+ } | {
214
+ name: "--cui-fg-placeholder-pressed";
215
+ type: "color";
216
+ } | {
217
+ name: "--cui-fg-placeholder-disabled";
218
+ type: "color";
219
+ } | {
220
+ name: "--cui-fg-on-strong";
221
+ type: "color";
222
+ } | {
223
+ name: "--cui-fg-on-strong-hovered";
224
+ type: "color";
225
+ } | {
226
+ name: "--cui-fg-on-strong-pressed";
227
+ type: "color";
228
+ } | {
229
+ name: "--cui-fg-on-strong-disabled";
230
+ type: "color";
231
+ } | {
232
+ name: "--cui-fg-on-strong-subtle";
233
+ type: "color";
234
+ } | {
235
+ name: "--cui-fg-on-strong-subtle-hovered";
236
+ type: "color";
237
+ } | {
238
+ name: "--cui-fg-on-strong-subtle-pressed";
239
+ type: "color";
240
+ } | {
241
+ name: "--cui-fg-on-strong-subtle-disabled";
242
+ type: "color";
243
+ } | {
244
+ name: "--cui-fg-accent";
245
+ type: "color";
246
+ } | {
247
+ name: "--cui-fg-accent-hovered";
248
+ type: "color";
249
+ } | {
250
+ name: "--cui-fg-accent-pressed";
251
+ type: "color";
252
+ } | {
253
+ name: "--cui-fg-accent-disabled";
254
+ type: "color";
255
+ } | {
256
+ name: "--cui-fg-success";
257
+ type: "color";
258
+ } | {
259
+ name: "--cui-fg-success-hovered";
260
+ type: "color";
261
+ } | {
262
+ name: "--cui-fg-success-pressed";
263
+ type: "color";
264
+ } | {
265
+ name: "--cui-fg-success-disabled";
266
+ type: "color";
267
+ } | {
268
+ name: "--cui-fg-warning";
269
+ type: "color";
270
+ } | {
271
+ name: "--cui-fg-warning-hovered";
272
+ type: "color";
273
+ } | {
274
+ name: "--cui-fg-warning-pressed";
275
+ type: "color";
276
+ } | {
277
+ name: "--cui-fg-warning-disabled";
278
+ type: "color";
279
+ } | {
280
+ name: "--cui-fg-danger";
281
+ type: "color";
282
+ } | {
283
+ name: "--cui-fg-danger-hovered";
284
+ type: "color";
285
+ } | {
286
+ name: "--cui-fg-danger-pressed";
287
+ type: "color";
288
+ } | {
289
+ name: "--cui-fg-danger-disabled";
290
+ type: "color";
291
+ } | {
292
+ name: "--cui-fg-promo";
293
+ type: "color";
294
+ } | {
295
+ name: "--cui-fg-promo-hovered";
296
+ type: "color";
297
+ } | {
298
+ name: "--cui-fg-promo-pressed";
299
+ type: "color";
300
+ } | {
301
+ name: "--cui-fg-promo-disabled";
302
+ type: "color";
303
+ } | {
304
+ name: "--cui-border-normal";
305
+ type: "color";
306
+ } | {
307
+ name: "--cui-border-normal-hovered";
308
+ type: "color";
309
+ } | {
310
+ name: "--cui-border-normal-pressed";
311
+ type: "color";
312
+ } | {
313
+ name: "--cui-border-normal-disabled";
314
+ type: "color";
315
+ } | {
316
+ name: "--cui-border-subtle";
317
+ type: "color";
318
+ } | {
319
+ name: "--cui-border-subtle-hovered";
320
+ type: "color";
321
+ } | {
322
+ name: "--cui-border-subtle-pressed";
323
+ type: "color";
324
+ } | {
325
+ name: "--cui-border-subtle-disabled";
326
+ type: "color";
327
+ } | {
328
+ name: "--cui-border-divider";
329
+ type: "color";
330
+ } | {
331
+ name: "--cui-border-divider-hovered";
332
+ type: "color";
333
+ } | {
334
+ name: "--cui-border-divider-pressed";
335
+ type: "color";
336
+ } | {
337
+ name: "--cui-border-divider-disabled";
338
+ type: "color";
339
+ } | {
340
+ name: "--cui-border-strong";
341
+ type: "color";
342
+ } | {
343
+ name: "--cui-border-strong-hovered";
344
+ type: "color";
345
+ } | {
346
+ name: "--cui-border-strong-pressed";
347
+ type: "color";
348
+ } | {
349
+ name: "--cui-border-strong-disabled";
350
+ type: "color";
351
+ } | {
352
+ name: "--cui-border-accent";
353
+ type: "color";
354
+ } | {
355
+ name: "--cui-border-accent-hovered";
356
+ type: "color";
357
+ } | {
358
+ name: "--cui-border-accent-pressed";
359
+ type: "color";
360
+ } | {
361
+ name: "--cui-border-accent-disabled";
362
+ type: "color";
363
+ } | {
364
+ name: "--cui-border-success";
365
+ type: "color";
366
+ } | {
367
+ name: "--cui-border-success-hovered";
368
+ type: "color";
369
+ } | {
370
+ name: "--cui-border-success-pressed";
371
+ type: "color";
372
+ } | {
373
+ name: "--cui-border-success-disabled";
374
+ type: "color";
375
+ } | {
376
+ name: "--cui-border-warning";
377
+ type: "color";
378
+ } | {
379
+ name: "--cui-border-warning-hovered";
380
+ type: "color";
381
+ } | {
382
+ name: "--cui-border-warning-pressed";
383
+ type: "color";
384
+ } | {
385
+ name: "--cui-border-warning-disabled";
386
+ type: "color";
387
+ } | {
388
+ name: "--cui-border-danger";
389
+ type: "color";
390
+ } | {
391
+ name: "--cui-border-danger-hovered";
392
+ type: "color";
393
+ } | {
394
+ name: "--cui-border-danger-pressed";
395
+ type: "color";
396
+ } | {
397
+ name: "--cui-border-danger-disabled";
398
+ type: "color";
399
+ } | {
400
+ name: "--cui-border-promo";
401
+ type: "color";
402
+ } | {
403
+ name: "--cui-border-promo-hovered";
404
+ type: "color";
405
+ } | {
406
+ name: "--cui-border-promo-pressed";
407
+ type: "color";
408
+ } | {
409
+ name: "--cui-border-promo-disabled";
410
+ type: "color";
411
+ } | {
412
+ name: "--cui-bg-overlay";
413
+ type: "color";
414
+ } | {
415
+ name: "--cui-bg-elevated";
416
+ type: "color";
417
+ } | {
418
+ name: "--cui-border-focus";
419
+ type: "color";
420
+ } | {
421
+ name: "--cui-border-radius-bit";
422
+ type: "dimension";
423
+ } | {
424
+ name: "--cui-border-radius-byte";
425
+ type: "dimension";
426
+ } | {
427
+ name: "--cui-border-radius-kilo";
428
+ type: "dimension";
429
+ } | {
430
+ name: "--cui-border-radius-mega";
431
+ type: "dimension";
432
+ } | {
433
+ name: "--cui-border-radius-circle";
434
+ type: "dimension";
435
+ } | {
436
+ name: "--cui-border-radius-pill";
437
+ type: "dimension";
438
+ } | {
439
+ name: "--cui-border-width-kilo";
440
+ type: "dimension";
441
+ } | {
442
+ name: "--cui-border-width-mega";
443
+ type: "dimension";
444
+ } | {
445
+ name: "--cui-font-stack-default";
446
+ type: "fontFamily";
447
+ } | {
448
+ name: "--cui-font-stack-mono";
449
+ type: "fontFamily";
450
+ } | {
451
+ name: "--cui-font-weight-regular";
452
+ type: "fontWeight";
453
+ } | {
454
+ name: "--cui-font-weight-bold";
455
+ type: "fontWeight";
456
+ } | {
457
+ name: "--cui-icon-sizes-kilo";
458
+ type: "dimension";
459
+ } | {
460
+ name: "--cui-icon-sizes-mega";
461
+ type: "dimension";
462
+ } | {
463
+ name: "--cui-icon-sizes-giga";
464
+ type: "dimension";
465
+ } | {
466
+ name: "--cui-icon-sizes-tera";
467
+ type: "dimension";
468
+ } | {
469
+ name: "--cui-spacings-bit";
470
+ type: "dimension";
471
+ } | {
472
+ name: "--cui-spacings-byte";
473
+ type: "dimension";
474
+ } | {
475
+ name: "--cui-spacings-kilo";
476
+ type: "dimension";
477
+ } | {
478
+ name: "--cui-spacings-mega";
479
+ type: "dimension";
480
+ } | {
481
+ name: "--cui-spacings-giga";
482
+ type: "dimension";
483
+ } | {
484
+ name: "--cui-spacings-tera";
485
+ type: "dimension";
486
+ } | {
487
+ name: "--cui-spacings-peta";
488
+ type: "dimension";
489
+ } | {
490
+ name: "--cui-spacings-exa";
491
+ type: "dimension";
492
+ } | {
493
+ name: "--cui-spacings-zetta";
494
+ type: "dimension";
495
+ } | {
496
+ name: "--cui-transitions-default";
497
+ type: "duration";
498
+ } | {
499
+ name: "--cui-transitions-slow";
500
+ type: "duration";
501
+ } | {
502
+ name: "--cui-typography-headline-one-font-size";
503
+ type: "dimension";
504
+ } | {
505
+ name: "--cui-typography-headline-one-line-height";
506
+ type: "dimension";
507
+ } | {
508
+ name: "--cui-typography-headline-two-font-size";
509
+ type: "dimension";
510
+ } | {
511
+ name: "--cui-typography-headline-two-line-height";
512
+ type: "dimension";
513
+ } | {
514
+ name: "--cui-typography-headline-three-font-size";
515
+ type: "dimension";
516
+ } | {
517
+ name: "--cui-typography-headline-three-line-height";
518
+ type: "dimension";
519
+ } | {
520
+ name: "--cui-typography-headline-four-font-size";
521
+ type: "dimension";
522
+ } | {
523
+ name: "--cui-typography-headline-four-line-height";
524
+ type: "dimension";
525
+ } | {
526
+ name: "--cui-typography-title-one-font-size";
527
+ type: "dimension";
528
+ } | {
529
+ name: "--cui-typography-title-one-line-height";
530
+ type: "dimension";
531
+ } | {
532
+ name: "--cui-typography-title-two-font-size";
533
+ type: "dimension";
534
+ } | {
535
+ name: "--cui-typography-title-two-line-height";
536
+ type: "dimension";
537
+ } | {
538
+ name: "--cui-typography-title-three-font-size";
539
+ type: "dimension";
540
+ } | {
541
+ name: "--cui-typography-title-three-line-height";
542
+ type: "dimension";
543
+ } | {
544
+ name: "--cui-typography-title-four-font-size";
545
+ type: "dimension";
546
+ } | {
547
+ name: "--cui-typography-title-four-line-height";
548
+ type: "dimension";
549
+ } | {
550
+ name: "--cui-typography-sub-headline-font-size";
551
+ type: "dimension";
552
+ } | {
553
+ name: "--cui-typography-sub-headline-line-height";
554
+ type: "dimension";
555
+ } | {
556
+ name: "--cui-typography-body-one-font-size";
557
+ type: "dimension";
558
+ } | {
559
+ name: "--cui-typography-body-one-line-height";
560
+ type: "dimension";
561
+ } | {
562
+ name: "--cui-typography-body-two-font-size";
563
+ type: "dimension";
564
+ } | {
565
+ name: "--cui-typography-body-two-line-height";
566
+ type: "dimension";
567
+ } | {
568
+ name: "--cui-typography-body-large-font-size";
569
+ type: "dimension";
570
+ } | {
571
+ name: "--cui-typography-body-large-line-height";
572
+ type: "dimension";
573
+ } | {
574
+ name: "--cui-z-index-default";
575
+ type: "number";
576
+ } | {
577
+ name: "--cui-z-index-absolute";
578
+ type: "number";
579
+ } | {
580
+ name: "--cui-z-index-input";
581
+ type: "number";
582
+ } | {
583
+ name: "--cui-z-index-popover";
584
+ type: "number";
585
+ } | {
586
+ name: "--cui-z-index-tooltip";
587
+ type: "number";
588
+ } | {
589
+ name: "--cui-z-index-header";
590
+ type: "number";
591
+ } | {
592
+ name: "--cui-z-index-backdrop";
593
+ type: "number";
594
+ } | {
595
+ name: "--cui-z-index-navigation";
596
+ type: "number";
597
+ } | {
598
+ name: "--cui-z-index-modal";
599
+ type: "number";
600
+ } | {
601
+ name: "--cui-z-index-toast";
602
+ type: "number";
603
+ })[];