@openkfw/design-tokens 0.5.6 → 0.5.8
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/demo/dist/css/style.min.css +1 -1
- package/demo/src/style.css +141 -62
- package/output/css/kfw-design-tokens.light.css +31 -30
- package/output/figma/kfw-design-tokens.light.json +13 -9
- package/output/js/{kfw-design-tokens.light.d.ts → kfw-design-tokens.d.ts} +23 -4
- package/output/js/kfw-design-tokens.light.js +69 -68
- package/output/json/{kfw-design-tokens.light.json → kfw-design-tokens.json} +147 -668
- package/output/penpot/kfw-design-tokens.light.json +13 -9
- package/output/scss/kfw-design-tokens.light.scss +29 -28
- package/output/web_thirdparty_16px/css/kfw-design-tokens.light.css +31 -30
- package/output/web_thirdparty_16px/js/kfw-design-tokens.light.js +69 -68
- package/output/web_thirdparty_16px/scss/kfw-design-tokens.light.scss +29 -28
- package/package.json +9 -8
- package/tokens/gen-tokens.dark.json5 +39 -17
- package/tokens/tokens.json +29 -28
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* KfW Design Tokens v0.5.
|
|
2
|
+
* KfW Design Tokens v0.5.8 | MPL-2.0 | https://github.com/openkfw/design-tokens
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
:root, :host
|
|
5
|
+
[data-theme=light], :root:not([data-theme=dark]), :host(:not([data-theme=dark])) { color-scheme: light; }
|
|
6
6
|
|
|
7
|
-
:root, :host
|
|
7
|
+
[data-theme=light], :root:not([data-theme=dark]), :host(:not([data-theme=dark])) {
|
|
8
8
|
--kfw-base-color-blue-100: #e9f5fb;
|
|
9
9
|
--kfw-base-color-blue-400: #54b3e2;
|
|
10
10
|
--kfw-base-color-blue-500: #007abc;
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
--kfw-base-color-green-700: #398357;
|
|
18
18
|
--kfw-base-color-white-90: #ffffffe6;
|
|
19
19
|
--kfw-base-color-white-95: #fffffff2;
|
|
20
|
-
--kfw-base-color-white: #
|
|
21
|
-
--kfw-base-color-black: #
|
|
20
|
+
--kfw-base-color-white: #fff;
|
|
21
|
+
--kfw-base-color-black: #000;
|
|
22
22
|
--kfw-base-color-gray-50: #f6f7f8;
|
|
23
23
|
--kfw-base-color-gray-100: #eef0f2;
|
|
24
24
|
--kfw-base-color-gray-200: #d8dfe3;
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
--kfw-base-color-gray-500-90: #41484ce6;
|
|
30
30
|
--kfw-base-color-gray-500: #41484c;
|
|
31
31
|
--kfw-base-color-gray-600: #2d3134;
|
|
32
|
-
--kfw-base-color-violet-400: #
|
|
33
|
-
--kfw-base-color-violet-500: #
|
|
32
|
+
--kfw-base-color-violet-400: #a455c5;
|
|
33
|
+
--kfw-base-color-violet-500: #643179;
|
|
34
34
|
--kfw-base-color-red-400: #c80538;
|
|
35
35
|
--kfw-base-color-yellow-500: #eac80b;
|
|
36
36
|
--kfw-base-fontfamily-sans: "KfW Centro Sans", Arial, "Helvetica Neue", Helvetica, sans-serif;
|
|
@@ -155,30 +155,30 @@
|
|
|
155
155
|
--kfw-base-layout-gridgap-fluid-min: 1.2rem;
|
|
156
156
|
--kfw-base-layout-gridgap-fluid-max: 3.6rem;
|
|
157
157
|
--kfw-base-layout-gridgap-fluid-val: 3.529vi - 0.9176rem;
|
|
158
|
-
--kfw-color-fn: #005a8c; /** Main interaction color for buttons and links */
|
|
159
|
-
--kfw-color-fn-active: #00446e;
|
|
160
|
-
--kfw-color-fn-inactive: #a1adb5;
|
|
161
|
-
--kfw-color-fn-border: #2d3134;
|
|
162
|
-
--kfw-color-fn-label: #2d3134;
|
|
163
|
-
--kfw-color-text: #2d3134; /** Main text color for body */
|
|
164
|
-
--kfw-color-text-on-dark-bg: #
|
|
165
|
-
--kfw-color-text-on-disabled: #
|
|
166
|
-
--kfw-color-text-headline-on-dark-bg: #b7f9aa;
|
|
167
|
-
--kfw-color-background: #
|
|
168
|
-
--kfw-color-background-subtle: #f6f7f8;
|
|
169
|
-
--kfw-color-background-disabled: #a1adb5;
|
|
170
|
-
--kfw-color-background-light-blue: #e9f5fb;
|
|
171
|
-
--kfw-color-background-light-green: #ecfded;
|
|
172
|
-
--kfw-color-background-dark-blue: #00375b;
|
|
173
|
-
--kfw-color-background-dark-green: #398357;
|
|
174
|
-
--kfw-color-opaque-white-90: #ffffffe6;
|
|
175
|
-
--kfw-color-opaque-white-95: #fffffff2;
|
|
176
|
-
--kfw-color-opaque-gray-500-10: #41484c1a;
|
|
177
|
-
--kfw-color-opaque-gray-500-30: #41484c4d;
|
|
178
|
-
--kfw-color-opaque-gray-500-90: #41484ce6;
|
|
158
|
+
--kfw-color-fn: #005a8c; /** Main interaction color for buttons and links (Blue 600) */
|
|
159
|
+
--kfw-color-fn-active: #00446e; /** Interaction color when active (e.g., hover, Blue 700) */
|
|
160
|
+
--kfw-color-fn-inactive: #a1adb5; /** Interaction color when inactive (Gray 300) */
|
|
161
|
+
--kfw-color-fn-border: #2d3134; /** Interaction border color (Gray 600) */
|
|
162
|
+
--kfw-color-fn-label: #2d3134; /** Interaction label color (Gray 600) */
|
|
163
|
+
--kfw-color-text: #2d3134; /** Main text color for body (Gray 600) */
|
|
164
|
+
--kfw-color-text-on-dark-bg: #fff; /** Main text color on dark background (White) */
|
|
165
|
+
--kfw-color-text-on-disabled: #fff; /** Main text color on disabled (White) */
|
|
166
|
+
--kfw-color-text-headline-on-dark-bg: #b7f9aa; /** Headline text color on dark background (Green 300) */
|
|
167
|
+
--kfw-color-background: #fff; /** Main background color for body (White) */
|
|
168
|
+
--kfw-color-background-subtle: #f6f7f8; /** Neutral (Gray 50) */
|
|
169
|
+
--kfw-color-background-disabled: #a1adb5; /** Disabled (Gray 300) */
|
|
170
|
+
--kfw-color-background-light-blue: #e9f5fb; /** Light blue (Blue 100) */
|
|
171
|
+
--kfw-color-background-light-green: #ecfded; /** Light green (Green 100) */
|
|
172
|
+
--kfw-color-background-dark-blue: #00375b; /** Dark blue (Blue 800) */
|
|
173
|
+
--kfw-color-background-dark-green: #398357; /** Dark green (Green 700) */
|
|
174
|
+
--kfw-color-opaque-white-90: #ffffffe6; /** White 90% */
|
|
175
|
+
--kfw-color-opaque-white-95: #fffffff2; /** White 95% */
|
|
176
|
+
--kfw-color-opaque-gray-500-10: #41484c1a; /** Gray 500 10% */
|
|
177
|
+
--kfw-color-opaque-gray-500-30: #41484c4d; /** Gray 500 30% */
|
|
178
|
+
--kfw-color-opaque-gray-500-90: #41484ce6; /** Gray 500 90% */
|
|
179
179
|
--kfw-color-state-danger: #c80538;
|
|
180
180
|
--kfw-color-state-success: #398357;
|
|
181
|
-
--kfw-color-state-warning: #
|
|
181
|
+
--kfw-color-state-warning: #a455c5;
|
|
182
182
|
--kfw-color-status-red: #c80538;
|
|
183
183
|
--kfw-color-status-yellow: #eac80b;
|
|
184
184
|
--kfw-color-status-green: #398357;
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
--kfw-color-product-container: #f6f7f8;
|
|
193
193
|
--kfw-color-product-benefit: #007abc;
|
|
194
194
|
--kfw-color-product-credit: #398357;
|
|
195
|
-
--kfw-color-product-cooperation: #
|
|
195
|
+
--kfw-color-product-cooperation: #643179;
|
|
196
196
|
--kfw-color-product-credit-benefit: #41484c;
|
|
197
197
|
--kfw-color-icon: #005a8c;
|
|
198
198
|
--kfw-color-icon-secondary: #54b3e2;
|
|
@@ -248,6 +248,7 @@
|
|
|
248
248
|
--kfw-borderradius-circle: 999.9rem;
|
|
249
249
|
--kfw-borderwidth: 1px;
|
|
250
250
|
--kfw-borderwidth-large: 2px;
|
|
251
|
+
--kfw-borderstyle: solid;
|
|
251
252
|
--kfw-focusring-outline-width: 2px;
|
|
252
253
|
--kfw-focusring-outline-offset: 2px;
|
|
253
254
|
--kfw-focusring-outline-style: dashed;
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
"$type": "color"
|
|
56
56
|
},
|
|
57
57
|
"Default": {
|
|
58
|
-
"$value": "#
|
|
58
|
+
"$value": "#fff",
|
|
59
59
|
"$type": "color"
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"Black": {
|
|
63
|
-
"$value": "#
|
|
63
|
+
"$value": "#000",
|
|
64
64
|
"$type": "color"
|
|
65
65
|
},
|
|
66
66
|
"Gray": {
|
|
@@ -109,11 +109,11 @@
|
|
|
109
109
|
},
|
|
110
110
|
"Violet": {
|
|
111
111
|
"400": {
|
|
112
|
-
"$value": "#
|
|
112
|
+
"$value": "#a455c5",
|
|
113
113
|
"$type": "color"
|
|
114
114
|
},
|
|
115
115
|
"500": {
|
|
116
|
-
"$value": "#
|
|
116
|
+
"$value": "#643179",
|
|
117
117
|
"$type": "color"
|
|
118
118
|
}
|
|
119
119
|
},
|
|
@@ -337,11 +337,11 @@
|
|
|
337
337
|
"$type": "color"
|
|
338
338
|
},
|
|
339
339
|
"On-dark-bg": {
|
|
340
|
-
"$value": "#
|
|
340
|
+
"$value": "#fff",
|
|
341
341
|
"$type": "color"
|
|
342
342
|
},
|
|
343
343
|
"On-disabled": {
|
|
344
|
-
"$value": "#
|
|
344
|
+
"$value": "#fff",
|
|
345
345
|
"$type": "color"
|
|
346
346
|
},
|
|
347
347
|
"Headline-on-dark-bg": {
|
|
@@ -351,7 +351,7 @@
|
|
|
351
351
|
},
|
|
352
352
|
"Background": {
|
|
353
353
|
"Default": {
|
|
354
|
-
"$value": "#
|
|
354
|
+
"$value": "#fff",
|
|
355
355
|
"$type": "color"
|
|
356
356
|
},
|
|
357
357
|
"Subtle": {
|
|
@@ -411,7 +411,7 @@
|
|
|
411
411
|
"$type": "color"
|
|
412
412
|
},
|
|
413
413
|
"Warning": {
|
|
414
|
-
"$value": "#
|
|
414
|
+
"$value": "#a455c5",
|
|
415
415
|
"$type": "color"
|
|
416
416
|
}
|
|
417
417
|
},
|
|
@@ -473,7 +473,7 @@
|
|
|
473
473
|
"$type": "color"
|
|
474
474
|
},
|
|
475
475
|
"Cooperation": {
|
|
476
|
-
"$value": "#
|
|
476
|
+
"$value": "#643179",
|
|
477
477
|
"$type": "color"
|
|
478
478
|
},
|
|
479
479
|
"Credit-benefit": {
|
|
@@ -702,6 +702,10 @@
|
|
|
702
702
|
"$type": "borderWidth"
|
|
703
703
|
}
|
|
704
704
|
},
|
|
705
|
+
"Borderstyle": {
|
|
706
|
+
"$value": "solid",
|
|
707
|
+
"$type": "strokeStyle"
|
|
708
|
+
},
|
|
705
709
|
"Fontweight": {
|
|
706
710
|
"Default": {
|
|
707
711
|
"$value": 400,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* KfW Design Tokens v0.5.
|
|
2
|
+
* KfW Design Tokens v0.5.8 | MPL-2.0 | https://github.com/openkfw/design-tokens
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
export const KfwBaseColorBlue100: {
|
|
@@ -269,113 +269,131 @@ export const KfwBaseLayoutGridgapStaticXl: string;
|
|
|
269
269
|
export const KfwBaseLayoutGridgapFluidMin: string;
|
|
270
270
|
export const KfwBaseLayoutGridgapFluidMax: string;
|
|
271
271
|
export const KfwBaseLayoutGridgapFluidVal: string;
|
|
272
|
-
/** Main interaction color for buttons and links */
|
|
272
|
+
/** Main interaction color for buttons and links (Blue 600) */
|
|
273
273
|
export const KfwColorFn: {
|
|
274
274
|
colorSpace: string;
|
|
275
275
|
components: number[];
|
|
276
276
|
hex: string;
|
|
277
277
|
};
|
|
278
|
+
/** Interaction color when active (e.g., hover, Blue 700) */
|
|
278
279
|
export const KfwColorFnActive: {
|
|
279
280
|
colorSpace: string;
|
|
280
281
|
components: number[];
|
|
281
282
|
hex: string;
|
|
282
283
|
};
|
|
284
|
+
/** Interaction color when inactive (Gray 300) */
|
|
283
285
|
export const KfwColorFnInactive: {
|
|
284
286
|
colorSpace: string;
|
|
285
287
|
components: number[];
|
|
286
288
|
hex: string;
|
|
287
289
|
};
|
|
290
|
+
/** Interaction border color (Gray 600) */
|
|
288
291
|
export const KfwColorFnBorder: {
|
|
289
292
|
colorSpace: string;
|
|
290
293
|
components: number[];
|
|
291
294
|
hex: string;
|
|
292
295
|
};
|
|
296
|
+
/** Interaction label color (Gray 600) */
|
|
293
297
|
export const KfwColorFnLabel: {
|
|
294
298
|
colorSpace: string;
|
|
295
299
|
components: number[];
|
|
296
300
|
hex: string;
|
|
297
301
|
};
|
|
298
|
-
/** Main text color for body */
|
|
302
|
+
/** Main text color for body (Gray 600) */
|
|
299
303
|
export const KfwColorText: {
|
|
300
304
|
colorSpace: string;
|
|
301
305
|
components: number[];
|
|
302
306
|
hex: string;
|
|
303
307
|
};
|
|
308
|
+
/** Main text color on dark background (White) */
|
|
304
309
|
export const KfwColorTextOnDarkBg: {
|
|
305
310
|
colorSpace: string;
|
|
306
311
|
components: number[];
|
|
307
312
|
hex: string;
|
|
308
313
|
};
|
|
314
|
+
/** Main text color on disabled (White) */
|
|
309
315
|
export const KfwColorTextOnDisabled: {
|
|
310
316
|
colorSpace: string;
|
|
311
317
|
components: number[];
|
|
312
318
|
hex: string;
|
|
313
319
|
};
|
|
320
|
+
/** Headline text color on dark background (Green 300) */
|
|
314
321
|
export const KfwColorTextHeadlineOnDarkBg: {
|
|
315
322
|
colorSpace: string;
|
|
316
323
|
components: number[];
|
|
317
324
|
hex: string;
|
|
318
325
|
};
|
|
319
|
-
/** Main background color for body */
|
|
326
|
+
/** Main background color for body (White) */
|
|
320
327
|
export const KfwColorBackground: {
|
|
321
328
|
colorSpace: string;
|
|
322
329
|
components: number[];
|
|
323
330
|
hex: string;
|
|
324
331
|
};
|
|
332
|
+
/** Neutral (Gray 50) */
|
|
325
333
|
export const KfwColorBackgroundSubtle: {
|
|
326
334
|
colorSpace: string;
|
|
327
335
|
components: number[];
|
|
328
336
|
hex: string;
|
|
329
337
|
};
|
|
338
|
+
/** Disabled (Gray 300) */
|
|
330
339
|
export const KfwColorBackgroundDisabled: {
|
|
331
340
|
colorSpace: string;
|
|
332
341
|
components: number[];
|
|
333
342
|
hex: string;
|
|
334
343
|
};
|
|
344
|
+
/** Light blue (Blue 100) */
|
|
335
345
|
export const KfwColorBackgroundLightBlue: {
|
|
336
346
|
colorSpace: string;
|
|
337
347
|
components: number[];
|
|
338
348
|
hex: string;
|
|
339
349
|
};
|
|
350
|
+
/** Light green (Green 100) */
|
|
340
351
|
export const KfwColorBackgroundLightGreen: {
|
|
341
352
|
colorSpace: string;
|
|
342
353
|
components: number[];
|
|
343
354
|
hex: string;
|
|
344
355
|
};
|
|
356
|
+
/** Dark blue (Blue 800) */
|
|
345
357
|
export const KfwColorBackgroundDarkBlue: {
|
|
346
358
|
colorSpace: string;
|
|
347
359
|
components: number[];
|
|
348
360
|
hex: string;
|
|
349
361
|
};
|
|
362
|
+
/** Dark green (Green 700) */
|
|
350
363
|
export const KfwColorBackgroundDarkGreen: {
|
|
351
364
|
colorSpace: string;
|
|
352
365
|
components: number[];
|
|
353
366
|
hex: string;
|
|
354
367
|
};
|
|
368
|
+
/** White 90% */
|
|
355
369
|
export const KfwColorOpaqueWhite90: {
|
|
356
370
|
colorSpace: string;
|
|
357
371
|
components: number[];
|
|
358
372
|
hex: string;
|
|
359
373
|
alpha: number;
|
|
360
374
|
};
|
|
375
|
+
/** White 95% */
|
|
361
376
|
export const KfwColorOpaqueWhite95: {
|
|
362
377
|
colorSpace: string;
|
|
363
378
|
components: number[];
|
|
364
379
|
hex: string;
|
|
365
380
|
alpha: number;
|
|
366
381
|
};
|
|
382
|
+
/** Gray 500 10% */
|
|
367
383
|
export const KfwColorOpaqueGray50010: {
|
|
368
384
|
colorSpace: string;
|
|
369
385
|
components: number[];
|
|
370
386
|
hex: string;
|
|
371
387
|
alpha: number;
|
|
372
388
|
};
|
|
389
|
+
/** Gray 500 30% */
|
|
373
390
|
export const KfwColorOpaqueGray50030: {
|
|
374
391
|
colorSpace: string;
|
|
375
392
|
components: number[];
|
|
376
393
|
hex: string;
|
|
377
394
|
alpha: number;
|
|
378
395
|
};
|
|
396
|
+
/** Gray 500 90% */
|
|
379
397
|
export const KfwColorOpaqueGray50090: {
|
|
380
398
|
colorSpace: string;
|
|
381
399
|
components: number[];
|
|
@@ -542,6 +560,7 @@ export const KfwBorderradiusSmall: string;
|
|
|
542
560
|
export const KfwBorderradiusCircle: string;
|
|
543
561
|
export const KfwBorderwidth: string;
|
|
544
562
|
export const KfwBorderwidthLarge: string;
|
|
563
|
+
export const KfwBorderstyle: string;
|
|
545
564
|
export const KfwFocusringOutlineWidth: string;
|
|
546
565
|
export const KfwFocusringOutlineOffset: string;
|
|
547
566
|
export const KfwFocusringOutlineStyle: string;
|