@openkfw/design-tokens 0.5.7 → 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 +46 -17
- package/output/css/kfw-design-tokens.light.css +8 -8
- package/output/figma/kfw-design-tokens.light.json +5 -5
- package/output/js/kfw-design-tokens.d.ts +1 -1
- package/output/js/kfw-design-tokens.light.js +39 -39
- package/output/json/kfw-design-tokens.json +76 -654
- package/output/penpot/kfw-design-tokens.light.json +5 -5
- package/output/scss/kfw-design-tokens.light.scss +6 -6
- package/output/web_thirdparty_16px/css/kfw-design-tokens.light.css +8 -8
- package/output/web_thirdparty_16px/js/kfw-design-tokens.light.js +39 -39
- package/output/web_thirdparty_16px/scss/kfw-design-tokens.light.scss +6 -6
- package/package.json +8 -7
- package/tokens/gen-tokens.dark.json5 +5 -5
- package/tokens/tokens.json +5 -5
|
@@ -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": {
|
|
@@ -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": {
|
|
@@ -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
|
$kfw-base-color-blue-100: #e9f5fb;
|
|
5
5
|
$kfw-base-color-blue-400: #54b3e2;
|
|
@@ -13,8 +13,8 @@ $kfw-base-color-green-400: #94eb90;
|
|
|
13
13
|
$kfw-base-color-green-700: #398357;
|
|
14
14
|
$kfw-base-color-white-90: #ffffffe6;
|
|
15
15
|
$kfw-base-color-white-95: #fffffff2;
|
|
16
|
-
$kfw-base-color-white: #
|
|
17
|
-
$kfw-base-color-black: #
|
|
16
|
+
$kfw-base-color-white: #fff;
|
|
17
|
+
$kfw-base-color-black: #000;
|
|
18
18
|
$kfw-base-color-gray-50: #f6f7f8;
|
|
19
19
|
$kfw-base-color-gray-100: #eef0f2;
|
|
20
20
|
$kfw-base-color-gray-200: #d8dfe3;
|
|
@@ -157,10 +157,10 @@ $kfw-color-fn-inactive: #a1adb5; // Interaction color when inactive (Gray 300)
|
|
|
157
157
|
$kfw-color-fn-border: #2d3134; // Interaction border color (Gray 600)
|
|
158
158
|
$kfw-color-fn-label: #2d3134; // Interaction label color (Gray 600)
|
|
159
159
|
$kfw-color-text: #2d3134; // Main text color for body (Gray 600)
|
|
160
|
-
$kfw-color-text-on-dark-bg: #
|
|
161
|
-
$kfw-color-text-on-disabled: #
|
|
160
|
+
$kfw-color-text-on-dark-bg: #fff; // Main text color on dark background (White)
|
|
161
|
+
$kfw-color-text-on-disabled: #fff; // Main text color on disabled (White)
|
|
162
162
|
$kfw-color-text-headline-on-dark-bg: #b7f9aa; // Headline text color on dark background (Green 300)
|
|
163
|
-
$kfw-color-background: #
|
|
163
|
+
$kfw-color-background: #fff; // Main background color for body (White)
|
|
164
164
|
$kfw-color-background-subtle: #f6f7f8; // Neutral (Gray 50)
|
|
165
165
|
$kfw-color-background-disabled: #a1adb5; // Disabled (Gray 300)
|
|
166
166
|
$kfw-color-background-light-blue: #e9f5fb; // Light blue (Blue 100)
|
|
@@ -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;
|
|
@@ -161,10 +161,10 @@
|
|
|
161
161
|
--kfw-color-fn-border: #2d3134; /** Interaction border color (Gray 600) */
|
|
162
162
|
--kfw-color-fn-label: #2d3134; /** Interaction label color (Gray 600) */
|
|
163
163
|
--kfw-color-text: #2d3134; /** Main text color for body (Gray 600) */
|
|
164
|
-
--kfw-color-text-on-dark-bg: #
|
|
165
|
-
--kfw-color-text-on-disabled: #
|
|
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
166
|
--kfw-color-text-headline-on-dark-bg: #b7f9aa; /** Headline text color on dark background (Green 300) */
|
|
167
|
-
--kfw-color-background: #
|
|
167
|
+
--kfw-color-background: #fff; /** Main background color for body (White) */
|
|
168
168
|
--kfw-color-background-subtle: #f6f7f8; /** Neutral (Gray 50) */
|
|
169
169
|
--kfw-color-background-disabled: #a1adb5; /** Disabled (Gray 300) */
|
|
170
170
|
--kfw-color-background-light-blue: #e9f5fb; /** Light blue (Blue 100) */
|
|
@@ -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 = {
|
|
@@ -101,25 +101,25 @@ export const KfwBaseColorGray400 = {
|
|
|
101
101
|
};
|
|
102
102
|
export const KfwBaseColorGray50010 = {
|
|
103
103
|
colorSpace: "srgb",
|
|
104
|
-
components: [0.2549, 0.
|
|
104
|
+
components: [0.2549, 0.2824, 0.298],
|
|
105
105
|
hex: "#41484c",
|
|
106
106
|
alpha: 0.1,
|
|
107
107
|
};
|
|
108
108
|
export const KfwBaseColorGray50030 = {
|
|
109
109
|
colorSpace: "srgb",
|
|
110
|
-
components: [0.2549, 0.
|
|
110
|
+
components: [0.2549, 0.2824, 0.298],
|
|
111
111
|
hex: "#41484c",
|
|
112
112
|
alpha: 0.3,
|
|
113
113
|
};
|
|
114
114
|
export const KfwBaseColorGray50090 = {
|
|
115
115
|
colorSpace: "srgb",
|
|
116
|
-
components: [0.2549, 0.
|
|
116
|
+
components: [0.2549, 0.2824, 0.298],
|
|
117
117
|
hex: "#41484c",
|
|
118
118
|
alpha: 0.9,
|
|
119
119
|
};
|
|
120
120
|
export const KfwBaseColorGray500 = {
|
|
121
121
|
colorSpace: "srgb",
|
|
122
|
-
components: [0.2549, 0.
|
|
122
|
+
components: [0.2549, 0.2824, 0.298],
|
|
123
123
|
hex: "#41484c",
|
|
124
124
|
};
|
|
125
125
|
export const KfwBaseColorGray600 = {
|
|
@@ -139,7 +139,7 @@ export const KfwBaseColorViolet500 = {
|
|
|
139
139
|
};
|
|
140
140
|
export const KfwBaseColorRed400 = {
|
|
141
141
|
colorSpace: "srgb",
|
|
142
|
-
components: [0.7843, 0.0196, 0.
|
|
142
|
+
components: [0.7843, 0.0196, 0.2196],
|
|
143
143
|
hex: "#c80538",
|
|
144
144
|
};
|
|
145
145
|
export const KfwBaseColorYellow500 = {
|
|
@@ -163,31 +163,31 @@ export const KfwBaseSpaceStatic50 = "3.125rem";
|
|
|
163
163
|
export const KfwBaseSpaceStatic60 = "3.75rem";
|
|
164
164
|
export const KfwBaseSpaceFluid5Min = "0.3125rem";
|
|
165
165
|
export const KfwBaseSpaceFluid5Max = "0.625rem";
|
|
166
|
-
export const KfwBaseSpaceFluid5Val = "0.588px";
|
|
166
|
+
export const KfwBaseSpaceFluid5Val = "0.735vi + 0.588px";
|
|
167
167
|
export const KfwBaseSpaceFluid10Min = "0.625rem";
|
|
168
168
|
export const KfwBaseSpaceFluid10Max = "0.9375rem";
|
|
169
|
-
export const KfwBaseSpaceFluid10Val = "0.34925rem";
|
|
169
|
+
export const KfwBaseSpaceFluid10Val = "0.735vi + 0.34925rem";
|
|
170
170
|
export const KfwBaseSpaceFluid15Min = "0.9375rem";
|
|
171
171
|
export const KfwBaseSpaceFluid15Max = "1.25rem";
|
|
172
|
-
export const KfwBaseSpaceFluid15Val = "0.66175rem";
|
|
172
|
+
export const KfwBaseSpaceFluid15Val = "0.735vi + 0.66175rem";
|
|
173
173
|
export const KfwBaseSpaceFluid20Min = "1.25rem";
|
|
174
174
|
export const KfwBaseSpaceFluid20Max = "1.5625rem";
|
|
175
|
-
export const KfwBaseSpaceFluid20Val = "0.97425rem";
|
|
175
|
+
export const KfwBaseSpaceFluid20Val = "0.735vi + 0.97425rem";
|
|
176
176
|
export const KfwBaseSpaceFluid25Min = "1.5625rem";
|
|
177
177
|
export const KfwBaseSpaceFluid25Max = "1.875rem";
|
|
178
|
-
export const KfwBaseSpaceFluid25Val = "1.28675rem";
|
|
178
|
+
export const KfwBaseSpaceFluid25Val = "0.735vi + 1.28675rem";
|
|
179
179
|
export const KfwBaseSpaceFluid30Min = "1.875rem";
|
|
180
180
|
export const KfwBaseSpaceFluid30Max = "2.1875rem";
|
|
181
|
-
export const KfwBaseSpaceFluid30Val = "1.59925rem";
|
|
181
|
+
export const KfwBaseSpaceFluid30Val = "0.735vi + 1.59925rem";
|
|
182
182
|
export const KfwBaseSpaceFluid35Min = "2.1875rem";
|
|
183
183
|
export const KfwBaseSpaceFluid35Max = "2.5rem";
|
|
184
|
-
export const KfwBaseSpaceFluid35Val = "1.91175rem";
|
|
184
|
+
export const KfwBaseSpaceFluid35Val = "0.735vi + 1.91175rem";
|
|
185
185
|
export const KfwBaseSpaceFluid40Min = "2.5rem";
|
|
186
186
|
export const KfwBaseSpaceFluid40Max = "3.125rem";
|
|
187
|
-
export const KfwBaseSpaceFluid40Val = "1.9485rem";
|
|
187
|
+
export const KfwBaseSpaceFluid40Val = "1.471vi + 1.9485rem";
|
|
188
188
|
export const KfwBaseSpaceFluid50Min = "3.125rem";
|
|
189
189
|
export const KfwBaseSpaceFluid50Max = "3.75rem";
|
|
190
|
-
export const KfwBaseSpaceFluid50Val = "2.5735rem";
|
|
190
|
+
export const KfwBaseSpaceFluid50Val = "1.471vi + 2.5735rem";
|
|
191
191
|
export const KfwBaseFontsizeStaticSm = "0.875rem";
|
|
192
192
|
export const KfwBaseFontsizeStaticMd = "1rem";
|
|
193
193
|
export const KfwBaseFontsizeStaticLg = "1.125rem";
|
|
@@ -201,31 +201,31 @@ export const KfwBaseFontsizeStatic7xl = "2rem";
|
|
|
201
201
|
export const KfwBaseFontsizeStatic8xl = "2.25rem";
|
|
202
202
|
export const KfwBaseFontsizeFluidSmMin = "0.875rem";
|
|
203
203
|
export const KfwBaseFontsizeFluidSmMax = "1rem";
|
|
204
|
-
export const KfwBaseFontsizeFluidSmVal = "0.7646875rem";
|
|
204
|
+
export const KfwBaseFontsizeFluidSmVal = "0.294vi + 0.7646875rem";
|
|
205
205
|
export const KfwBaseFontsizeFluidMdMin = "1rem";
|
|
206
206
|
export const KfwBaseFontsizeFluidMdMax = "1.125rem";
|
|
207
|
-
export const KfwBaseFontsizeFluidMdVal = "0.8896875rem";
|
|
207
|
+
export const KfwBaseFontsizeFluidMdVal = "0.294vi + 0.8896875rem";
|
|
208
208
|
export const KfwBaseFontsizeFluidLgMin = "1.125rem";
|
|
209
209
|
export const KfwBaseFontsizeFluidLgMax = "1.25rem";
|
|
210
|
-
export const KfwBaseFontsizeFluidLgVal = "1.0146875rem";
|
|
210
|
+
export const KfwBaseFontsizeFluidLgVal = "0.294vi + 1.0146875rem";
|
|
211
211
|
export const KfwBaseFontsizeFluidXlMin = "1.25rem";
|
|
212
212
|
export const KfwBaseFontsizeFluidXlMax = "1.375rem";
|
|
213
|
-
export const KfwBaseFontsizeFluidXlVal = "1.1396875rem";
|
|
213
|
+
export const KfwBaseFontsizeFluidXlVal = "0.294vi + 1.1396875rem";
|
|
214
214
|
export const KfwBaseFontsizeFluid2xlMin = "1.375rem";
|
|
215
215
|
export const KfwBaseFontsizeFluid2xlMax = "1.5rem";
|
|
216
|
-
export const KfwBaseFontsizeFluid2xlVal = "1.2646875rem";
|
|
216
|
+
export const KfwBaseFontsizeFluid2xlVal = "0.294vi + 1.2646875rem";
|
|
217
217
|
export const KfwBaseFontsizeFluid3xlMin = "1.5rem";
|
|
218
218
|
export const KfwBaseFontsizeFluid3xlMax = "1.625rem";
|
|
219
|
-
export const KfwBaseFontsizeFluid3xlVal = "1.3896875rem";
|
|
219
|
+
export const KfwBaseFontsizeFluid3xlVal = "0.294vi + 1.3896875rem";
|
|
220
220
|
export const KfwBaseFontsizeFluid4xlMin = "1.625rem";
|
|
221
221
|
export const KfwBaseFontsizeFluid4xlMax = "1.75rem";
|
|
222
|
-
export const KfwBaseFontsizeFluid4xlVal = "1.5146875rem";
|
|
222
|
+
export const KfwBaseFontsizeFluid4xlVal = "0.294vi + 1.5146875rem";
|
|
223
223
|
export const KfwBaseFontsizeFluid5xlMin = "1.75rem";
|
|
224
224
|
export const KfwBaseFontsizeFluid5xlMax = "2rem";
|
|
225
|
-
export const KfwBaseFontsizeFluid5xlVal = "1.5294375rem";
|
|
225
|
+
export const KfwBaseFontsizeFluid5xlVal = "0.588vi + 1.5294375rem";
|
|
226
226
|
export const KfwBaseFontsizeFluid6xlMin = "1.875rem";
|
|
227
227
|
export const KfwBaseFontsizeFluid6xlMax = "2.25rem";
|
|
228
|
-
export const KfwBaseFontsizeFluid6xlVal = "1.544125rem";
|
|
228
|
+
export const KfwBaseFontsizeFluid6xlVal = "0.882vi + 1.544125rem";
|
|
229
229
|
export const KfwBaseLineheight2xs = 1.2;
|
|
230
230
|
export const KfwBaseLineheightXs = 1.3;
|
|
231
231
|
export const KfwBaseLineheightSm = 1.333;
|
|
@@ -255,7 +255,7 @@ export const KfwBaseLayoutSafezoneStaticMd = "1.25rem";
|
|
|
255
255
|
export const KfwBaseLayoutSafezoneStaticLg = "2.5rem";
|
|
256
256
|
export const KfwBaseLayoutSafezoneFluidMin = "1.25rem";
|
|
257
257
|
export const KfwBaseLayoutSafezoneFluidMax = "2.5rem";
|
|
258
|
-
export const KfwBaseLayoutSafezoneFluidVal = "0.1470625rem";
|
|
258
|
+
export const KfwBaseLayoutSafezoneFluidVal = "2.941vi + 0.1470625rem";
|
|
259
259
|
export const KfwBaseLayoutGridcolumn1 = 1;
|
|
260
260
|
export const KfwBaseLayoutGridcolumn2 = 2;
|
|
261
261
|
export const KfwBaseLayoutGridcolumn3 = 3;
|
|
@@ -270,7 +270,7 @@ export const KfwBaseLayoutGridgapStaticLg = "1.625rem";
|
|
|
270
270
|
export const KfwBaseLayoutGridgapStaticXl = "2.25rem";
|
|
271
271
|
export const KfwBaseLayoutGridgapFluidMin = "0.75rem";
|
|
272
272
|
export const KfwBaseLayoutGridgapFluidMax = "2.25rem";
|
|
273
|
-
export const KfwBaseLayoutGridgapFluidVal = "-0.5735rem";
|
|
273
|
+
export const KfwBaseLayoutGridgapFluidVal = "3.529vi - 0.5735rem";
|
|
274
274
|
export const KfwColorFn = {
|
|
275
275
|
colorSpace: "srgb",
|
|
276
276
|
components: [0, 0.3529, 0.549],
|
|
@@ -365,25 +365,25 @@ export const KfwColorOpaqueWhite95 = {
|
|
|
365
365
|
}; // White 95%
|
|
366
366
|
export const KfwColorOpaqueGray50010 = {
|
|
367
367
|
colorSpace: "srgb",
|
|
368
|
-
components: [0.2549, 0.
|
|
368
|
+
components: [0.2549, 0.2824, 0.298],
|
|
369
369
|
hex: "#41484c",
|
|
370
370
|
alpha: 0.1,
|
|
371
371
|
}; // Gray 500 10%
|
|
372
372
|
export const KfwColorOpaqueGray50030 = {
|
|
373
373
|
colorSpace: "srgb",
|
|
374
|
-
components: [0.2549, 0.
|
|
374
|
+
components: [0.2549, 0.2824, 0.298],
|
|
375
375
|
hex: "#41484c",
|
|
376
376
|
alpha: 0.3,
|
|
377
377
|
}; // Gray 500 30%
|
|
378
378
|
export const KfwColorOpaqueGray50090 = {
|
|
379
379
|
colorSpace: "srgb",
|
|
380
|
-
components: [0.2549, 0.
|
|
380
|
+
components: [0.2549, 0.2824, 0.298],
|
|
381
381
|
hex: "#41484c",
|
|
382
382
|
alpha: 0.9,
|
|
383
383
|
}; // Gray 500 90%
|
|
384
384
|
export const KfwColorStateDanger = {
|
|
385
385
|
colorSpace: "srgb",
|
|
386
|
-
components: [0.7843, 0.0196, 0.
|
|
386
|
+
components: [0.7843, 0.0196, 0.2196],
|
|
387
387
|
hex: "#c80538",
|
|
388
388
|
};
|
|
389
389
|
export const KfwColorStateSuccess = {
|
|
@@ -398,7 +398,7 @@ export const KfwColorStateWarning = {
|
|
|
398
398
|
};
|
|
399
399
|
export const KfwColorStatusRed = {
|
|
400
400
|
colorSpace: "srgb",
|
|
401
|
-
components: [0.7843, 0.0196, 0.
|
|
401
|
+
components: [0.7843, 0.0196, 0.2196],
|
|
402
402
|
hex: "#c80538",
|
|
403
403
|
};
|
|
404
404
|
export const KfwColorStatusYellow = {
|
|
@@ -468,7 +468,7 @@ export const KfwColorProductCooperation = {
|
|
|
468
468
|
};
|
|
469
469
|
export const KfwColorProductCreditBenefit = {
|
|
470
470
|
colorSpace: "srgb",
|
|
471
|
-
components: [0.2549, 0.
|
|
471
|
+
components: [0.2549, 0.2824, 0.298],
|
|
472
472
|
hex: "#41484c",
|
|
473
473
|
};
|
|
474
474
|
export const KfwColorIcon = {
|
|
@@ -500,10 +500,10 @@ export const KfwSpaceSmall = "1.25rem";
|
|
|
500
500
|
export const KfwSpaceMedium = "1.875rem";
|
|
501
501
|
export const KfwSpaceLargeMin = "2.1875rem";
|
|
502
502
|
export const KfwSpaceLargeMax = "2.5rem";
|
|
503
|
-
export const KfwSpaceLargeVal = "1.91175rem";
|
|
503
|
+
export const KfwSpaceLargeVal = "0.735vi + 1.91175rem";
|
|
504
504
|
export const KfwSpaceBigMin = "3.125rem";
|
|
505
505
|
export const KfwSpaceBigMax = "3.75rem";
|
|
506
|
-
export const KfwSpaceBigVal = "2.5735rem";
|
|
506
|
+
export const KfwSpaceBigVal = "1.471vi + 2.5735rem";
|
|
507
507
|
export const KfwFontspace = "1.25rem";
|
|
508
508
|
export const KfwFontspace2xsmall = "0.3125rem";
|
|
509
509
|
export const KfwFontspaceXsmall = "0.625rem";
|
|
@@ -521,16 +521,16 @@ export const KfwFontsizeLarge = "1.125rem";
|
|
|
521
521
|
export const KfwFontsizeSmall = "0.875rem";
|
|
522
522
|
export const KfwFontsizeHeading1Min = "1.875rem";
|
|
523
523
|
export const KfwFontsizeHeading1Max = "2.25rem";
|
|
524
|
-
export const KfwFontsizeHeading1Val = "1.544125rem";
|
|
524
|
+
export const KfwFontsizeHeading1Val = "0.882vi + 1.544125rem";
|
|
525
525
|
export const KfwFontsizeHeading2Min = "1.75rem";
|
|
526
526
|
export const KfwFontsizeHeading2Max = "2rem";
|
|
527
|
-
export const KfwFontsizeHeading2Val = "1.5294375rem";
|
|
527
|
+
export const KfwFontsizeHeading2Val = "0.588vi + 1.5294375rem";
|
|
528
528
|
export const KfwFontsizeHeading3Min = "1.5rem";
|
|
529
529
|
export const KfwFontsizeHeading3Max = "1.625rem";
|
|
530
|
-
export const KfwFontsizeHeading3Val = "1.3896875rem";
|
|
530
|
+
export const KfwFontsizeHeading3Val = "0.294vi + 1.3896875rem";
|
|
531
531
|
export const KfwFontsizeHeading4Min = "1.25rem";
|
|
532
532
|
export const KfwFontsizeHeading4Max = "1.375rem";
|
|
533
|
-
export const KfwFontsizeHeading4Val = "1.1396875rem";
|
|
533
|
+
export const KfwFontsizeHeading4Val = "0.294vi + 1.1396875rem";
|
|
534
534
|
export const KfwFontsizeHeading5 = "1.125rem";
|
|
535
535
|
export const KfwFontsizeHeading6 = "1rem";
|
|
536
536
|
export const KfwLineheight = 1.4;
|
|
@@ -558,4 +558,4 @@ export const KfwContentwrapperBasic = "67.5rem";
|
|
|
558
558
|
export const KfwContentwrapperExtended = "80rem";
|
|
559
559
|
export const KfwSafezoneMin = "1.25rem";
|
|
560
560
|
export const KfwSafezoneMax = "2.5rem";
|
|
561
|
-
export const KfwSafezoneVal = "0.1470625rem";
|
|
561
|
+
export const KfwSafezoneVal = "2.941vi + 0.1470625rem";
|
|
@@ -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
|
$kfw-base-color-blue-100: #e9f5fb;
|
|
5
5
|
$kfw-base-color-blue-400: #54b3e2;
|
|
@@ -13,8 +13,8 @@ $kfw-base-color-green-400: #94eb90;
|
|
|
13
13
|
$kfw-base-color-green-700: #398357;
|
|
14
14
|
$kfw-base-color-white-90: #ffffffe6;
|
|
15
15
|
$kfw-base-color-white-95: #fffffff2;
|
|
16
|
-
$kfw-base-color-white: #
|
|
17
|
-
$kfw-base-color-black: #
|
|
16
|
+
$kfw-base-color-white: #fff;
|
|
17
|
+
$kfw-base-color-black: #000;
|
|
18
18
|
$kfw-base-color-gray-50: #f6f7f8;
|
|
19
19
|
$kfw-base-color-gray-100: #eef0f2;
|
|
20
20
|
$kfw-base-color-gray-200: #d8dfe3;
|
|
@@ -157,10 +157,10 @@ $kfw-color-fn-inactive: #a1adb5; // Interaction color when inactive (Gray 300)
|
|
|
157
157
|
$kfw-color-fn-border: #2d3134; // Interaction border color (Gray 600)
|
|
158
158
|
$kfw-color-fn-label: #2d3134; // Interaction label color (Gray 600)
|
|
159
159
|
$kfw-color-text: #2d3134; // Main text color for body (Gray 600)
|
|
160
|
-
$kfw-color-text-on-dark-bg: #
|
|
161
|
-
$kfw-color-text-on-disabled: #
|
|
160
|
+
$kfw-color-text-on-dark-bg: #fff; // Main text color on dark background (White)
|
|
161
|
+
$kfw-color-text-on-disabled: #fff; // Main text color on disabled (White)
|
|
162
162
|
$kfw-color-text-headline-on-dark-bg: #b7f9aa; // Headline text color on dark background (Green 300)
|
|
163
|
-
$kfw-color-background: #
|
|
163
|
+
$kfw-color-background: #fff; // Main background color for body (White)
|
|
164
164
|
$kfw-color-background-subtle: #f6f7f8; // Neutral (Gray 50)
|
|
165
165
|
$kfw-color-background-disabled: #a1adb5; // Disabled (Gray 300)
|
|
166
166
|
$kfw-color-background-light-blue: #e9f5fb; // Light blue (Blue 100)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openkfw/design-tokens",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.8",
|
|
4
4
|
"description": "The source of truth for KfW-branded digital products.",
|
|
5
5
|
"files": [
|
|
6
6
|
"README.md",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"update": "npx npm-check-updates -u",
|
|
23
23
|
"editor": "jsoneditor-cli --initialExpand false --engine svelte-jsoneditor load tokens/tokens.json",
|
|
24
24
|
"editor:dark": "jsoneditor-cli --port 5054 --engine svelte-jsoneditor load tokens/extended/tokens/tokens.dark.json",
|
|
25
|
-
"lint": "eslint
|
|
25
|
+
"lint": "eslint --ignore-pattern demo . --fix",
|
|
26
26
|
"format": "npx prettier ./ --write --config .prettierrc.json",
|
|
27
27
|
"typecheck": "tsc --noEmit",
|
|
28
28
|
"precommit": "npm run typecheck && npm run format && npm run lint"
|
|
@@ -41,21 +41,22 @@
|
|
|
41
41
|
"node": ">= 22.0.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@eslint/js": "^9.39.
|
|
44
|
+
"@eslint/js": "^9.39.2",
|
|
45
45
|
"@tsconfig/node24": "^24.0.3",
|
|
46
46
|
"@types/lodash": "^4.17.21",
|
|
47
|
-
"@types/node": "^
|
|
47
|
+
"@types/node": "^24.10.4",
|
|
48
48
|
"concurrently": "^9.2.1",
|
|
49
49
|
"deep-get-set-ts": "^1.1.2",
|
|
50
|
-
"eslint": "^9.39.
|
|
50
|
+
"eslint": "^9.39.2",
|
|
51
51
|
"json5": "^2.2.3",
|
|
52
52
|
"jsoneditor-cli": "^1.1.0",
|
|
53
53
|
"lodash": "4.17.21",
|
|
54
|
+
"npm-check-updates": "^19.2.0",
|
|
54
55
|
"prettier": "^3.7.4",
|
|
55
56
|
"style-dictionary": "^5.1.1",
|
|
57
|
+
"style-dictionary-utils": "^6.0.1",
|
|
56
58
|
"tsx": "^4.21.0",
|
|
57
59
|
"typescript": "^5.9.3",
|
|
58
|
-
"typescript-eslint": "^8.
|
|
59
|
-
"npm-check-updates": "^19.2.0"
|
|
60
|
+
"typescript-eslint": "^8.50.0"
|
|
60
61
|
}
|
|
61
62
|
}
|
|
@@ -231,7 +231,7 @@
|
|
|
231
231
|
colorSpace: "srgb",
|
|
232
232
|
components: [
|
|
233
233
|
0.2549,
|
|
234
|
-
0.
|
|
234
|
+
0.2824,
|
|
235
235
|
0.298,
|
|
236
236
|
],
|
|
237
237
|
hex: "#41484c",
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
colorSpace: "srgb",
|
|
244
244
|
components: [
|
|
245
245
|
0.2549,
|
|
246
|
-
0.
|
|
246
|
+
0.2824,
|
|
247
247
|
0.298,
|
|
248
248
|
],
|
|
249
249
|
hex: "#41484c",
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
colorSpace: "srgb",
|
|
256
256
|
components: [
|
|
257
257
|
0.2549,
|
|
258
|
-
0.
|
|
258
|
+
0.2824,
|
|
259
259
|
0.298,
|
|
260
260
|
],
|
|
261
261
|
hex: "#41484c",
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
colorSpace: "srgb",
|
|
268
268
|
components: [
|
|
269
269
|
0.2549,
|
|
270
|
-
0.
|
|
270
|
+
0.2824,
|
|
271
271
|
0.298,
|
|
272
272
|
],
|
|
273
273
|
hex: "#41484c",
|
|
@@ -317,7 +317,7 @@
|
|
|
317
317
|
components: [
|
|
318
318
|
0.7843,
|
|
319
319
|
0.0196,
|
|
320
|
-
0.
|
|
320
|
+
0.2196,
|
|
321
321
|
],
|
|
322
322
|
hex: "#c80538",
|
|
323
323
|
},
|
package/tokens/tokens.json
CHANGED
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"300": { "$value": { "colorSpace": "srgb", "components": [0.6314, 0.6784, 0.7098], "hex": "#a1adb5" } },
|
|
30
30
|
"400": { "$value": { "colorSpace": "srgb", "components": [0.4275, 0.4627, 0.4902], "hex": "#6d767d" } },
|
|
31
31
|
"500": {
|
|
32
|
-
"default": { "$value": { "colorSpace": "srgb", "components": [0.2549, 0.
|
|
33
|
-
"10": { "$value": { "colorSpace": "srgb", "components": [0.2549, 0.
|
|
34
|
-
"30": { "$value": { "colorSpace": "srgb", "components": [0.2549, 0.
|
|
35
|
-
"90": { "$value": { "colorSpace": "srgb", "components": [0.2549, 0.
|
|
32
|
+
"default": { "$value": { "colorSpace": "srgb", "components": [0.2549, 0.2824, 0.298], "hex": "#41484c" } },
|
|
33
|
+
"10": { "$value": { "colorSpace": "srgb", "components": [0.2549, 0.2824, 0.298], "hex": "#41484c", "alpha": 0.1 } },
|
|
34
|
+
"30": { "$value": { "colorSpace": "srgb", "components": [0.2549, 0.2824, 0.298], "hex": "#41484c", "alpha": 0.3 } },
|
|
35
|
+
"90": { "$value": { "colorSpace": "srgb", "components": [0.2549, 0.2824, 0.298], "hex": "#41484c", "alpha": 0.9 } }
|
|
36
36
|
},
|
|
37
37
|
"600": { "$value": { "colorSpace": "srgb", "components": [0.1765, 0.1922, 0.2039], "hex": "#2d3134" } }
|
|
38
38
|
},
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"500": { "$value": { "colorSpace": "srgb", "components": [0.3921, 0.1921, 0.4745], "hex": "#643179" } }
|
|
42
42
|
},
|
|
43
43
|
"red": {
|
|
44
|
-
"400": { "$value": { "colorSpace": "srgb", "components": [0.7843, 0.0196, 0.
|
|
44
|
+
"400": { "$value": { "colorSpace": "srgb", "components": [0.7843, 0.0196, 0.2196], "hex": "#c80538" } }
|
|
45
45
|
},
|
|
46
46
|
"yellow": {
|
|
47
47
|
"500": { "$value": { "colorSpace": "srgb", "components": [0.9176, 0.7843, 0.0431], "hex": "#eac80b" } }
|