@gnist/themes 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.
Files changed (75) hide show
  1. package/README.md +253 -0
  2. package/dist/atoms.css.d.ts +140 -0
  3. package/dist/atoms.css.js +147 -0
  4. package/dist/build-utils/generate-themes.d.ts +1 -0
  5. package/dist/build-utils/generate-themes.js +94 -0
  6. package/dist/build-utils/theme-utils/formats/typescriptEsModule.d.ts +2 -0
  7. package/dist/build-utils/theme-utils/formats/typescriptEsModule.js +35 -0
  8. package/dist/build-utils/theme-utils/toCamelCase.d.ts +1 -0
  9. package/dist/build-utils/theme-utils/toCamelCase.js +14 -0
  10. package/dist/build-utils/theme-utils/transforms/figmaSizePx.d.ts +4 -0
  11. package/dist/build-utils/theme-utils/transforms/figmaSizePx.js +10 -0
  12. package/dist/build-utils/theme-utils/transforms/figmaSizeRem.d.ts +4 -0
  13. package/dist/build-utils/theme-utils/transforms/figmaSizeRem.js +16 -0
  14. package/dist/build-utils/theme-utils/transforms/figmaTypography.d.ts +2 -0
  15. package/dist/build-utils/theme-utils/transforms/figmaTypography.js +19 -0
  16. package/dist/build-utils/theme-utils/transforms/lineHeightUnitless.d.ts +4 -0
  17. package/dist/build-utils/theme-utils/transforms/lineHeightUnitless.js +24 -0
  18. package/dist/build-utils/theme-utils/transforms/shadowCss.d.ts +2 -0
  19. package/dist/build-utils/theme-utils/transforms/shadowCss.js +20 -0
  20. package/dist/colors.css.d.ts +16 -0
  21. package/dist/colors.css.js +23 -0
  22. package/dist/layers.css.d.ts +2 -0
  23. package/dist/layers.css.js +3 -0
  24. package/dist/themes/audi.css.d.ts +1 -0
  25. package/dist/themes/audi.css.js +4 -0
  26. package/dist/themes/audiTokens.d.ts +550 -0
  27. package/dist/themes/audiTokens.js +551 -0
  28. package/dist/themes/autoria.css.d.ts +1 -0
  29. package/dist/themes/autoria.css.js +4 -0
  30. package/dist/themes/autoriaTokens.d.ts +550 -0
  31. package/dist/themes/autoriaTokens.js +551 -0
  32. package/dist/themes/bilholdLight.css.d.ts +1 -0
  33. package/dist/themes/bilholdLight.css.js +4 -0
  34. package/dist/themes/bilholdLightTokens.d.ts +550 -0
  35. package/dist/themes/bilholdLightTokens.js +551 -0
  36. package/dist/themes/brandless.css.d.ts +1 -0
  37. package/dist/themes/brandless.css.js +4 -0
  38. package/dist/themes/brandlessTokens.d.ts +550 -0
  39. package/dist/themes/brandlessTokens.js +551 -0
  40. package/dist/themes/cupra.css.d.ts +1 -0
  41. package/dist/themes/cupra.css.js +4 -0
  42. package/dist/themes/cupraTokens.d.ts +550 -0
  43. package/dist/themes/cupraTokens.js +551 -0
  44. package/dist/themes/dahles.css.d.ts +1 -0
  45. package/dist/themes/dahles.css.js +4 -0
  46. package/dist/themes/dahlesTokens.d.ts +550 -0
  47. package/dist/themes/dahlesTokens.js +551 -0
  48. package/dist/themes/gumpen.css.d.ts +1 -0
  49. package/dist/themes/gumpen.css.js +4 -0
  50. package/dist/themes/gumpenTokens.d.ts +550 -0
  51. package/dist/themes/gumpenTokens.js +551 -0
  52. package/dist/themes/mollerBil.css.d.ts +1 -0
  53. package/dist/themes/mollerBil.css.js +4 -0
  54. package/dist/themes/mollerBilTokens.d.ts +550 -0
  55. package/dist/themes/mollerBilTokens.js +551 -0
  56. package/dist/themes/skodaDark.css.d.ts +1 -0
  57. package/dist/themes/skodaDark.css.js +4 -0
  58. package/dist/themes/skodaDarkTokens.d.ts +550 -0
  59. package/dist/themes/skodaDarkTokens.js +551 -0
  60. package/dist/themes/tools.css.d.ts +1 -0
  61. package/dist/themes/tools.css.js +4 -0
  62. package/dist/themes/toolsTokens.d.ts +550 -0
  63. package/dist/themes/toolsTokens.js +551 -0
  64. package/dist/themes/vw.css.d.ts +1 -0
  65. package/dist/themes/vw.css.js +4 -0
  66. package/dist/themes/vwTokens.d.ts +550 -0
  67. package/dist/themes/vwTokens.js +551 -0
  68. package/dist/themes.css.d.ts +11 -0
  69. package/dist/themes.css.js +11 -0
  70. package/dist/tokens.css.d.ts +550 -0
  71. package/dist/tokens.css.js +8 -0
  72. package/dist/tsconfig.build.tsbuildinfo +1 -0
  73. package/dist/typography.css.d.ts +16 -0
  74. package/dist/typography.css.js +34 -0
  75. package/package.json +52 -0
@@ -0,0 +1,551 @@
1
+ // Generated by style-dictionary. Do not edit directly.
2
+ export const skodaDarkTokens = {
3
+ palette: {
4
+ primary: {
5
+ "10": "#263E31",
6
+ "20": "#2D5540",
7
+ "30": "#31694B",
8
+ "40": "#419468",
9
+ "50": "#59BC87",
10
+ "60": "#72E3A1",
11
+ "70": "#78FAAE",
12
+ "80": "#A8FFCC",
13
+ "90": "#CFFFE3",
14
+ "95": "#E8FFF1",
15
+ },
16
+ secondary: {
17
+ "10": "#263E31",
18
+ "20": "#2D5540",
19
+ "30": "#31694B",
20
+ "40": "#419468",
21
+ "50": "#59BC87",
22
+ "60": "#72E3A1",
23
+ "70": "#78FAAE",
24
+ "80": "#A8FFCC",
25
+ "90": "#CFFFE3",
26
+ "95": "#E8FFF1",
27
+ },
28
+ tertiary: {
29
+ "10": "#263E31",
30
+ "20": "#2D5540",
31
+ "30": "#31694B",
32
+ "40": "#419468",
33
+ "50": "#59BC87",
34
+ "60": "#72E3A1",
35
+ "70": "#78FAAE",
36
+ "80": "#A8FFCC",
37
+ "90": "#CFFFE3",
38
+ "95": "#E8FFF1",
39
+ },
40
+ "tertiary-variant": {
41
+ "10": "#00271D",
42
+ "20": "#0E3A2F",
43
+ "30": "#1F5044",
44
+ "40": "#3A6558",
45
+ "50": "#4B7A6C",
46
+ "60": "#649586",
47
+ "70": "#84B5A6",
48
+ "80": "#9EC8BB",
49
+ "90": "#CFE8E0",
50
+ "95": "#EDF9F5",
51
+ },
52
+ neutral: {
53
+ "10": "#161718",
54
+ "20": "#303132",
55
+ "30": "#464748",
56
+ "40": "#5A5B5C",
57
+ "50": "#7C7D7E",
58
+ "60": "#8E8F90",
59
+ "70": "#9E9FA0",
60
+ "80": "#C4C6C7",
61
+ "90": "#D8D8D8",
62
+ "95": "#F1F1F1",
63
+ },
64
+ "neutral-variant": {
65
+ "10": "#161718",
66
+ "20": "#303132",
67
+ "30": "#464748",
68
+ "40": "#5A5B5C",
69
+ "50": "#7C7D7E",
70
+ "60": "#8E8F90",
71
+ "70": "#9E9FA0",
72
+ "80": "#C4C6C7",
73
+ "90": "#D8D8D8",
74
+ "95": "#F1F1F1",
75
+ },
76
+ error: {
77
+ "10": "#330000",
78
+ "20": "#570800",
79
+ "30": "#AB1E14",
80
+ "40": "#EA443B",
81
+ "50": "#F85B4C",
82
+ "60": "#FF7461",
83
+ "70": "#FF8F7A",
84
+ "80": "#FFAB96",
85
+ "90": "#FFC8B6",
86
+ "95": "#FFE4DB",
87
+ },
88
+ warning: {
89
+ "10": "#331E00",
90
+ "20": "#572F00",
91
+ "30": "#A65900",
92
+ "40": "#D87F16",
93
+ "50": "#E9992B",
94
+ "60": "#F7B149",
95
+ "70": "#FFC86D",
96
+ "80": "#FFDC92",
97
+ "90": "#FFECB6",
98
+ "95": "#FFF8DB",
99
+ },
100
+ success: {
101
+ "10": "#032100",
102
+ "20": "#0B4200",
103
+ "30": "#1D7200",
104
+ "40": "#359204",
105
+ "50": "#4BAA24",
106
+ "60": "#62C049",
107
+ "70": "#7BD26D",
108
+ "80": "#96E292",
109
+ "90": "#B6EEB6",
110
+ "95": "#DBF8DB",
111
+ },
112
+ info: {
113
+ "10": "#00162E",
114
+ "20": "#012A55",
115
+ "30": "#14579C",
116
+ "40": "#3784D1",
117
+ "50": "#4A91E1",
118
+ "60": "#609EEE",
119
+ "70": "#7AACF8",
120
+ "80": "#96BDFE",
121
+ "90": "#B6CFFF",
122
+ "95": "#DBE5FF",
123
+ },
124
+ interactive: {
125
+ "10": "#263E31",
126
+ "20": "#2D5540",
127
+ "30": "#31694B",
128
+ "40": "#419468",
129
+ "50": "#59BC87",
130
+ "60": "#72E3A1",
131
+ "70": "#78FAAE",
132
+ "80": "#A8FFCC",
133
+ "90": "#CFFFE3",
134
+ "95": "#E8FFF1",
135
+ },
136
+ black: "#000000",
137
+ white: "#ffffff",
138
+ },
139
+ typeface: {
140
+ brand: "SKODANext",
141
+ "brand-display": "SKODA Next",
142
+ weight: {
143
+ light: "300",
144
+ book: "350",
145
+ regular: "400",
146
+ medium: "500",
147
+ semibold: "600",
148
+ bold: "700",
149
+ "extra-bold": "800",
150
+ black: "900",
151
+ },
152
+ "line-height": "1.4",
153
+ size: {
154
+ s: "0.875rem",
155
+ base: "1rem",
156
+ m: "1.125rem",
157
+ l: "1.25rem",
158
+ xl: "1.5rem",
159
+ xxl: "1.75rem",
160
+ "3xl": "2rem",
161
+ "4xl": "2.5rem",
162
+ "5xl": "3.25rem",
163
+ },
164
+ "letter-spacing": {
165
+ none: "0",
166
+ },
167
+ "text-case": {
168
+ none: "none",
169
+ uppercase: "uppercase",
170
+ lowercase: "lowercase",
171
+ },
172
+ "text-decoration": {
173
+ none: "none",
174
+ line: "underline",
175
+ strikethrough: "line-through",
176
+ },
177
+ },
178
+ color: {
179
+ primary: "#78faae",
180
+ "on-primary": "#000000",
181
+ "on-secondary": "#ffffff",
182
+ tertiary: "#78faae",
183
+ "tertiary-variant": "#84b5a6",
184
+ background: "#161718",
185
+ "on-background": "#ffffff",
186
+ "inverse-background": "#ffffff",
187
+ "on-inverse-background": "#000000",
188
+ surface: "#464748",
189
+ "on-surface": "#ffffff",
190
+ disabled: "#5a5b5c",
191
+ "on-disabled": "#8e8f90",
192
+ "text-variant": "#c4c6c7",
193
+ "inverse-text-variant": "#303132",
194
+ loader: "#9e9fa0",
195
+ "on-loader": "#7c7d7e",
196
+ "surface-variant": "#303132",
197
+ "on-surface-variant": "#ffffff",
198
+ success: "#4baa24",
199
+ interactive: "#78faae",
200
+ highlight: "#419468",
201
+ "primary-container": "#cfffe3",
202
+ "on-primary-container": "#263e31",
203
+ secondary: "#419468",
204
+ "secondary-container": "#cfffe3",
205
+ "on-secondary-container": "#263e31",
206
+ "on-tertiary": "#000000",
207
+ "tertiary-container": "#cfffe3",
208
+ "on-tertiary-container": "#263e31",
209
+ "on-tertiary-variant": "#000000",
210
+ outline: "#d8d8d8",
211
+ error: "#ea443b",
212
+ "on-error": "#ffffff",
213
+ "error-container": "#ffe4db",
214
+ "on-error-container": "#330000",
215
+ warning: "#d87f16",
216
+ "on-warning": "#000000",
217
+ "warning-container": "#fff8db",
218
+ "on-warning-container": "#331e00",
219
+ "on-success": "#ffffff",
220
+ "success-container": "#dbf8db",
221
+ "on-success-container": "#032100",
222
+ info: "#3784d1",
223
+ "on-info": "#ffffff",
224
+ "info-container": "#dbe5ff",
225
+ "on-info-container": "#00162e",
226
+ },
227
+ radius: {
228
+ button: "999px",
229
+ card: "8px",
230
+ checkbox: "0px",
231
+ input: "0px",
232
+ picker: "0px",
233
+ overlay: "0px",
234
+ feedback: "0px",
235
+ },
236
+ type: {
237
+ large: {
238
+ display: {
239
+ fontFamily: "SKODA Next",
240
+ fontWeight: "700",
241
+ fontSize: "3.25rem",
242
+ lineHeight: "1.4",
243
+ letterSpacing: "0",
244
+ paragraphSpacing: "3.75rem",
245
+ textDecoration: "none",
246
+ textCase: "none",
247
+ },
248
+ heading1: {
249
+ fontFamily: "SKODANext",
250
+ fontWeight: "700",
251
+ fontSize: "2rem",
252
+ lineHeight: "1.4",
253
+ letterSpacing: "0",
254
+ paragraphSpacing: "3rem",
255
+ textDecoration: "none",
256
+ textCase: "none",
257
+ },
258
+ heading2: {
259
+ fontFamily: "SKODANext",
260
+ fontWeight: "500",
261
+ fontSize: "1.75rem",
262
+ lineHeight: "1.4",
263
+ letterSpacing: "0",
264
+ paragraphSpacing: "2.625rem",
265
+ textDecoration: "none",
266
+ textCase: "none",
267
+ },
268
+ heading3: {
269
+ fontFamily: "SKODANext",
270
+ fontWeight: "500",
271
+ fontSize: "1.5rem",
272
+ lineHeight: "1.4",
273
+ letterSpacing: "0",
274
+ paragraphSpacing: "2.25rem",
275
+ textDecoration: "none",
276
+ textCase: "none",
277
+ },
278
+ lead: {
279
+ fontFamily: "SKODANext",
280
+ fontWeight: "400",
281
+ lineHeight: "1.4",
282
+ fontSize: "1.25rem",
283
+ letterSpacing: "0",
284
+ textCase: "none",
285
+ textDecoration: "none",
286
+ paragraphSpacing: "1.25rem",
287
+ },
288
+ body: {
289
+ fontFamily: "SKODANext",
290
+ fontWeight: "400",
291
+ fontSize: "1rem",
292
+ lineHeight: "1.4",
293
+ letterSpacing: "0",
294
+ paragraphSpacing: "1rem",
295
+ textDecoration: "none",
296
+ textCase: "none",
297
+ },
298
+ link: {
299
+ fontFamily: "SKODANext",
300
+ fontWeight: "400",
301
+ fontSize: "1rem",
302
+ lineHeight: "1.4",
303
+ letterSpacing: "0",
304
+ textDecoration: "underline",
305
+ textCase: "none",
306
+ paragraphSpacing: "1rem",
307
+ },
308
+ detail: {
309
+ fontFamily: "SKODANext",
310
+ fontWeight: "400",
311
+ fontSize: "0.875rem",
312
+ lineHeight: "1.4",
313
+ letterSpacing: "0",
314
+ textDecoration: "none",
315
+ textCase: "none",
316
+ paragraphSpacing: "0.875rem",
317
+ },
318
+ },
319
+ medium: {
320
+ display: {
321
+ fontFamily: "SKODANext",
322
+ fontWeight: "700",
323
+ fontSize: "2.5rem",
324
+ lineHeight: "1.4",
325
+ letterSpacing: "0",
326
+ paragraphSpacing: "3.75rem",
327
+ textDecoration: "none",
328
+ textCase: "none",
329
+ },
330
+ heading1: {
331
+ fontFamily: "SKODANext",
332
+ fontWeight: "700",
333
+ fontSize: "1.75rem",
334
+ lineHeight: "1.4",
335
+ letterSpacing: "0",
336
+ paragraphSpacing: "2.625rem",
337
+ textDecoration: "none",
338
+ textCase: "none",
339
+ },
340
+ heading2: {
341
+ fontFamily: "SKODANext",
342
+ fontWeight: "500",
343
+ fontSize: "1.5rem",
344
+ lineHeight: "1.4",
345
+ letterSpacing: "0",
346
+ paragraphSpacing: "2.25rem",
347
+ textDecoration: "none",
348
+ textCase: "none",
349
+ },
350
+ heading3: {
351
+ fontFamily: "SKODANext",
352
+ fontWeight: "500",
353
+ fontSize: "1.25rem",
354
+ lineHeight: "1.4",
355
+ letterSpacing: "0",
356
+ paragraphSpacing: "1.875rem",
357
+ textDecoration: "none",
358
+ textCase: "none",
359
+ },
360
+ lead: {
361
+ fontFamily: "SKODANext",
362
+ fontWeight: "400",
363
+ lineHeight: "1.4",
364
+ fontSize: "1.125rem",
365
+ letterSpacing: "0",
366
+ textCase: "none",
367
+ textDecoration: "none",
368
+ paragraphSpacing: "1.125rem",
369
+ },
370
+ body: {
371
+ fontFamily: "SKODANext",
372
+ fontWeight: "400",
373
+ fontSize: "1rem",
374
+ lineHeight: "1.4",
375
+ letterSpacing: "0",
376
+ paragraphSpacing: "1rem",
377
+ textDecoration: "none",
378
+ textCase: "none",
379
+ },
380
+ link: {
381
+ fontFamily: "SKODANext",
382
+ fontWeight: "400",
383
+ fontSize: "1rem",
384
+ lineHeight: "1.4",
385
+ letterSpacing: "0",
386
+ paragraphSpacing: "1rem",
387
+ textDecoration: "underline",
388
+ textCase: "none",
389
+ },
390
+ detail: {
391
+ fontFamily: "SKODANext",
392
+ fontWeight: "400",
393
+ fontSize: "0.875rem",
394
+ lineHeight: "1.4",
395
+ letterSpacing: "0",
396
+ textDecoration: "none",
397
+ textCase: "none",
398
+ paragraphSpacing: "0.875rem",
399
+ },
400
+ },
401
+ small: {
402
+ display: {
403
+ fontFamily: "SKODANext",
404
+ fontWeight: "700",
405
+ fontSize: "2rem",
406
+ lineHeight: "1.4",
407
+ letterSpacing: "0",
408
+ paragraphSpacing: "3rem",
409
+ textDecoration: "none",
410
+ textCase: "none",
411
+ },
412
+ heading1: {
413
+ fontFamily: "SKODANext",
414
+ fontWeight: "700",
415
+ fontSize: "1.5rem",
416
+ lineHeight: "1.4",
417
+ letterSpacing: "0",
418
+ paragraphSpacing: "2.25rem",
419
+ textDecoration: "none",
420
+ textCase: "none",
421
+ },
422
+ heading2: {
423
+ fontFamily: "SKODANext",
424
+ fontWeight: "500",
425
+ fontSize: "1.25rem",
426
+ lineHeight: "1.4",
427
+ letterSpacing: "0",
428
+ paragraphSpacing: "1.875rem",
429
+ textDecoration: "none",
430
+ textCase: "none",
431
+ },
432
+ heading3: {
433
+ fontFamily: "SKODANext",
434
+ fontWeight: "500",
435
+ fontSize: "1.125rem",
436
+ lineHeight: "1.4",
437
+ letterSpacing: "0",
438
+ paragraphSpacing: "1.6875rem",
439
+ textDecoration: "none",
440
+ textCase: "none",
441
+ },
442
+ lead: {
443
+ fontFamily: "SKODANext",
444
+ fontWeight: "400",
445
+ lineHeight: "1.4",
446
+ fontSize: "1.125rem",
447
+ paragraphSpacing: "1.125rem",
448
+ letterSpacing: "0",
449
+ textCase: "none",
450
+ textDecoration: "none",
451
+ },
452
+ body: {
453
+ fontFamily: "SKODANext",
454
+ fontWeight: "400",
455
+ fontSize: "1rem",
456
+ lineHeight: "1.4",
457
+ letterSpacing: "0",
458
+ paragraphSpacing: "1rem",
459
+ textDecoration: "none",
460
+ textCase: "none",
461
+ },
462
+ link: {
463
+ fontFamily: "SKODANext",
464
+ fontWeight: "400",
465
+ fontSize: "1rem",
466
+ lineHeight: "1.4",
467
+ letterSpacing: "0",
468
+ paragraphSpacing: "1rem",
469
+ textDecoration: "underline",
470
+ textCase: "none",
471
+ },
472
+ detail: {
473
+ fontFamily: "SKODANext",
474
+ fontWeight: "400",
475
+ fontSize: "0.875rem",
476
+ lineHeight: "1.4",
477
+ letterSpacing: "0",
478
+ paragraphSpacing: "0.875rem",
479
+ textDecoration: "none",
480
+ textCase: "none",
481
+ },
482
+ },
483
+ },
484
+ spacing: {
485
+ none: "0px",
486
+ base: "4px",
487
+ xxs: "8px",
488
+ xs: "12px",
489
+ s: "16px",
490
+ m: "20px",
491
+ l: "24px",
492
+ xl: "32px",
493
+ xxl: "40px",
494
+ "3xl": "48px",
495
+ },
496
+ size: {
497
+ base: "4px",
498
+ xxs: "8px",
499
+ xs: "12px",
500
+ s: "16px",
501
+ m: "20px",
502
+ l: "24px",
503
+ xl: "32px",
504
+ xxl: "40px",
505
+ "3xl": "48px",
506
+ "4xl": "64px",
507
+ },
508
+ keycolor: {
509
+ primary: "#419468",
510
+ secondary: "#419468",
511
+ tertiary: "#419468",
512
+ "tertiary-variant": "#3A6558",
513
+ neutral: "#7C7D7E",
514
+ "neutral-variant": "#5A5B5C",
515
+ error: "#EA443B",
516
+ warning: "#D87F16",
517
+ success: "#359204",
518
+ info: "#3784D1",
519
+ Interactive: "#419468",
520
+ },
521
+ stroke: {
522
+ "x-small": "0.5px",
523
+ small: "1px",
524
+ medium: "2px",
525
+ large: "4px",
526
+ },
527
+ "border-radius": {
528
+ none: "0px",
529
+ small: "2px",
530
+ medium: "4px",
531
+ large: "8px",
532
+ "x-large": "12px",
533
+ "xx-large": "16px",
534
+ full: "999px",
535
+ },
536
+ elevation: {
537
+ none: "0px 0px 0px 0px #00000000",
538
+ low: "0px 0px 1px 0px #0000003d, 0px 1px 4px 0px #0000000a, 0px 4px 8px 0px #0000000f",
539
+ medium: "0px 0px 1px 0px #0000003d, 0px 4px 8px 0px #0000000a, 0px 8px 24px 0px #0000000f",
540
+ high: "0px 0px 1px 0px #0000003d, 0px 2px 16px 0px #00000014, 0px 8px 48px 0px #0000000f",
541
+ },
542
+ "opacity-percentage": {
543
+ "8": "0.08",
544
+ "16": "0.16",
545
+ },
546
+ opacity: {
547
+ "on-hover": "0.08",
548
+ "on-pressed": "0.16",
549
+ "on-focus": "0.16",
550
+ },
551
+ };
@@ -0,0 +1 @@
1
+ export declare const tools: string;
@@ -0,0 +1,4 @@
1
+ import { createTheme } from "@vanilla-extract/css";
2
+ import { tokens } from "../tokens.css.js";
3
+ import { toolsTokens } from "./toolsTokens.js";
4
+ export const tools = createTheme(tokens, toolsTokens);