@openkfw/design-tokens 0.1.1 → 0.1.2
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/README.md +6 -16
- package/output/figma/kfw-design-tokens.light.json +1 -1
- package/output/json/kfw-design-tokens.light.json +2 -2
- package/output/penpot/kfw-design-tokens.light.json +1 -1
- package/output/web_next_16px/css/kfw-design-tokens.light.css +1 -1
- package/output/web_next_16px/js/kfw-design-tokens.light.js +1 -1
- package/output/web_next_16px/scss/kfw-design-tokens.light.scss +1 -1
- package/output/web_stable_10px/css/kfw-design-tokens.light.css +1 -1
- package/output/web_stable_10px/js/kfw-design-tokens.light.js +1 -1
- package/output/web_stable_10px/scss/kfw-design-tokens.light.scss +1 -1
- package/package.json +2 -2
- package/tokens/gen-tokens.dark.json5 +1 -1
- package/tokens/tokens.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ KfW Design Tokens is the source of truth for designing KfW-branded digital produ
|
|
|
4
4
|
The tokens follow a template that complies with the <a href="https://tr.designtokens.org/">W3C DTCG format</a>.
|
|
5
5
|
The documentation for how to using design tokens is accessible only <a href="https://brand-guide.kfw.de/document/85/de#/user-interface/user-interface">internally</a>.
|
|
6
6
|
|
|
7
|
-
 [](./LICENSE)
|
|
7
|
+
 [](./LICENSE)   [](https://www.npmjs.com/package/@openkfw/design-tokens)
|
|
8
8
|
|
|
9
9
|
# Customizing KfW Design Tokens for open source
|
|
10
10
|
|
package/output/README.md
CHANGED
|
@@ -13,20 +13,10 @@ This document describes the structure of the `/output` directory and provides an
|
|
|
13
13
|
├── /web_stable_10px
|
|
14
14
|
└── /web_next_16px
|
|
15
15
|
```
|
|
16
|
+
In the /output directory, you will find all available output formats for Figma, Penpot, JSON, and Web (CSS, SCSS, JS).
|
|
16
17
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
This folder contains specifications for documentation. All tokens are specified with pixel values.
|
|
24
|
-
|
|
25
|
-
### /web_stable_10px
|
|
26
|
-
|
|
27
|
-
This folder contains styles (CSS, SCSS, JS) for applications that adhere to the KfW standard of 10px = 1rem, such as MeineKfW, KfW.de, and the Online Credit Portal.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
### /web_next_16px
|
|
31
|
-
|
|
32
|
-
This folder contains styles for applications that use 16px = 1rem (the default browser font size), such as third-party systems like Storybook and Frontify.
|
|
18
|
+
In the Web, we differentiate between `/web_stable_10px` and `/web_next_16px`, which use different REM root values.
|
|
19
|
+
For KfW.de, MeineKfW, education, and other KfW applications, we use 62.5% (16px = 1.6rem) by default for readability
|
|
20
|
+
reasons, meaning that 1rem equals 10px. In third-party systems where we cannot influence the REM root value and it
|
|
21
|
+
corresponds to the standard browser font size of 16px (100%), /web_next_16px should be used instead.
|
|
22
|
+
Please note that a font size of 10px should never be used. Therefore, it is advisable to set the font size in the to 1.6rem.
|
|
@@ -6460,13 +6460,13 @@
|
|
|
6460
6460
|
"key": "{semantic.fontspace.heading-6}",
|
|
6461
6461
|
"$value": {
|
|
6462
6462
|
"unit": "px",
|
|
6463
|
-
"value":
|
|
6463
|
+
"value": 10
|
|
6464
6464
|
},
|
|
6465
6465
|
"filePath": "tokens/tokens.json",
|
|
6466
6466
|
"isSource": true,
|
|
6467
6467
|
"$type": "dimension",
|
|
6468
6468
|
"original": {
|
|
6469
|
-
"$value": "{base.space.static.
|
|
6469
|
+
"$value": "{base.space.static.10}",
|
|
6470
6470
|
"$type": "dimension",
|
|
6471
6471
|
"key": "{semantic.fontspace.heading-6}"
|
|
6472
6472
|
},
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
--kfw-fontspace-heading-3: 0.625rem;
|
|
223
223
|
--kfw-fontspace-heading-4: 0.625rem;
|
|
224
224
|
--kfw-fontspace-heading-5: 0.625rem;
|
|
225
|
-
--kfw-fontspace-heading-6:
|
|
225
|
+
--kfw-fontspace-heading-6: 0.625rem;
|
|
226
226
|
--kfw-fontsize: 1rem;
|
|
227
227
|
--kfw-fontsize-introduction: 1.25rem;
|
|
228
228
|
--kfw-fontsize-small: 0.875rem;
|
|
@@ -521,7 +521,7 @@ export const KfwFontspaceHeading2 = "1.25rem";
|
|
|
521
521
|
export const KfwFontspaceHeading3 = "0.625rem";
|
|
522
522
|
export const KfwFontspaceHeading4 = "0.625rem";
|
|
523
523
|
export const KfwFontspaceHeading5 = "0.625rem";
|
|
524
|
-
export const KfwFontspaceHeading6 = "
|
|
524
|
+
export const KfwFontspaceHeading6 = "0.625rem";
|
|
525
525
|
export const KfwFontsize = "1rem";
|
|
526
526
|
export const KfwFontsizeIntroduction = "1.25rem";
|
|
527
527
|
export const KfwFontsizeSmall = "0.875rem";
|
|
@@ -218,7 +218,7 @@ $kfw-fontspace-heading-2: 1.25rem;
|
|
|
218
218
|
$kfw-fontspace-heading-3: 0.625rem;
|
|
219
219
|
$kfw-fontspace-heading-4: 0.625rem;
|
|
220
220
|
$kfw-fontspace-heading-5: 0.625rem;
|
|
221
|
-
$kfw-fontspace-heading-6:
|
|
221
|
+
$kfw-fontspace-heading-6: 0.625rem;
|
|
222
222
|
$kfw-fontsize: 1rem;
|
|
223
223
|
$kfw-fontsize-introduction: 1.25rem;
|
|
224
224
|
$kfw-fontsize-small: 0.875rem;
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
--kfw-fontspace-heading-3: 1rem;
|
|
223
223
|
--kfw-fontspace-heading-4: 1rem;
|
|
224
224
|
--kfw-fontspace-heading-5: 1rem;
|
|
225
|
-
--kfw-fontspace-heading-6:
|
|
225
|
+
--kfw-fontspace-heading-6: 1rem;
|
|
226
226
|
--kfw-fontsize: 1.6rem;
|
|
227
227
|
--kfw-fontsize-introduction: 2rem;
|
|
228
228
|
--kfw-fontsize-small: 1.4rem;
|
|
@@ -521,7 +521,7 @@ export const KfwFontspaceHeading2 = "2rem";
|
|
|
521
521
|
export const KfwFontspaceHeading3 = "1rem";
|
|
522
522
|
export const KfwFontspaceHeading4 = "1rem";
|
|
523
523
|
export const KfwFontspaceHeading5 = "1rem";
|
|
524
|
-
export const KfwFontspaceHeading6 = "
|
|
524
|
+
export const KfwFontspaceHeading6 = "1rem";
|
|
525
525
|
export const KfwFontsize = "1.6rem";
|
|
526
526
|
export const KfwFontsizeIntroduction = "2rem";
|
|
527
527
|
export const KfwFontsizeSmall = "1.4rem";
|
|
@@ -218,7 +218,7 @@ $kfw-fontspace-heading-2: 2rem;
|
|
|
218
218
|
$kfw-fontspace-heading-3: 1rem;
|
|
219
219
|
$kfw-fontspace-heading-4: 1rem;
|
|
220
220
|
$kfw-fontspace-heading-5: 1rem;
|
|
221
|
-
$kfw-fontspace-heading-6:
|
|
221
|
+
$kfw-fontspace-heading-6: 1rem;
|
|
222
222
|
$kfw-fontsize: 1.6rem;
|
|
223
223
|
$kfw-fontsize-introduction: 2rem;
|
|
224
224
|
$kfw-fontsize-small: 1.4rem;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openkfw/design-tokens",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "The source of truth for KfW-branded digital products.",
|
|
5
5
|
"files": [
|
|
6
6
|
"output",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"jsoneditor-cli": "^1.1.0",
|
|
51
51
|
"lodash": "4.17.21",
|
|
52
52
|
"prettier": "^3.6.2",
|
|
53
|
-
"style-dictionary": "^5.0.
|
|
53
|
+
"style-dictionary": "^5.0.2",
|
|
54
54
|
"tsx": "^4.20.4",
|
|
55
55
|
"typescript": "^5.9.2",
|
|
56
56
|
"typescript-eslint": "^8.40.0"
|
package/tokens/tokens.json
CHANGED
|
@@ -370,7 +370,7 @@
|
|
|
370
370
|
"heading-3": { "$value": "{base.space.static.10}" },
|
|
371
371
|
"heading-4": { "$value": "{base.space.static.10}" },
|
|
372
372
|
"heading-5": { "$value": "{base.space.static.10}" },
|
|
373
|
-
"heading-6": { "$value": "{base.space.static.
|
|
373
|
+
"heading-6": { "$value": "{base.space.static.10}" }
|
|
374
374
|
},
|
|
375
375
|
"fontsize": {
|
|
376
376
|
"$type": "dimension",
|