@kystverket/styrbord-tokens 1.0.0 → 1.2.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/README.md CHANGED
@@ -64,4 +64,6 @@ colors.light.hav.baseDefault // Kystverket brand palette
64
64
 
65
65
  Each role exposes 16 slots: `backgroundDefault`, `backgroundTinted`, `surfaceDefault`, `surfaceTinted`, `surfaceHover`, `surfaceActive`, `borderSubtle`, `borderDefault`, `borderStrong`, `textSubtle`, `textDefault`, `baseDefault`, `baseHover`, `baseActive`, `baseContrastSubtle`, `baseContrastDefault`.
66
66
 
67
+ Some roles also expose profile colours from the brand guidelines, outside the scale, each with a `-contrast` text colour: `brand` (`primary`, `accent`, `neutral`, `extra1`, `extra2`, `sol`, `lyng`), `brandSecondary` (`primary`, `extra1`) and `brandBackground` (`primary`). They are the same in light and dark mode and are meant for single elements. In CSS they are `--ds-color-<role>-brand`, `--ds-color-<role>-brand-contrast` etc., and `--ds-color-brand` inside `[data-color]`.
68
+
67
69
  > **Note:** Hex values are static snapshots. For runtime theme switching (light/dark), use the CSS custom properties instead.
@@ -18,6 +18,12 @@ export declare const colors: {
18
18
  baseActive: string;
19
19
  baseContrastSubtle: string;
20
20
  baseContrastDefault: string;
21
+ brand: string;
22
+ brandContrast: string;
23
+ brandSecondary: string;
24
+ brandSecondaryContrast: string;
25
+ brandBackground: string;
26
+ brandBackgroundContrast: string;
21
27
  };
22
28
  accent: {
23
29
  backgroundDefault: string;
@@ -36,6 +42,8 @@ export declare const colors: {
36
42
  baseActive: string;
37
43
  baseContrastSubtle: string;
38
44
  baseContrastDefault: string;
45
+ brand: string;
46
+ brandContrast: string;
39
47
  };
40
48
  neutral: {
41
49
  backgroundDefault: string;
@@ -54,6 +62,8 @@ export declare const colors: {
54
62
  baseActive: string;
55
63
  baseContrastSubtle: string;
56
64
  baseContrastDefault: string;
65
+ brand: string;
66
+ brandContrast: string;
57
67
  };
58
68
  extra1: {
59
69
  backgroundDefault: string;
@@ -72,6 +82,10 @@ export declare const colors: {
72
82
  baseActive: string;
73
83
  baseContrastSubtle: string;
74
84
  baseContrastDefault: string;
85
+ brand: string;
86
+ brandContrast: string;
87
+ brandSecondary: string;
88
+ brandSecondaryContrast: string;
75
89
  };
76
90
  extra2: {
77
91
  backgroundDefault: string;
@@ -90,6 +104,8 @@ export declare const colors: {
90
104
  baseActive: string;
91
105
  baseContrastSubtle: string;
92
106
  baseContrastDefault: string;
107
+ brand: string;
108
+ brandContrast: string;
93
109
  };
94
110
  lyng: {
95
111
  backgroundDefault: string;
@@ -108,6 +124,8 @@ export declare const colors: {
108
124
  baseActive: string;
109
125
  baseContrastSubtle: string;
110
126
  baseContrastDefault: string;
127
+ brand: string;
128
+ brandContrast: string;
111
129
  };
112
130
  hav: {
113
131
  backgroundDefault: string;
@@ -180,6 +198,8 @@ export declare const colors: {
180
198
  baseActive: string;
181
199
  baseContrastSubtle: string;
182
200
  baseContrastDefault: string;
201
+ brand: string;
202
+ brandContrast: string;
183
203
  };
184
204
  himmel: {
185
205
  backgroundDefault: string;
@@ -366,6 +386,12 @@ export declare const colors: {
366
386
  baseActive: string;
367
387
  baseContrastSubtle: string;
368
388
  baseContrastDefault: string;
389
+ brand: string;
390
+ brandContrast: string;
391
+ brandSecondary: string;
392
+ brandSecondaryContrast: string;
393
+ brandBackground: string;
394
+ brandBackgroundContrast: string;
369
395
  };
370
396
  accent: {
371
397
  backgroundDefault: string;
@@ -384,6 +410,8 @@ export declare const colors: {
384
410
  baseActive: string;
385
411
  baseContrastSubtle: string;
386
412
  baseContrastDefault: string;
413
+ brand: string;
414
+ brandContrast: string;
387
415
  };
388
416
  neutral: {
389
417
  backgroundDefault: string;
@@ -402,6 +430,8 @@ export declare const colors: {
402
430
  baseActive: string;
403
431
  baseContrastSubtle: string;
404
432
  baseContrastDefault: string;
433
+ brand: string;
434
+ brandContrast: string;
405
435
  };
406
436
  extra1: {
407
437
  backgroundDefault: string;
@@ -420,6 +450,10 @@ export declare const colors: {
420
450
  baseActive: string;
421
451
  baseContrastSubtle: string;
422
452
  baseContrastDefault: string;
453
+ brand: string;
454
+ brandContrast: string;
455
+ brandSecondary: string;
456
+ brandSecondaryContrast: string;
423
457
  };
424
458
  extra2: {
425
459
  backgroundDefault: string;
@@ -438,6 +472,8 @@ export declare const colors: {
438
472
  baseActive: string;
439
473
  baseContrastSubtle: string;
440
474
  baseContrastDefault: string;
475
+ brand: string;
476
+ brandContrast: string;
441
477
  };
442
478
  lyng: {
443
479
  backgroundDefault: string;
@@ -456,6 +492,8 @@ export declare const colors: {
456
492
  baseActive: string;
457
493
  baseContrastSubtle: string;
458
494
  baseContrastDefault: string;
495
+ brand: string;
496
+ brandContrast: string;
459
497
  };
460
498
  hav: {
461
499
  backgroundDefault: string;
@@ -528,6 +566,8 @@ export declare const colors: {
528
566
  baseActive: string;
529
567
  baseContrastSubtle: string;
530
568
  baseContrastDefault: string;
569
+ brand: string;
570
+ brandContrast: string;
531
571
  };
532
572
  himmel: {
533
573
  backgroundDefault: string;