@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,555 @@
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 dark: ({
16
+ name: "--cui-bg-normal";
17
+ value: "#171d24";
18
+ type: "color";
19
+ } | {
20
+ name: "--cui-bg-normal-hovered";
21
+ value: "#212831";
22
+ type: "color";
23
+ } | {
24
+ name: "--cui-bg-normal-pressed";
25
+ value: "#28313c";
26
+ type: "color";
27
+ } | {
28
+ name: "--cui-bg-normal-disabled";
29
+ value: "rgba(216, 232, 248, 0.0800)";
30
+ type: "color";
31
+ } | {
32
+ name: "--cui-bg-subtle";
33
+ value: "#0c0f12";
34
+ type: "color";
35
+ } | {
36
+ name: "--cui-bg-subtle-hovered";
37
+ value: "#212b31";
38
+ type: "color";
39
+ } | {
40
+ name: "--cui-bg-subtle-pressed";
41
+ value: "#36434a";
42
+ type: "color";
43
+ } | {
44
+ name: "--cui-bg-subtle-disabled";
45
+ value: "rgba(216, 232, 248, 0.0800)";
46
+ type: "color";
47
+ } | {
48
+ name: "--cui-bg-highlight";
49
+ value: "#363c41";
50
+ type: "color";
51
+ } | {
52
+ name: "--cui-bg-highlight-hovered";
53
+ value: "#3d4249";
54
+ type: "color";
55
+ } | {
56
+ name: "--cui-bg-highlight-pressed";
57
+ value: "#424950";
58
+ type: "color";
59
+ } | {
60
+ name: "--cui-bg-highlight-disabled";
61
+ value: "rgba(216, 232, 248, 0.0800)";
62
+ type: "color";
63
+ } | {
64
+ name: "--cui-bg-strong";
65
+ value: "#ffffff";
66
+ type: "color";
67
+ } | {
68
+ name: "--cui-bg-strong-hovered";
69
+ value: "#f6f8f9";
70
+ type: "color";
71
+ } | {
72
+ name: "--cui-bg-strong-pressed";
73
+ value: "#e3e7eb";
74
+ type: "color";
75
+ } | {
76
+ name: "--cui-bg-strong-disabled";
77
+ value: "rgba(216, 232, 248, 0.0800)";
78
+ type: "color";
79
+ } | {
80
+ name: "--cui-bg-accent";
81
+ value: "#0c0f12";
82
+ type: "color";
83
+ } | {
84
+ name: "--cui-bg-accent-hovered";
85
+ value: "#20292e";
86
+ type: "color";
87
+ } | {
88
+ name: "--cui-bg-accent-pressed";
89
+ value: "#313d43";
90
+ type: "color";
91
+ } | {
92
+ name: "--cui-bg-accent-disabled";
93
+ value: "rgba(216, 232, 248, 0.0800)";
94
+ type: "color";
95
+ } | {
96
+ name: "--cui-bg-accent-strong";
97
+ value: "#e1e7ef";
98
+ type: "color";
99
+ } | {
100
+ name: "--cui-bg-accent-strong-hovered";
101
+ value: "#ffffff";
102
+ type: "color";
103
+ } | {
104
+ name: "--cui-bg-accent-strong-pressed";
105
+ value: "#ffffff";
106
+ type: "color";
107
+ } | {
108
+ name: "--cui-bg-accent-strong-disabled";
109
+ value: "rgba(216, 232, 248, 0.0800)";
110
+ type: "color";
111
+ } | {
112
+ name: "--cui-bg-success";
113
+ value: "rgba(12, 211, 104, 0.2000)";
114
+ type: "color";
115
+ } | {
116
+ name: "--cui-bg-success-hovered";
117
+ value: "rgba(12, 211, 104, 0.2500)";
118
+ type: "color";
119
+ } | {
120
+ name: "--cui-bg-success-pressed";
121
+ value: "rgba(12, 211, 104, 0.3000)";
122
+ type: "color";
123
+ } | {
124
+ name: "--cui-bg-success-disabled";
125
+ value: "rgba(216, 232, 248, 0.0800)";
126
+ type: "color";
127
+ } | {
128
+ name: "--cui-bg-success-strong";
129
+ value: "#0cd368";
130
+ type: "color";
131
+ } | {
132
+ name: "--cui-bg-success-strong-hovered";
133
+ value: "#13e072";
134
+ type: "color";
135
+ } | {
136
+ name: "--cui-bg-success-strong-pressed";
137
+ value: "#25e980";
138
+ type: "color";
139
+ } | {
140
+ name: "--cui-bg-success-strong-disabled";
141
+ value: "rgba(216, 232, 248, 0.0800)";
142
+ type: "color";
143
+ } | {
144
+ name: "--cui-bg-warning";
145
+ value: "rgba(245, 158, 28, 0.2000)";
146
+ type: "color";
147
+ } | {
148
+ name: "--cui-bg-warning-hovered";
149
+ value: "rgba(245, 158, 28, 0.2500)";
150
+ type: "color";
151
+ } | {
152
+ name: "--cui-bg-warning-pressed";
153
+ value: "rgba(245, 158, 28, 0.3000)";
154
+ type: "color";
155
+ } | {
156
+ name: "--cui-bg-warning-disabled";
157
+ value: "rgba(216, 232, 248, 0.0800)";
158
+ type: "color";
159
+ } | {
160
+ name: "--cui-bg-warning-strong";
161
+ value: "#f5b81c";
162
+ type: "color";
163
+ } | {
164
+ name: "--cui-bg-warning-strong-hovered";
165
+ value: "#f7c440";
166
+ type: "color";
167
+ } | {
168
+ name: "--cui-bg-warning-strong-pressed";
169
+ value: "#f7cb59";
170
+ type: "color";
171
+ } | {
172
+ name: "--cui-bg-warning-strong-disabled";
173
+ value: "rgba(216, 232, 248, 0.0800)";
174
+ type: "color";
175
+ } | {
176
+ name: "--cui-bg-danger";
177
+ value: "rgba(255, 76, 53, 0.2000)";
178
+ type: "color";
179
+ } | {
180
+ name: "--cui-bg-danger-hovered";
181
+ value: "rgba(255, 76, 53, 0.2000)";
182
+ type: "color";
183
+ } | {
184
+ name: "--cui-bg-danger-pressed";
185
+ value: "rgba(255, 76, 53, 0.4000)";
186
+ type: "color";
187
+ } | {
188
+ name: "--cui-bg-danger-disabled";
189
+ value: "rgba(255, 69, 60, 0.1300)";
190
+ type: "color";
191
+ } | {
192
+ name: "--cui-bg-danger-strong";
193
+ value: "#ff4e37";
194
+ type: "color";
195
+ } | {
196
+ name: "--cui-bg-danger-strong-hovered";
197
+ value: "#ff6259";
198
+ type: "color";
199
+ } | {
200
+ name: "--cui-bg-danger-strong-pressed";
201
+ value: "#ff827b";
202
+ type: "color";
203
+ } | {
204
+ name: "--cui-bg-danger-strong-disabled";
205
+ value: "rgba(216, 232, 248, 0.0800)";
206
+ type: "color";
207
+ } | {
208
+ name: "--cui-bg-promo";
209
+ value: "rgba(195, 83, 247, 0.2000)";
210
+ type: "color";
211
+ } | {
212
+ name: "--cui-bg-promo-hovered";
213
+ value: "rgba(195, 83, 247, 0.2500)";
214
+ type: "color";
215
+ } | {
216
+ name: "--cui-bg-promo-pressed";
217
+ value: "rgba(195, 83, 247, 0.3000)";
218
+ type: "color";
219
+ } | {
220
+ name: "--cui-bg-promo-disabled";
221
+ value: "rgba(216, 232, 248, 0.0800)";
222
+ type: "color";
223
+ } | {
224
+ name: "--cui-bg-promo-strong";
225
+ value: "#c353f7";
226
+ type: "color";
227
+ } | {
228
+ name: "--cui-bg-promo-strong-hovered";
229
+ value: "#c768f3";
230
+ type: "color";
231
+ } | {
232
+ name: "--cui-bg-promo-strong-pressed";
233
+ value: "#ce72f8";
234
+ type: "color";
235
+ } | {
236
+ name: "--cui-bg-promo-strong-disabled";
237
+ value: "rgba(216, 232, 248, 0.0800)";
238
+ type: "color";
239
+ } | {
240
+ name: "--cui-fg-normal";
241
+ value: "#ffffff";
242
+ type: "color";
243
+ } | {
244
+ name: "--cui-fg-normal-hovered";
245
+ value: "rgba(255, 255, 255, 0.8000)";
246
+ type: "color";
247
+ } | {
248
+ name: "--cui-fg-normal-pressed";
249
+ value: "#e3e7eb";
250
+ type: "color";
251
+ } | {
252
+ name: "--cui-fg-normal-disabled";
253
+ value: "rgba(230, 224, 233, 0.2000)";
254
+ type: "color";
255
+ } | {
256
+ name: "--cui-fg-subtle";
257
+ value: "rgba(223, 232, 241, 0.6000)";
258
+ type: "color";
259
+ } | {
260
+ name: "--cui-fg-subtle-hovered";
261
+ value: "rgba(223, 232, 241, 0.7000)";
262
+ type: "color";
263
+ } | {
264
+ name: "--cui-fg-subtle-pressed";
265
+ value: "rgba(223, 232, 241, 0.8000)";
266
+ type: "color";
267
+ } | {
268
+ name: "--cui-fg-subtle-disabled";
269
+ value: "rgba(216, 232, 248, 0.2000)";
270
+ type: "color";
271
+ } | {
272
+ name: "--cui-fg-placeholder";
273
+ value: "rgba(223, 232, 241, 0.4000)";
274
+ type: "color";
275
+ } | {
276
+ name: "--cui-fg-placeholder-hovered";
277
+ value: "rgba(223, 232, 241, 0.4000)";
278
+ type: "color";
279
+ } | {
280
+ name: "--cui-fg-placeholder-pressed";
281
+ value: "rgba(223, 232, 241, 0.4000)";
282
+ type: "color";
283
+ } | {
284
+ name: "--cui-fg-placeholder-disabled";
285
+ value: "rgba(216, 232, 248, 0.1500)";
286
+ type: "color";
287
+ } | {
288
+ name: "--cui-fg-on-strong";
289
+ value: "#0f131a";
290
+ type: "color";
291
+ } | {
292
+ name: "--cui-fg-on-strong-hovered";
293
+ value: "#0f131a";
294
+ type: "color";
295
+ } | {
296
+ name: "--cui-fg-on-strong-pressed";
297
+ value: "#0f131a";
298
+ type: "color";
299
+ } | {
300
+ name: "--cui-fg-on-strong-disabled";
301
+ value: "rgba(216, 232, 248, 0.3000)";
302
+ type: "color";
303
+ } | {
304
+ name: "--cui-fg-on-strong-subtle";
305
+ value: "rgba(15, 19, 26, 0.7000)";
306
+ type: "color";
307
+ } | {
308
+ name: "--cui-fg-on-strong-subtle-hovered";
309
+ value: "rgba(15, 19, 26, 0.7000)";
310
+ type: "color";
311
+ } | {
312
+ name: "--cui-fg-on-strong-subtle-pressed";
313
+ value: "rgba(15, 19, 26, 0.7000)";
314
+ type: "color";
315
+ } | {
316
+ name: "--cui-fg-on-strong-subtle-disabled";
317
+ value: "rgba(216, 232, 248, 0.2000)";
318
+ type: "color";
319
+ } | {
320
+ name: "--cui-fg-accent";
321
+ value: "#e1e7ef";
322
+ type: "color";
323
+ } | {
324
+ name: "--cui-fg-accent-hovered";
325
+ value: "#ffffff";
326
+ type: "color";
327
+ } | {
328
+ name: "--cui-fg-accent-pressed";
329
+ value: "#ffffff";
330
+ type: "color";
331
+ } | {
332
+ name: "--cui-fg-accent-disabled";
333
+ value: "rgba(216, 232, 248, 0.3000)";
334
+ type: "color";
335
+ } | {
336
+ name: "--cui-fg-success";
337
+ value: "#17db72";
338
+ type: "color";
339
+ } | {
340
+ name: "--cui-fg-success-hovered";
341
+ value: "#13e072";
342
+ type: "color";
343
+ } | {
344
+ name: "--cui-fg-success-pressed";
345
+ value: "#25e980";
346
+ type: "color";
347
+ } | {
348
+ name: "--cui-fg-success-disabled";
349
+ value: "rgba(216, 232, 248, 0.3000)";
350
+ type: "color";
351
+ } | {
352
+ name: "--cui-fg-warning";
353
+ value: "#f5b81c";
354
+ type: "color";
355
+ } | {
356
+ name: "--cui-fg-warning-hovered";
357
+ value: "#f7c440";
358
+ type: "color";
359
+ } | {
360
+ name: "--cui-fg-warning-pressed";
361
+ value: "#f7cb59";
362
+ type: "color";
363
+ } | {
364
+ name: "--cui-fg-warning-disabled";
365
+ value: "rgba(216, 232, 248, 0.3000)";
366
+ type: "color";
367
+ } | {
368
+ name: "--cui-fg-danger";
369
+ value: "#ff634e";
370
+ type: "color";
371
+ } | {
372
+ name: "--cui-fg-danger-hovered";
373
+ value: "#ff5c47";
374
+ type: "color";
375
+ } | {
376
+ name: "--cui-fg-danger-pressed";
377
+ value: "#ff6a57";
378
+ type: "color";
379
+ } | {
380
+ name: "--cui-fg-danger-disabled";
381
+ value: "rgba(255, 178, 167, 0.7000)";
382
+ type: "color";
383
+ } | {
384
+ name: "--cui-fg-promo";
385
+ value: "#cf7bf6";
386
+ type: "color";
387
+ } | {
388
+ name: "--cui-fg-promo-hovered";
389
+ value: "#c768f3";
390
+ type: "color";
391
+ } | {
392
+ name: "--cui-fg-promo-pressed";
393
+ value: "#ce72f8";
394
+ type: "color";
395
+ } | {
396
+ name: "--cui-fg-promo-disabled";
397
+ value: "rgba(216, 232, 248, 0.3000)";
398
+ type: "color";
399
+ } | {
400
+ name: "--cui-border-normal";
401
+ value: "rgba(223, 232, 241, 0.3000)";
402
+ type: "color";
403
+ } | {
404
+ name: "--cui-border-normal-hovered";
405
+ value: "rgba(223, 232, 241, 0.3500)";
406
+ type: "color";
407
+ } | {
408
+ name: "--cui-border-normal-pressed";
409
+ value: "rgba(223, 232, 241, 0.4500)";
410
+ type: "color";
411
+ } | {
412
+ name: "--cui-border-normal-disabled";
413
+ value: "rgba(216, 232, 248, 0.3000)";
414
+ type: "color";
415
+ } | {
416
+ name: "--cui-border-subtle";
417
+ value: "rgba(223, 232, 241, 0.1500)";
418
+ type: "color";
419
+ } | {
420
+ name: "--cui-border-subtle-hovered";
421
+ value: "rgba(223, 232, 241, 0.2000)";
422
+ type: "color";
423
+ } | {
424
+ name: "--cui-border-subtle-pressed";
425
+ value: "rgba(223, 232, 241, 0.3000)";
426
+ type: "color";
427
+ } | {
428
+ name: "--cui-border-subtle-disabled";
429
+ value: "rgba(216, 232, 248, 0.1000)";
430
+ type: "color";
431
+ } | {
432
+ name: "--cui-border-divider";
433
+ value: "rgba(216, 232, 248, 0.3000)";
434
+ type: "color";
435
+ } | {
436
+ name: "--cui-border-divider-hovered";
437
+ value: "rgba(223, 232, 241, 0.3500)";
438
+ type: "color";
439
+ } | {
440
+ name: "--cui-border-divider-pressed";
441
+ value: "rgba(223, 232, 241, 0.4500)";
442
+ type: "color";
443
+ } | {
444
+ name: "--cui-border-divider-disabled";
445
+ value: "rgba(216, 232, 248, 0.1500)";
446
+ type: "color";
447
+ } | {
448
+ name: "--cui-border-strong";
449
+ value: "#ffffff";
450
+ type: "color";
451
+ } | {
452
+ name: "--cui-border-strong-hovered";
453
+ value: "#f6f8f9";
454
+ type: "color";
455
+ } | {
456
+ name: "--cui-border-strong-pressed";
457
+ value: "#e3e7eb";
458
+ type: "color";
459
+ } | {
460
+ name: "--cui-border-strong-disabled";
461
+ value: "rgba(216, 232, 248, 0.1500)";
462
+ type: "color";
463
+ } | {
464
+ name: "--cui-border-accent";
465
+ value: "#ffffff";
466
+ type: "color";
467
+ } | {
468
+ name: "--cui-border-accent-hovered";
469
+ value: "#f6f8f9";
470
+ type: "color";
471
+ } | {
472
+ name: "--cui-border-accent-pressed";
473
+ value: "#e3e7eb";
474
+ type: "color";
475
+ } | {
476
+ name: "--cui-border-accent-disabled";
477
+ value: "rgba(216, 232, 248, 0.1500)";
478
+ type: "color";
479
+ } | {
480
+ name: "--cui-border-success";
481
+ value: "#0cd368";
482
+ type: "color";
483
+ } | {
484
+ name: "--cui-border-success-hovered";
485
+ value: "#13e072";
486
+ type: "color";
487
+ } | {
488
+ name: "--cui-border-success-pressed";
489
+ value: "#25e980";
490
+ type: "color";
491
+ } | {
492
+ name: "--cui-border-success-disabled";
493
+ value: "rgba(216, 232, 248, 0.1500)";
494
+ type: "color";
495
+ } | {
496
+ name: "--cui-border-warning";
497
+ value: "#f5b81c";
498
+ type: "color";
499
+ } | {
500
+ name: "--cui-border-warning-hovered";
501
+ value: "#f7c440";
502
+ type: "color";
503
+ } | {
504
+ name: "--cui-border-warning-pressed";
505
+ value: "#f7cb59";
506
+ type: "color";
507
+ } | {
508
+ name: "--cui-border-warning-disabled";
509
+ value: "rgba(216, 232, 248, 0.1500)";
510
+ type: "color";
511
+ } | {
512
+ name: "--cui-border-danger";
513
+ value: "#ff634e";
514
+ type: "color";
515
+ } | {
516
+ name: "--cui-border-danger-hovered";
517
+ value: "#ff5c47";
518
+ type: "color";
519
+ } | {
520
+ name: "--cui-border-danger-pressed";
521
+ value: "#ff6a57";
522
+ type: "color";
523
+ } | {
524
+ name: "--cui-border-danger-disabled";
525
+ value: "rgba(255, 178, 167, 0.7000)";
526
+ type: "color";
527
+ } | {
528
+ name: "--cui-border-promo";
529
+ value: "#c353f7";
530
+ type: "color";
531
+ } | {
532
+ name: "--cui-border-promo-hovered";
533
+ value: "#c768f3";
534
+ type: "color";
535
+ } | {
536
+ name: "--cui-border-promo-pressed";
537
+ value: "#ce72f8";
538
+ type: "color";
539
+ } | {
540
+ name: "--cui-border-promo-disabled";
541
+ value: "rgba(216, 232, 248, 0.1500)";
542
+ type: "color";
543
+ } | {
544
+ name: "--cui-bg-overlay";
545
+ value: "rgba(0, 0, 0, 0.7000)";
546
+ type: "color";
547
+ } | {
548
+ name: "--cui-bg-elevated";
549
+ value: "#2f3438";
550
+ type: "color";
551
+ } | {
552
+ name: "--cui-border-focus";
553
+ value: "#ffffff";
554
+ type: "color";
555
+ })[];