@openkfw/design-tokens 0.5.0 → 0.5.1
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 +1 -1
- package/output/css/kfw-design-tokens.light.css +3 -2
- package/output/figma/kfw-design-tokens.light.json +5 -1
- package/output/js/kfw-design-tokens.light.d.ts +3 -2
- package/output/js/kfw-design-tokens.light.js +3 -2
- package/output/json/kfw-design-tokens.light.json +27 -5
- package/output/penpot/kfw-design-tokens.light.json +5 -1
- package/output/scss/kfw-design-tokens.light.scss +3 -2
- package/output/web_thirdparty_16px/css/kfw-design-tokens.light.css +3 -2
- package/output/web_thirdparty_16px/js/kfw-design-tokens.light.d.ts +3 -2
- package/output/web_thirdparty_16px/js/kfw-design-tokens.light.js +3 -2
- package/output/web_thirdparty_16px/scss/kfw-design-tokens.light.scss +3 -2
- package/package.json +2 -2
- package/tokens/gen-tokens.dark.json5 +4 -1
- package/tokens/tokens.json +3 -2
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ npm i -D @openkfw/design-tokens
|
|
|
28
28
|
Import or use files inside the `output` folder, e.g.:
|
|
29
29
|
|
|
30
30
|
```css
|
|
31
|
-
@import url("@openkfw/design-tokens/output/
|
|
31
|
+
@import url("@openkfw/design-tokens/output/css/kfw-design-tokens.light.css");
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
## ❤️ Contributing
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* KfW Design Tokens v0.5.
|
|
2
|
+
* KfW Design Tokens v0.5.1 | MPL-2.0 | https://github.com/openkfw/design-tokens
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
:root, :host, .kfw-theme--light { color-scheme: light; }
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
--kfw-base-borderradius-sm: 2px;
|
|
119
119
|
--kfw-base-borderradius-md: 0.4rem;
|
|
120
120
|
--kfw-base-borderradius-lg: 2rem;
|
|
121
|
-
--kfw-base-borderradius-
|
|
121
|
+
--kfw-base-borderradius-circle: 999.9rem;
|
|
122
122
|
--kfw-base-borderwidth-none: 0;
|
|
123
123
|
--kfw-base-borderwidth-md: 1px;
|
|
124
124
|
--kfw-base-borderwidth-lg: 2px;
|
|
@@ -246,6 +246,7 @@
|
|
|
246
246
|
--kfw-borderradius: 0.4rem;
|
|
247
247
|
--kfw-borderradius-large: 2rem;
|
|
248
248
|
--kfw-borderradius-small: 2px;
|
|
249
|
+
--kfw-borderradius-circle: 999.9rem;
|
|
249
250
|
--kfw-borderwidth: 1px;
|
|
250
251
|
--kfw-borderwidth-large: 2px;
|
|
251
252
|
--kfw-focusring-outline-width: 2px;
|
|
@@ -263,7 +263,7 @@
|
|
|
263
263
|
"$value": "20px",
|
|
264
264
|
"$type": "borderRadius"
|
|
265
265
|
},
|
|
266
|
-
"
|
|
266
|
+
"Circle": {
|
|
267
267
|
"$value": "9999px",
|
|
268
268
|
"$type": "borderRadius"
|
|
269
269
|
}
|
|
@@ -690,6 +690,10 @@
|
|
|
690
690
|
"Small": {
|
|
691
691
|
"$value": "2px",
|
|
692
692
|
"$type": "borderRadius"
|
|
693
|
+
},
|
|
694
|
+
"Circle": {
|
|
695
|
+
"$value": "9999px",
|
|
696
|
+
"$type": "borderRadius"
|
|
693
697
|
}
|
|
694
698
|
},
|
|
695
699
|
"Borderwidth": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* KfW Design Tokens v0.5.
|
|
2
|
+
* KfW Design Tokens v0.5.1 | MPL-2.0 | https://github.com/openkfw/design-tokens
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
export const KfwBaseColorBlue100: {
|
|
@@ -232,7 +232,7 @@ export const KfwBaseLineheightLg: number;
|
|
|
232
232
|
export const KfwBaseBorderradiusSm: string;
|
|
233
233
|
export const KfwBaseBorderradiusMd: string;
|
|
234
234
|
export const KfwBaseBorderradiusLg: string;
|
|
235
|
-
export const
|
|
235
|
+
export const KfwBaseBorderradiusCircle: string;
|
|
236
236
|
export const KfwBaseBorderwidthNone: string;
|
|
237
237
|
export const KfwBaseBorderwidthMd: string;
|
|
238
238
|
export const KfwBaseBorderwidthLg: string;
|
|
@@ -540,6 +540,7 @@ export const KfwLineheightHeading5: number;
|
|
|
540
540
|
export const KfwBorderradius: string;
|
|
541
541
|
export const KfwBorderradiusLarge: string;
|
|
542
542
|
export const KfwBorderradiusSmall: string;
|
|
543
|
+
export const KfwBorderradiusCircle: string;
|
|
543
544
|
export const KfwBorderwidth: string;
|
|
544
545
|
export const KfwBorderwidthLarge: string;
|
|
545
546
|
export const KfwFocusringOutlineWidth: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* KfW Design Tokens v0.5.
|
|
2
|
+
* KfW Design Tokens v0.5.1 | MPL-2.0 | https://github.com/openkfw/design-tokens
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
export const KfwBaseColorBlue100 = {
|
|
@@ -234,7 +234,7 @@ export const KfwBaseLineheightLg = 1.5;
|
|
|
234
234
|
export const KfwBaseBorderradiusSm = "2px";
|
|
235
235
|
export const KfwBaseBorderradiusMd = "0.4rem";
|
|
236
236
|
export const KfwBaseBorderradiusLg = "2rem";
|
|
237
|
-
export const
|
|
237
|
+
export const KfwBaseBorderradiusCircle = "999.9rem";
|
|
238
238
|
export const KfwBaseBorderwidthNone = "0";
|
|
239
239
|
export const KfwBaseBorderwidthMd = "1px";
|
|
240
240
|
export const KfwBaseBorderwidthLg = "2px";
|
|
@@ -541,6 +541,7 @@ export const KfwLineheightHeading5 = 1.333;
|
|
|
541
541
|
export const KfwBorderradius = "0.4rem";
|
|
542
542
|
export const KfwBorderradiusLarge = "2rem";
|
|
543
543
|
export const KfwBorderradiusSmall = "2px";
|
|
544
|
+
export const KfwBorderradiusCircle = "999.9rem";
|
|
544
545
|
export const KfwBorderwidth = "1px";
|
|
545
546
|
export const KfwBorderwidthLarge = "2px";
|
|
546
547
|
export const KfwFocusringOutlineWidth = "2px";
|
|
@@ -3511,8 +3511,8 @@
|
|
|
3511
3511
|
"lg"
|
|
3512
3512
|
]
|
|
3513
3513
|
},
|
|
3514
|
-
"
|
|
3515
|
-
"key": "{base.borderradius.
|
|
3514
|
+
"circle": {
|
|
3515
|
+
"key": "{base.borderradius.circle}",
|
|
3516
3516
|
"$value": {
|
|
3517
3517
|
"unit": "px",
|
|
3518
3518
|
"value": 9999
|
|
@@ -3526,14 +3526,14 @@
|
|
|
3526
3526
|
"value": 9999
|
|
3527
3527
|
},
|
|
3528
3528
|
"$type": "dimension",
|
|
3529
|
-
"key": "{base.borderradius.
|
|
3529
|
+
"key": "{base.borderradius.circle}"
|
|
3530
3530
|
},
|
|
3531
|
-
"name": "
|
|
3531
|
+
"name": "circle",
|
|
3532
3532
|
"attributes": {},
|
|
3533
3533
|
"path": [
|
|
3534
3534
|
"base",
|
|
3535
3535
|
"borderradius",
|
|
3536
|
-
"
|
|
3536
|
+
"circle"
|
|
3537
3537
|
]
|
|
3538
3538
|
}
|
|
3539
3539
|
},
|
|
@@ -7054,6 +7054,28 @@
|
|
|
7054
7054
|
"borderradius",
|
|
7055
7055
|
"small"
|
|
7056
7056
|
]
|
|
7057
|
+
},
|
|
7058
|
+
"circle": {
|
|
7059
|
+
"key": "{semantic.borderradius.circle}",
|
|
7060
|
+
"$value": {
|
|
7061
|
+
"unit": "px",
|
|
7062
|
+
"value": 9999
|
|
7063
|
+
},
|
|
7064
|
+
"filePath": "tokens/tokens.json",
|
|
7065
|
+
"isSource": true,
|
|
7066
|
+
"$type": "dimension",
|
|
7067
|
+
"original": {
|
|
7068
|
+
"$value": "{base.borderradius.circle}",
|
|
7069
|
+
"$type": "dimension",
|
|
7070
|
+
"key": "{semantic.borderradius.circle}"
|
|
7071
|
+
},
|
|
7072
|
+
"name": "circle",
|
|
7073
|
+
"attributes": {},
|
|
7074
|
+
"path": [
|
|
7075
|
+
"semantic",
|
|
7076
|
+
"borderradius",
|
|
7077
|
+
"circle"
|
|
7078
|
+
]
|
|
7057
7079
|
}
|
|
7058
7080
|
},
|
|
7059
7081
|
"borderwidth": {
|
|
@@ -263,7 +263,7 @@
|
|
|
263
263
|
"$value": "20px",
|
|
264
264
|
"$type": "borderRadius"
|
|
265
265
|
},
|
|
266
|
-
"
|
|
266
|
+
"Circle": {
|
|
267
267
|
"$value": "9999px",
|
|
268
268
|
"$type": "borderRadius"
|
|
269
269
|
}
|
|
@@ -690,6 +690,10 @@
|
|
|
690
690
|
"Small": {
|
|
691
691
|
"$value": "2px",
|
|
692
692
|
"$type": "borderRadius"
|
|
693
|
+
},
|
|
694
|
+
"Circle": {
|
|
695
|
+
"$value": "9999px",
|
|
696
|
+
"$type": "borderRadius"
|
|
693
697
|
}
|
|
694
698
|
},
|
|
695
699
|
"Borderwidth": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
// KfW Design Tokens v0.5.
|
|
2
|
+
// KfW Design Tokens v0.5.1 | 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;
|
|
@@ -114,7 +114,7 @@ $kfw-base-lineheight-lg: 1.5;
|
|
|
114
114
|
$kfw-base-borderradius-sm: 2px;
|
|
115
115
|
$kfw-base-borderradius-md: 0.4rem;
|
|
116
116
|
$kfw-base-borderradius-lg: 2rem;
|
|
117
|
-
$kfw-base-borderradius-
|
|
117
|
+
$kfw-base-borderradius-circle: 999.9rem;
|
|
118
118
|
$kfw-base-borderwidth-none: 0;
|
|
119
119
|
$kfw-base-borderwidth-md: 1px;
|
|
120
120
|
$kfw-base-borderwidth-lg: 2px;
|
|
@@ -242,6 +242,7 @@ $kfw-lineheight-heading-5: 1.333;
|
|
|
242
242
|
$kfw-borderradius: 0.4rem;
|
|
243
243
|
$kfw-borderradius-large: 2rem;
|
|
244
244
|
$kfw-borderradius-small: 2px;
|
|
245
|
+
$kfw-borderradius-circle: 999.9rem;
|
|
245
246
|
$kfw-borderwidth: 1px;
|
|
246
247
|
$kfw-borderwidth-large: 2px;
|
|
247
248
|
$kfw-focusring-outline-width: 2px;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* KfW Design Tokens v0.5.
|
|
2
|
+
* KfW Design Tokens v0.5.1 | MPL-2.0 | https://github.com/openkfw/design-tokens
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
:root, :host, .kfw-theme--light { color-scheme: light; }
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
--kfw-base-borderradius-sm: 2px;
|
|
119
119
|
--kfw-base-borderradius-md: 0.25rem;
|
|
120
120
|
--kfw-base-borderradius-lg: 1.25rem;
|
|
121
|
-
--kfw-base-borderradius-
|
|
121
|
+
--kfw-base-borderradius-circle: 624.9375rem;
|
|
122
122
|
--kfw-base-borderwidth-none: 0;
|
|
123
123
|
--kfw-base-borderwidth-md: 1px;
|
|
124
124
|
--kfw-base-borderwidth-lg: 2px;
|
|
@@ -246,6 +246,7 @@
|
|
|
246
246
|
--kfw-borderradius: 0.25rem;
|
|
247
247
|
--kfw-borderradius-large: 1.25rem;
|
|
248
248
|
--kfw-borderradius-small: 2px;
|
|
249
|
+
--kfw-borderradius-circle: 624.9375rem;
|
|
249
250
|
--kfw-borderwidth: 1px;
|
|
250
251
|
--kfw-borderwidth-large: 2px;
|
|
251
252
|
--kfw-focusring-outline-width: 2px;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* KfW Design Tokens v0.5.
|
|
2
|
+
* KfW Design Tokens v0.5.1 | MPL-2.0 | https://github.com/openkfw/design-tokens
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
export const KfwBaseColorBlue100: {
|
|
@@ -232,7 +232,7 @@ export const KfwBaseLineheightLg: number;
|
|
|
232
232
|
export const KfwBaseBorderradiusSm: string;
|
|
233
233
|
export const KfwBaseBorderradiusMd: string;
|
|
234
234
|
export const KfwBaseBorderradiusLg: string;
|
|
235
|
-
export const
|
|
235
|
+
export const KfwBaseBorderradiusCircle: string;
|
|
236
236
|
export const KfwBaseBorderwidthNone: string;
|
|
237
237
|
export const KfwBaseBorderwidthMd: string;
|
|
238
238
|
export const KfwBaseBorderwidthLg: string;
|
|
@@ -540,6 +540,7 @@ export const KfwLineheightHeading5: number;
|
|
|
540
540
|
export const KfwBorderradius: string;
|
|
541
541
|
export const KfwBorderradiusLarge: string;
|
|
542
542
|
export const KfwBorderradiusSmall: string;
|
|
543
|
+
export const KfwBorderradiusCircle: string;
|
|
543
544
|
export const KfwBorderwidth: string;
|
|
544
545
|
export const KfwBorderwidthLarge: string;
|
|
545
546
|
export const KfwFocusringOutlineWidth: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* KfW Design Tokens v0.5.
|
|
2
|
+
* KfW Design Tokens v0.5.1 | MPL-2.0 | https://github.com/openkfw/design-tokens
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
export const KfwBaseColorBlue100 = {
|
|
@@ -234,7 +234,7 @@ export const KfwBaseLineheightLg = 1.5;
|
|
|
234
234
|
export const KfwBaseBorderradiusSm = "2px";
|
|
235
235
|
export const KfwBaseBorderradiusMd = "0.25rem";
|
|
236
236
|
export const KfwBaseBorderradiusLg = "1.25rem";
|
|
237
|
-
export const
|
|
237
|
+
export const KfwBaseBorderradiusCircle = "624.9375rem";
|
|
238
238
|
export const KfwBaseBorderwidthNone = "0";
|
|
239
239
|
export const KfwBaseBorderwidthMd = "1px";
|
|
240
240
|
export const KfwBaseBorderwidthLg = "2px";
|
|
@@ -541,6 +541,7 @@ export const KfwLineheightHeading5 = 1.333;
|
|
|
541
541
|
export const KfwBorderradius = "0.25rem";
|
|
542
542
|
export const KfwBorderradiusLarge = "1.25rem";
|
|
543
543
|
export const KfwBorderradiusSmall = "2px";
|
|
544
|
+
export const KfwBorderradiusCircle = "624.9375rem";
|
|
544
545
|
export const KfwBorderwidth = "1px";
|
|
545
546
|
export const KfwBorderwidthLarge = "2px";
|
|
546
547
|
export const KfwFocusringOutlineWidth = "2px";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
// KfW Design Tokens v0.5.
|
|
2
|
+
// KfW Design Tokens v0.5.1 | 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;
|
|
@@ -114,7 +114,7 @@ $kfw-base-lineheight-lg: 1.5;
|
|
|
114
114
|
$kfw-base-borderradius-sm: 2px;
|
|
115
115
|
$kfw-base-borderradius-md: 0.25rem;
|
|
116
116
|
$kfw-base-borderradius-lg: 1.25rem;
|
|
117
|
-
$kfw-base-borderradius-
|
|
117
|
+
$kfw-base-borderradius-circle: 624.9375rem;
|
|
118
118
|
$kfw-base-borderwidth-none: 0;
|
|
119
119
|
$kfw-base-borderwidth-md: 1px;
|
|
120
120
|
$kfw-base-borderwidth-lg: 2px;
|
|
@@ -242,6 +242,7 @@ $kfw-lineheight-heading-5: 1.333;
|
|
|
242
242
|
$kfw-borderradius: 0.25rem;
|
|
243
243
|
$kfw-borderradius-large: 1.25rem;
|
|
244
244
|
$kfw-borderradius-small: 2px;
|
|
245
|
+
$kfw-borderradius-circle: 624.9375rem;
|
|
245
246
|
$kfw-borderwidth: 1px;
|
|
246
247
|
$kfw-borderwidth-large: 2px;
|
|
247
248
|
$kfw-focusring-outline-width: 2px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openkfw/design-tokens",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "The source of truth for KfW-branded digital products.",
|
|
5
5
|
"files": [
|
|
6
6
|
"output",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@eslint/js": "^9.37.0",
|
|
39
39
|
"@tsconfig/node22": "^22.0.2",
|
|
40
40
|
"@types/lodash": "^4.17.20",
|
|
41
|
-
"@types/node": "^
|
|
41
|
+
"@types/node": "^22",
|
|
42
42
|
"concurrently": "^9.2.1",
|
|
43
43
|
"deep-get-set-ts": "^1.1.2",
|
|
44
44
|
"eslint": "^9.37.0",
|
|
@@ -852,7 +852,7 @@
|
|
|
852
852
|
value: 20,
|
|
853
853
|
},
|
|
854
854
|
},
|
|
855
|
-
|
|
855
|
+
circle: {
|
|
856
856
|
$value: {
|
|
857
857
|
unit: "px",
|
|
858
858
|
value: 9999,
|
|
@@ -1410,6 +1410,9 @@
|
|
|
1410
1410
|
small: {
|
|
1411
1411
|
$value: "{base.borderradius.sm}",
|
|
1412
1412
|
},
|
|
1413
|
+
circle: {
|
|
1414
|
+
$value: "{base.borderradius.circle}",
|
|
1415
|
+
},
|
|
1413
1416
|
},
|
|
1414
1417
|
borderwidth: {
|
|
1415
1418
|
$type: "dimension",
|
package/tokens/tokens.json
CHANGED
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
"sm": { "$value": { "unit": "px", "value": 2 } },
|
|
194
194
|
"md": { "$value": { "unit": "px", "value": 4 } },
|
|
195
195
|
"lg": { "$value": { "unit": "px", "value": 20 } },
|
|
196
|
-
"
|
|
196
|
+
"circle": { "$value": { "unit": "px", "value": 9999 } }
|
|
197
197
|
},
|
|
198
198
|
"borderwidth": {
|
|
199
199
|
"$type": "dimension",
|
|
@@ -412,7 +412,8 @@
|
|
|
412
412
|
"$type": "dimension",
|
|
413
413
|
"default": { "$value": "{base.borderradius.md}" },
|
|
414
414
|
"large": { "$value": "{base.borderradius.lg}" },
|
|
415
|
-
"small": { "$value": "{base.borderradius.sm}" }
|
|
415
|
+
"small": { "$value": "{base.borderradius.sm}" },
|
|
416
|
+
"circle": { "$value": "{base.borderradius.circle}" }
|
|
416
417
|
},
|
|
417
418
|
"borderwidth": {
|
|
418
419
|
"$type": "dimension",
|