@kystverket/styrbord-tokens 0.7.0 → 1.0.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/dist/color-tokens.d.ts +29 -29
- package/dist/color-tokens.js +173 -173
- package/dist/colors.d.ts +11 -1
- package/dist/kystverket.css +553 -333
- package/dist/types.d.ts +11 -1
- package/package.json +5 -4
package/dist/color-tokens.d.ts
CHANGED
|
@@ -91,7 +91,7 @@ export declare const colors: {
|
|
|
91
91
|
baseContrastSubtle: string;
|
|
92
92
|
baseContrastDefault: string;
|
|
93
93
|
};
|
|
94
|
-
|
|
94
|
+
lyng: {
|
|
95
95
|
backgroundDefault: string;
|
|
96
96
|
backgroundTinted: string;
|
|
97
97
|
surfaceDefault: string;
|
|
@@ -109,7 +109,7 @@ export declare const colors: {
|
|
|
109
109
|
baseContrastSubtle: string;
|
|
110
110
|
baseContrastDefault: string;
|
|
111
111
|
};
|
|
112
|
-
|
|
112
|
+
hav: {
|
|
113
113
|
backgroundDefault: string;
|
|
114
114
|
backgroundTinted: string;
|
|
115
115
|
surfaceDefault: string;
|
|
@@ -127,7 +127,7 @@ export declare const colors: {
|
|
|
127
127
|
baseContrastSubtle: string;
|
|
128
128
|
baseContrastDefault: string;
|
|
129
129
|
};
|
|
130
|
-
|
|
130
|
+
stein: {
|
|
131
131
|
backgroundDefault: string;
|
|
132
132
|
backgroundTinted: string;
|
|
133
133
|
surfaceDefault: string;
|
|
@@ -145,7 +145,7 @@ export declare const colors: {
|
|
|
145
145
|
baseContrastSubtle: string;
|
|
146
146
|
baseContrastDefault: string;
|
|
147
147
|
};
|
|
148
|
-
|
|
148
|
+
gress: {
|
|
149
149
|
backgroundDefault: string;
|
|
150
150
|
backgroundTinted: string;
|
|
151
151
|
surfaceDefault: string;
|
|
@@ -163,7 +163,7 @@ export declare const colors: {
|
|
|
163
163
|
baseContrastSubtle: string;
|
|
164
164
|
baseContrastDefault: string;
|
|
165
165
|
};
|
|
166
|
-
|
|
166
|
+
sol: {
|
|
167
167
|
backgroundDefault: string;
|
|
168
168
|
backgroundTinted: string;
|
|
169
169
|
surfaceDefault: string;
|
|
@@ -181,7 +181,7 @@ export declare const colors: {
|
|
|
181
181
|
baseContrastSubtle: string;
|
|
182
182
|
baseContrastDefault: string;
|
|
183
183
|
};
|
|
184
|
-
|
|
184
|
+
himmel: {
|
|
185
185
|
backgroundDefault: string;
|
|
186
186
|
backgroundTinted: string;
|
|
187
187
|
surfaceDefault: string;
|
|
@@ -199,7 +199,7 @@ export declare const colors: {
|
|
|
199
199
|
baseContrastSubtle: string;
|
|
200
200
|
baseContrastDefault: string;
|
|
201
201
|
};
|
|
202
|
-
|
|
202
|
+
sand: {
|
|
203
203
|
backgroundDefault: string;
|
|
204
204
|
backgroundTinted: string;
|
|
205
205
|
surfaceDefault: string;
|
|
@@ -217,7 +217,7 @@ export declare const colors: {
|
|
|
217
217
|
baseContrastSubtle: string;
|
|
218
218
|
baseContrastDefault: string;
|
|
219
219
|
};
|
|
220
|
-
|
|
220
|
+
fyr: {
|
|
221
221
|
backgroundDefault: string;
|
|
222
222
|
backgroundTinted: string;
|
|
223
223
|
surfaceDefault: string;
|
|
@@ -235,7 +235,7 @@ export declare const colors: {
|
|
|
235
235
|
baseContrastSubtle: string;
|
|
236
236
|
baseContrastDefault: string;
|
|
237
237
|
};
|
|
238
|
-
|
|
238
|
+
dyphav: {
|
|
239
239
|
backgroundDefault: string;
|
|
240
240
|
backgroundTinted: string;
|
|
241
241
|
surfaceDefault: string;
|
|
@@ -253,7 +253,7 @@ export declare const colors: {
|
|
|
253
253
|
baseContrastSubtle: string;
|
|
254
254
|
baseContrastDefault: string;
|
|
255
255
|
};
|
|
256
|
-
|
|
256
|
+
skog: {
|
|
257
257
|
backgroundDefault: string;
|
|
258
258
|
backgroundTinted: string;
|
|
259
259
|
surfaceDefault: string;
|
|
@@ -271,7 +271,7 @@ export declare const colors: {
|
|
|
271
271
|
baseContrastSubtle: string;
|
|
272
272
|
baseContrastDefault: string;
|
|
273
273
|
};
|
|
274
|
-
|
|
274
|
+
success: {
|
|
275
275
|
backgroundDefault: string;
|
|
276
276
|
backgroundTinted: string;
|
|
277
277
|
surfaceDefault: string;
|
|
@@ -289,7 +289,7 @@ export declare const colors: {
|
|
|
289
289
|
baseContrastSubtle: string;
|
|
290
290
|
baseContrastDefault: string;
|
|
291
291
|
};
|
|
292
|
-
|
|
292
|
+
danger: {
|
|
293
293
|
backgroundDefault: string;
|
|
294
294
|
backgroundTinted: string;
|
|
295
295
|
surfaceDefault: string;
|
|
@@ -307,7 +307,7 @@ export declare const colors: {
|
|
|
307
307
|
baseContrastSubtle: string;
|
|
308
308
|
baseContrastDefault: string;
|
|
309
309
|
};
|
|
310
|
-
|
|
310
|
+
info: {
|
|
311
311
|
backgroundDefault: string;
|
|
312
312
|
backgroundTinted: string;
|
|
313
313
|
surfaceDefault: string;
|
|
@@ -325,7 +325,7 @@ export declare const colors: {
|
|
|
325
325
|
baseContrastSubtle: string;
|
|
326
326
|
baseContrastDefault: string;
|
|
327
327
|
};
|
|
328
|
-
|
|
328
|
+
warning: {
|
|
329
329
|
backgroundDefault: string;
|
|
330
330
|
backgroundTinted: string;
|
|
331
331
|
surfaceDefault: string;
|
|
@@ -439,7 +439,7 @@ export declare const colors: {
|
|
|
439
439
|
baseContrastSubtle: string;
|
|
440
440
|
baseContrastDefault: string;
|
|
441
441
|
};
|
|
442
|
-
|
|
442
|
+
lyng: {
|
|
443
443
|
backgroundDefault: string;
|
|
444
444
|
backgroundTinted: string;
|
|
445
445
|
surfaceDefault: string;
|
|
@@ -457,7 +457,7 @@ export declare const colors: {
|
|
|
457
457
|
baseContrastSubtle: string;
|
|
458
458
|
baseContrastDefault: string;
|
|
459
459
|
};
|
|
460
|
-
|
|
460
|
+
hav: {
|
|
461
461
|
backgroundDefault: string;
|
|
462
462
|
backgroundTinted: string;
|
|
463
463
|
surfaceDefault: string;
|
|
@@ -475,7 +475,7 @@ export declare const colors: {
|
|
|
475
475
|
baseContrastSubtle: string;
|
|
476
476
|
baseContrastDefault: string;
|
|
477
477
|
};
|
|
478
|
-
|
|
478
|
+
stein: {
|
|
479
479
|
backgroundDefault: string;
|
|
480
480
|
backgroundTinted: string;
|
|
481
481
|
surfaceDefault: string;
|
|
@@ -493,7 +493,7 @@ export declare const colors: {
|
|
|
493
493
|
baseContrastSubtle: string;
|
|
494
494
|
baseContrastDefault: string;
|
|
495
495
|
};
|
|
496
|
-
|
|
496
|
+
gress: {
|
|
497
497
|
backgroundDefault: string;
|
|
498
498
|
backgroundTinted: string;
|
|
499
499
|
surfaceDefault: string;
|
|
@@ -511,7 +511,7 @@ export declare const colors: {
|
|
|
511
511
|
baseContrastSubtle: string;
|
|
512
512
|
baseContrastDefault: string;
|
|
513
513
|
};
|
|
514
|
-
|
|
514
|
+
sol: {
|
|
515
515
|
backgroundDefault: string;
|
|
516
516
|
backgroundTinted: string;
|
|
517
517
|
surfaceDefault: string;
|
|
@@ -529,7 +529,7 @@ export declare const colors: {
|
|
|
529
529
|
baseContrastSubtle: string;
|
|
530
530
|
baseContrastDefault: string;
|
|
531
531
|
};
|
|
532
|
-
|
|
532
|
+
himmel: {
|
|
533
533
|
backgroundDefault: string;
|
|
534
534
|
backgroundTinted: string;
|
|
535
535
|
surfaceDefault: string;
|
|
@@ -547,7 +547,7 @@ export declare const colors: {
|
|
|
547
547
|
baseContrastSubtle: string;
|
|
548
548
|
baseContrastDefault: string;
|
|
549
549
|
};
|
|
550
|
-
|
|
550
|
+
sand: {
|
|
551
551
|
backgroundDefault: string;
|
|
552
552
|
backgroundTinted: string;
|
|
553
553
|
surfaceDefault: string;
|
|
@@ -565,7 +565,7 @@ export declare const colors: {
|
|
|
565
565
|
baseContrastSubtle: string;
|
|
566
566
|
baseContrastDefault: string;
|
|
567
567
|
};
|
|
568
|
-
|
|
568
|
+
fyr: {
|
|
569
569
|
backgroundDefault: string;
|
|
570
570
|
backgroundTinted: string;
|
|
571
571
|
surfaceDefault: string;
|
|
@@ -583,7 +583,7 @@ export declare const colors: {
|
|
|
583
583
|
baseContrastSubtle: string;
|
|
584
584
|
baseContrastDefault: string;
|
|
585
585
|
};
|
|
586
|
-
|
|
586
|
+
dyphav: {
|
|
587
587
|
backgroundDefault: string;
|
|
588
588
|
backgroundTinted: string;
|
|
589
589
|
surfaceDefault: string;
|
|
@@ -601,7 +601,7 @@ export declare const colors: {
|
|
|
601
601
|
baseContrastSubtle: string;
|
|
602
602
|
baseContrastDefault: string;
|
|
603
603
|
};
|
|
604
|
-
|
|
604
|
+
skog: {
|
|
605
605
|
backgroundDefault: string;
|
|
606
606
|
backgroundTinted: string;
|
|
607
607
|
surfaceDefault: string;
|
|
@@ -619,7 +619,7 @@ export declare const colors: {
|
|
|
619
619
|
baseContrastSubtle: string;
|
|
620
620
|
baseContrastDefault: string;
|
|
621
621
|
};
|
|
622
|
-
|
|
622
|
+
success: {
|
|
623
623
|
backgroundDefault: string;
|
|
624
624
|
backgroundTinted: string;
|
|
625
625
|
surfaceDefault: string;
|
|
@@ -637,7 +637,7 @@ export declare const colors: {
|
|
|
637
637
|
baseContrastSubtle: string;
|
|
638
638
|
baseContrastDefault: string;
|
|
639
639
|
};
|
|
640
|
-
|
|
640
|
+
danger: {
|
|
641
641
|
backgroundDefault: string;
|
|
642
642
|
backgroundTinted: string;
|
|
643
643
|
surfaceDefault: string;
|
|
@@ -655,7 +655,7 @@ export declare const colors: {
|
|
|
655
655
|
baseContrastSubtle: string;
|
|
656
656
|
baseContrastDefault: string;
|
|
657
657
|
};
|
|
658
|
-
|
|
658
|
+
info: {
|
|
659
659
|
backgroundDefault: string;
|
|
660
660
|
backgroundTinted: string;
|
|
661
661
|
surfaceDefault: string;
|
|
@@ -673,7 +673,7 @@ export declare const colors: {
|
|
|
673
673
|
baseContrastSubtle: string;
|
|
674
674
|
baseContrastDefault: string;
|
|
675
675
|
};
|
|
676
|
-
|
|
676
|
+
warning: {
|
|
677
677
|
backgroundDefault: string;
|
|
678
678
|
backgroundTinted: string;
|
|
679
679
|
surfaceDefault: string;
|
|
@@ -699,7 +699,7 @@ export declare const colors: {
|
|
|
699
699
|
};
|
|
700
700
|
|
|
701
701
|
export declare const styrbordSemanticColors: readonly ['primary', 'accent', 'neutral', 'extra1', 'extra2', 'success', 'danger', 'info', 'warning', 'focus'];
|
|
702
|
-
export declare const styrbordPaletteColors: readonly ['hav', 'stein', 'gress', 'sol', '
|
|
702
|
+
export declare const styrbordPaletteColors: readonly ['lyng', 'hav', 'stein', 'gress', 'sol', 'himmel', 'sand', 'fyr', 'dyphav', 'skog'];
|
|
703
703
|
export declare const styrbordColorVariants: readonly ['background', 'surface', 'border', 'text', 'base', 'baseContrast', 'inner', 'outer'];
|
|
704
704
|
export declare const styrbordColorModifiers: readonly ['default', 'tinted', 'hover', 'active', 'subtle', 'strong'];
|
|
705
705
|
|
package/dist/color-tokens.js
CHANGED
|
@@ -91,78 +91,24 @@ export const colors = {
|
|
|
91
91
|
baseContrastSubtle: "#d4edf6",
|
|
92
92
|
baseContrastDefault: "#ffffff"
|
|
93
93
|
},
|
|
94
|
-
|
|
95
|
-
backgroundDefault: "#ffffff",
|
|
96
|
-
backgroundTinted: "#ecf6ee",
|
|
97
|
-
surfaceDefault: "#ffffff",
|
|
98
|
-
surfaceTinted: "#daeddd",
|
|
99
|
-
surfaceHover: "#c3e2c7",
|
|
100
|
-
surfaceActive: "#a8d5ae",
|
|
101
|
-
borderSubtle: "#8fc997",
|
|
102
|
-
borderDefault: "#108c22",
|
|
103
|
-
borderStrong: "#056d13",
|
|
104
|
-
textSubtle: "#056d13",
|
|
105
|
-
textDefault: "#023409",
|
|
106
|
-
baseDefault: "#068718",
|
|
107
|
-
baseHover: "#057014",
|
|
108
|
-
baseActive: "#045a10",
|
|
109
|
-
baseContrastSubtle: "#fafdfb",
|
|
110
|
-
baseContrastDefault: "#ffffff"
|
|
111
|
-
},
|
|
112
|
-
danger: {
|
|
113
|
-
backgroundDefault: "#ffffff",
|
|
114
|
-
backgroundTinted: "#fbf1f1",
|
|
115
|
-
surfaceDefault: "#ffffff",
|
|
116
|
-
surfaceTinted: "#f8e4e4",
|
|
117
|
-
surfaceHover: "#f3d2d2",
|
|
118
|
-
surfaceActive: "#edbfbf",
|
|
119
|
-
borderSubtle: "#e8adad",
|
|
120
|
-
borderDefault: "#ce4d4d",
|
|
121
|
-
borderStrong: "#b81a1a",
|
|
122
|
-
textSubtle: "#b81a1a",
|
|
123
|
-
textDefault: "#590d0d",
|
|
124
|
-
baseDefault: "#C01B1B",
|
|
125
|
-
baseHover: "#9b1616",
|
|
126
|
-
baseActive: "#791111",
|
|
127
|
-
baseContrastSubtle: "#f7e1e1",
|
|
128
|
-
baseContrastDefault: "#ffffff"
|
|
129
|
-
},
|
|
130
|
-
info: {
|
|
94
|
+
lyng: {
|
|
131
95
|
backgroundDefault: "#ffffff",
|
|
132
|
-
backgroundTinted: "#
|
|
96
|
+
backgroundTinted: "#F8ECF3",
|
|
133
97
|
surfaceDefault: "#ffffff",
|
|
134
|
-
surfaceTinted: "#
|
|
135
|
-
surfaceHover: "#
|
|
136
|
-
surfaceActive: "#
|
|
137
|
-
borderSubtle: "#
|
|
138
|
-
borderDefault: "#
|
|
139
|
-
borderStrong: "#
|
|
140
|
-
textSubtle: "#
|
|
141
|
-
textDefault: "#
|
|
142
|
-
baseDefault: "#
|
|
143
|
-
baseHover: "#
|
|
144
|
-
baseActive: "#
|
|
145
|
-
baseContrastSubtle: "#
|
|
98
|
+
surfaceTinted: "#F0D9E8",
|
|
99
|
+
surfaceHover: "#E9C6DC",
|
|
100
|
+
surfaceActive: "#E2B3D0",
|
|
101
|
+
borderSubtle: "#DAA0C4",
|
|
102
|
+
borderDefault: "#B6428A",
|
|
103
|
+
borderStrong: "#69004C",
|
|
104
|
+
textSubtle: "#B6428A",
|
|
105
|
+
textDefault: "#69004C",
|
|
106
|
+
baseDefault: "#B6428A",
|
|
107
|
+
baseHover: "#69004C",
|
|
108
|
+
baseActive: "#380029",
|
|
109
|
+
baseContrastSubtle: "#F8ECF3",
|
|
146
110
|
baseContrastDefault: "#ffffff"
|
|
147
111
|
},
|
|
148
|
-
warning: {
|
|
149
|
-
backgroundDefault: "#ffffff",
|
|
150
|
-
backgroundTinted: "#fcf2e2",
|
|
151
|
-
surfaceDefault: "#ffffff",
|
|
152
|
-
surfaceTinted: "#fae6c6",
|
|
153
|
-
surfaceHover: "#f6d5a0",
|
|
154
|
-
surfaceActive: "#f2c275",
|
|
155
|
-
borderSubtle: "#eeb04c",
|
|
156
|
-
borderDefault: "#a56d13",
|
|
157
|
-
borderStrong: "#80540f",
|
|
158
|
-
textSubtle: "#80540f",
|
|
159
|
-
textDefault: "#3c2807",
|
|
160
|
-
baseDefault: "#EA9B1B",
|
|
161
|
-
baseHover: "#cd8818",
|
|
162
|
-
baseActive: "#b27614",
|
|
163
|
-
baseContrastSubtle: "#271a04",
|
|
164
|
-
baseContrastDefault: "#000000"
|
|
165
|
-
},
|
|
166
112
|
hav: {
|
|
167
113
|
backgroundDefault: "#ffffff",
|
|
168
114
|
backgroundTinted: "#E6F4FA",
|
|
@@ -235,24 +181,6 @@ export const colors = {
|
|
|
235
181
|
baseContrastSubtle: "#FEFBE8",
|
|
236
182
|
baseContrastDefault: "#ffffff"
|
|
237
183
|
},
|
|
238
|
-
lyng: {
|
|
239
|
-
backgroundDefault: "#ffffff",
|
|
240
|
-
backgroundTinted: "#F8ECF3",
|
|
241
|
-
surfaceDefault: "#ffffff",
|
|
242
|
-
surfaceTinted: "#F0D9E8",
|
|
243
|
-
surfaceHover: "#E9C6DC",
|
|
244
|
-
surfaceActive: "#E2B3D0",
|
|
245
|
-
borderSubtle: "#DAA0C4",
|
|
246
|
-
borderDefault: "#B6428A",
|
|
247
|
-
borderStrong: "#69004C",
|
|
248
|
-
textSubtle: "#B6428A",
|
|
249
|
-
textDefault: "#69004C",
|
|
250
|
-
baseDefault: "#B6428A",
|
|
251
|
-
baseHover: "#69004C",
|
|
252
|
-
baseActive: "#380029",
|
|
253
|
-
baseContrastSubtle: "#F8ECF3",
|
|
254
|
-
baseContrastDefault: "#ffffff"
|
|
255
|
-
},
|
|
256
184
|
himmel: {
|
|
257
185
|
backgroundDefault: "#ffffff",
|
|
258
186
|
backgroundTinted: "#F6FCFF",
|
|
@@ -343,6 +271,78 @@ export const colors = {
|
|
|
343
271
|
baseContrastSubtle: "#EBF6EF",
|
|
344
272
|
baseContrastDefault: "#ffffff"
|
|
345
273
|
},
|
|
274
|
+
success: {
|
|
275
|
+
backgroundDefault: "#ffffff",
|
|
276
|
+
backgroundTinted: "#ecf6ee",
|
|
277
|
+
surfaceDefault: "#ffffff",
|
|
278
|
+
surfaceTinted: "#daeddd",
|
|
279
|
+
surfaceHover: "#c3e2c7",
|
|
280
|
+
surfaceActive: "#a8d5ae",
|
|
281
|
+
borderSubtle: "#8fc997",
|
|
282
|
+
borderDefault: "#108c22",
|
|
283
|
+
borderStrong: "#056d13",
|
|
284
|
+
textSubtle: "#056d13",
|
|
285
|
+
textDefault: "#023409",
|
|
286
|
+
baseDefault: "#068718",
|
|
287
|
+
baseHover: "#057014",
|
|
288
|
+
baseActive: "#045a10",
|
|
289
|
+
baseContrastSubtle: "#fafdfb",
|
|
290
|
+
baseContrastDefault: "#ffffff"
|
|
291
|
+
},
|
|
292
|
+
danger: {
|
|
293
|
+
backgroundDefault: "#ffffff",
|
|
294
|
+
backgroundTinted: "#fbf1f1",
|
|
295
|
+
surfaceDefault: "#ffffff",
|
|
296
|
+
surfaceTinted: "#f8e4e4",
|
|
297
|
+
surfaceHover: "#f3d2d2",
|
|
298
|
+
surfaceActive: "#edbfbf",
|
|
299
|
+
borderSubtle: "#e8adad",
|
|
300
|
+
borderDefault: "#ce4d4d",
|
|
301
|
+
borderStrong: "#b81a1a",
|
|
302
|
+
textSubtle: "#b81a1a",
|
|
303
|
+
textDefault: "#590d0d",
|
|
304
|
+
baseDefault: "#C01B1B",
|
|
305
|
+
baseHover: "#9b1616",
|
|
306
|
+
baseActive: "#791111",
|
|
307
|
+
baseContrastSubtle: "#f7e1e1",
|
|
308
|
+
baseContrastDefault: "#ffffff"
|
|
309
|
+
},
|
|
310
|
+
info: {
|
|
311
|
+
backgroundDefault: "#ffffff",
|
|
312
|
+
backgroundTinted: "#edf5fa",
|
|
313
|
+
surfaceDefault: "#ffffff",
|
|
314
|
+
surfaceTinted: "#dcebf6",
|
|
315
|
+
surfaceHover: "#c5ddf0",
|
|
316
|
+
surfaceActive: "#abcfe9",
|
|
317
|
+
borderSubtle: "#94c1e3",
|
|
318
|
+
borderDefault: "#1f7dc5",
|
|
319
|
+
borderStrong: "#0860a3",
|
|
320
|
+
textSubtle: "#0860a3",
|
|
321
|
+
textDefault: "#042d4d",
|
|
322
|
+
baseDefault: "#0a71c0",
|
|
323
|
+
baseHover: "#085d9f",
|
|
324
|
+
baseActive: "#074a7e",
|
|
325
|
+
baseContrastSubtle: "#eff6fb",
|
|
326
|
+
baseContrastDefault: "#ffffff"
|
|
327
|
+
},
|
|
328
|
+
warning: {
|
|
329
|
+
backgroundDefault: "#ffffff",
|
|
330
|
+
backgroundTinted: "#fcf2e2",
|
|
331
|
+
surfaceDefault: "#ffffff",
|
|
332
|
+
surfaceTinted: "#fae6c6",
|
|
333
|
+
surfaceHover: "#f6d5a0",
|
|
334
|
+
surfaceActive: "#f2c275",
|
|
335
|
+
borderSubtle: "#eeb04c",
|
|
336
|
+
borderDefault: "#a56d13",
|
|
337
|
+
borderStrong: "#80540f",
|
|
338
|
+
textSubtle: "#80540f",
|
|
339
|
+
textDefault: "#3c2807",
|
|
340
|
+
baseDefault: "#EA9B1B",
|
|
341
|
+
baseHover: "#cd8818",
|
|
342
|
+
baseActive: "#b27614",
|
|
343
|
+
baseContrastSubtle: "#271a04",
|
|
344
|
+
baseContrastDefault: "#000000"
|
|
345
|
+
},
|
|
346
346
|
focus: {
|
|
347
347
|
inner: "#ffffff",
|
|
348
348
|
outer: "#000667"
|
|
@@ -439,76 +439,22 @@ export const colors = {
|
|
|
439
439
|
baseContrastSubtle: "#ddd9cf",
|
|
440
440
|
baseContrastDefault: "#ffffff"
|
|
441
441
|
},
|
|
442
|
-
|
|
443
|
-
backgroundDefault: "#ffffff",
|
|
444
|
-
backgroundTinted: "#ecf6ee",
|
|
445
|
-
surfaceDefault: "#ffffff",
|
|
446
|
-
surfaceTinted: "#daeddd",
|
|
447
|
-
surfaceHover: "#c3e2c7",
|
|
448
|
-
surfaceActive: "#a8d5ae",
|
|
449
|
-
borderSubtle: "#8fc997",
|
|
450
|
-
borderDefault: "#108c22",
|
|
451
|
-
borderStrong: "#056d13",
|
|
452
|
-
textSubtle: "#056d13",
|
|
453
|
-
textDefault: "#023409",
|
|
454
|
-
baseDefault: "#068718",
|
|
455
|
-
baseHover: "#057014",
|
|
456
|
-
baseActive: "#045a10",
|
|
457
|
-
baseContrastSubtle: "#fafdfb",
|
|
458
|
-
baseContrastDefault: "#ffffff"
|
|
459
|
-
},
|
|
460
|
-
danger: {
|
|
461
|
-
backgroundDefault: "#2a100e",
|
|
462
|
-
backgroundTinted: "#371512",
|
|
463
|
-
surfaceDefault: "#451b17",
|
|
464
|
-
surfaceTinted: "#4f1f1b",
|
|
465
|
-
surfaceHover: "#5c241f",
|
|
466
|
-
surfaceActive: "#722d27",
|
|
467
|
-
borderSubtle: "#88352e",
|
|
468
|
-
borderDefault: "#bc6b64",
|
|
469
|
-
borderStrong: "#d19a96",
|
|
470
|
-
textSubtle: "#d19a96",
|
|
471
|
-
textDefault: "#f5eae9",
|
|
472
|
-
baseDefault: "#d76e6e",
|
|
473
|
-
baseHover: "#df8b8b",
|
|
474
|
-
baseActive: "#e7a8a8",
|
|
475
|
-
baseContrastSubtle: "#271414",
|
|
476
|
-
baseContrastDefault: "#000000"
|
|
477
|
-
},
|
|
478
|
-
info: {
|
|
442
|
+
lyng: {
|
|
479
443
|
backgroundDefault: "#ffffff",
|
|
480
|
-
backgroundTinted: "#
|
|
444
|
+
backgroundTinted: "#F8ECF3",
|
|
481
445
|
surfaceDefault: "#ffffff",
|
|
482
|
-
surfaceTinted: "#
|
|
483
|
-
surfaceHover: "#
|
|
484
|
-
surfaceActive: "#
|
|
485
|
-
borderSubtle: "#
|
|
486
|
-
borderDefault: "#
|
|
487
|
-
borderStrong: "#
|
|
488
|
-
textSubtle: "#
|
|
489
|
-
textDefault: "#
|
|
490
|
-
baseDefault: "#
|
|
491
|
-
baseHover: "#
|
|
492
|
-
baseActive: "#
|
|
493
|
-
baseContrastSubtle: "#
|
|
494
|
-
baseContrastDefault: "#ffffff"
|
|
495
|
-
},
|
|
496
|
-
warning: {
|
|
497
|
-
backgroundDefault: "#1e160d",
|
|
498
|
-
backgroundTinted: "#281e11",
|
|
499
|
-
surfaceDefault: "#322616",
|
|
500
|
-
surfaceTinted: "#3a2b19",
|
|
501
|
-
surfaceHover: "#43321d",
|
|
502
|
-
surfaceActive: "#543f24",
|
|
503
|
-
borderSubtle: "#654b2b",
|
|
504
|
-
borderDefault: "#a37a46",
|
|
505
|
-
borderStrong: "#d39e5b",
|
|
506
|
-
textSubtle: "#d39e5b",
|
|
507
|
-
textDefault: "#f7ebdb",
|
|
508
|
-
baseDefault: "#60400b",
|
|
509
|
-
baseHover: "#7a510e",
|
|
510
|
-
baseActive: "#946211",
|
|
511
|
-
baseContrastSubtle: "#e6e2d9",
|
|
446
|
+
surfaceTinted: "#F0D9E8",
|
|
447
|
+
surfaceHover: "#E9C6DC",
|
|
448
|
+
surfaceActive: "#E2B3D0",
|
|
449
|
+
borderSubtle: "#DAA0C4",
|
|
450
|
+
borderDefault: "#B6428A",
|
|
451
|
+
borderStrong: "#69004C",
|
|
452
|
+
textSubtle: "#B6428A",
|
|
453
|
+
textDefault: "#69004C",
|
|
454
|
+
baseDefault: "#B6428A",
|
|
455
|
+
baseHover: "#69004C",
|
|
456
|
+
baseActive: "#380029",
|
|
457
|
+
baseContrastSubtle: "#F8ECF3",
|
|
512
458
|
baseContrastDefault: "#ffffff"
|
|
513
459
|
},
|
|
514
460
|
hav: {
|
|
@@ -583,24 +529,6 @@ export const colors = {
|
|
|
583
529
|
baseContrastSubtle: "#FEFBE8",
|
|
584
530
|
baseContrastDefault: "#ffffff"
|
|
585
531
|
},
|
|
586
|
-
lyng: {
|
|
587
|
-
backgroundDefault: "#ffffff",
|
|
588
|
-
backgroundTinted: "#F8ECF3",
|
|
589
|
-
surfaceDefault: "#ffffff",
|
|
590
|
-
surfaceTinted: "#F0D9E8",
|
|
591
|
-
surfaceHover: "#E9C6DC",
|
|
592
|
-
surfaceActive: "#E2B3D0",
|
|
593
|
-
borderSubtle: "#DAA0C4",
|
|
594
|
-
borderDefault: "#B6428A",
|
|
595
|
-
borderStrong: "#69004C",
|
|
596
|
-
textSubtle: "#B6428A",
|
|
597
|
-
textDefault: "#69004C",
|
|
598
|
-
baseDefault: "#B6428A",
|
|
599
|
-
baseHover: "#69004C",
|
|
600
|
-
baseActive: "#380029",
|
|
601
|
-
baseContrastSubtle: "#F8ECF3",
|
|
602
|
-
baseContrastDefault: "#ffffff"
|
|
603
|
-
},
|
|
604
532
|
himmel: {
|
|
605
533
|
backgroundDefault: "#ffffff",
|
|
606
534
|
backgroundTinted: "#F6FCFF",
|
|
@@ -691,6 +619,78 @@ export const colors = {
|
|
|
691
619
|
baseContrastSubtle: "#EBF6EF",
|
|
692
620
|
baseContrastDefault: "#ffffff"
|
|
693
621
|
},
|
|
622
|
+
success: {
|
|
623
|
+
backgroundDefault: "#0d1b0d",
|
|
624
|
+
backgroundTinted: "#112411",
|
|
625
|
+
surfaceDefault: "#152d15",
|
|
626
|
+
surfaceTinted: "#183418",
|
|
627
|
+
surfaceHover: "#1c3c1c",
|
|
628
|
+
surfaceActive: "#244c24",
|
|
629
|
+
borderSubtle: "#2b5a2b",
|
|
630
|
+
borderDefault: "#528f52",
|
|
631
|
+
borderStrong: "#89b289",
|
|
632
|
+
textSubtle: "#89b289",
|
|
633
|
+
textDefault: "#e6efe6",
|
|
634
|
+
baseDefault: "#138d24",
|
|
635
|
+
baseHover: "#3ca14b",
|
|
636
|
+
baseActive: "#66b571",
|
|
637
|
+
baseContrastSubtle: "#010501",
|
|
638
|
+
baseContrastDefault: "#000000"
|
|
639
|
+
},
|
|
640
|
+
danger: {
|
|
641
|
+
backgroundDefault: "#2a100e",
|
|
642
|
+
backgroundTinted: "#371512",
|
|
643
|
+
surfaceDefault: "#451b17",
|
|
644
|
+
surfaceTinted: "#4f1f1b",
|
|
645
|
+
surfaceHover: "#5c241f",
|
|
646
|
+
surfaceActive: "#722d27",
|
|
647
|
+
borderSubtle: "#88352e",
|
|
648
|
+
borderDefault: "#bc6b64",
|
|
649
|
+
borderStrong: "#d19a96",
|
|
650
|
+
textSubtle: "#d19a96",
|
|
651
|
+
textDefault: "#f5eae9",
|
|
652
|
+
baseDefault: "#d76e6e",
|
|
653
|
+
baseHover: "#df8b8b",
|
|
654
|
+
baseActive: "#e7a8a8",
|
|
655
|
+
baseContrastSubtle: "#271414",
|
|
656
|
+
baseContrastDefault: "#000000"
|
|
657
|
+
},
|
|
658
|
+
info: {
|
|
659
|
+
backgroundDefault: "#0d1925",
|
|
660
|
+
backgroundTinted: "#112130",
|
|
661
|
+
surfaceDefault: "#15293d",
|
|
662
|
+
surfaceTinted: "#182f46",
|
|
663
|
+
surfaceHover: "#1c3751",
|
|
664
|
+
surfaceActive: "#234566",
|
|
665
|
+
borderSubtle: "#2a537a",
|
|
666
|
+
borderDefault: "#5585b4",
|
|
667
|
+
borderStrong: "#8aabcb",
|
|
668
|
+
textSubtle: "#8aabcb",
|
|
669
|
+
textDefault: "#e6edf4",
|
|
670
|
+
baseDefault: "#2d85c9",
|
|
671
|
+
baseHover: "#519ad2",
|
|
672
|
+
baseActive: "#77b0dc",
|
|
673
|
+
baseContrastSubtle: "#eff6fb",
|
|
674
|
+
baseContrastDefault: "#000000"
|
|
675
|
+
},
|
|
676
|
+
warning: {
|
|
677
|
+
backgroundDefault: "#1e160d",
|
|
678
|
+
backgroundTinted: "#281e11",
|
|
679
|
+
surfaceDefault: "#322616",
|
|
680
|
+
surfaceTinted: "#3a2b19",
|
|
681
|
+
surfaceHover: "#43321d",
|
|
682
|
+
surfaceActive: "#543f24",
|
|
683
|
+
borderSubtle: "#654b2b",
|
|
684
|
+
borderDefault: "#a37a46",
|
|
685
|
+
borderStrong: "#d39e5b",
|
|
686
|
+
textSubtle: "#d39e5b",
|
|
687
|
+
textDefault: "#f7ebdb",
|
|
688
|
+
baseDefault: "#60400b",
|
|
689
|
+
baseHover: "#7a510e",
|
|
690
|
+
baseActive: "#946211",
|
|
691
|
+
baseContrastSubtle: "#e6e2d9",
|
|
692
|
+
baseContrastDefault: "#ffffff"
|
|
693
|
+
},
|
|
694
694
|
focus: {
|
|
695
695
|
inner: "#13181f",
|
|
696
696
|
outer: "#a7a9ca"
|
|
@@ -699,6 +699,6 @@ export const colors = {
|
|
|
699
699
|
};
|
|
700
700
|
|
|
701
701
|
export const styrbordSemanticColors = ["primary", "accent", "neutral", "extra1", "extra2", "success", "danger", "info", "warning", "focus"];
|
|
702
|
-
export const styrbordPaletteColors = ["hav", "stein", "gress", "sol", "
|
|
702
|
+
export const styrbordPaletteColors = ["lyng", "hav", "stein", "gress", "sol", "himmel", "sand", "fyr", "dyphav", "skog"];
|
|
703
703
|
export const styrbordColorVariants = ["background", "surface", "border", "text", "base", "baseContrast", "inner", "outer"];
|
|
704
704
|
export const styrbordColorModifiers = ["default", "tinted", "hover", "active", "subtle", "strong"];
|
package/dist/colors.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* This file is deprecated and will be removed in a future release. Use types.d.ts instead */
|
|
2
|
-
/* build: v1.
|
|
2
|
+
/* build: v1.21.1 */
|
|
3
3
|
import type {} from '@digdir/designsystemet-types';
|
|
4
4
|
|
|
5
5
|
// Augment types based on theme
|
|
@@ -10,6 +10,16 @@ declare module '@digdir/designsystemet-types' {
|
|
|
10
10
|
extra1: never;
|
|
11
11
|
extra2: never;
|
|
12
12
|
neutral: never;
|
|
13
|
+
hav: never;
|
|
14
|
+
stein: never;
|
|
15
|
+
gress: never;
|
|
16
|
+
sol: never;
|
|
17
|
+
lyng: never;
|
|
18
|
+
himmel: never;
|
|
19
|
+
sand: never;
|
|
20
|
+
fyr: never;
|
|
21
|
+
dyphav: never;
|
|
22
|
+
skog: never;
|
|
13
23
|
}
|
|
14
24
|
export interface SeverityColorDefinitions {
|
|
15
25
|
info: never;
|