@openkfw/design-tokens 0.4.3 → 0.5.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/output/README.md +21 -7
- package/output/{web_stable_10px/css → css}/kfw-design-tokens.light.css +1 -3
- package/output/{web_stable_10px/js → js}/kfw-design-tokens.light.d.ts +1 -3
- package/output/{web_stable_10px/js → js}/kfw-design-tokens.light.js +1 -3
- package/output/{web_stable_10px/scss → scss}/kfw-design-tokens.light.scss +1 -3
- package/output/web_thirdparty_16px/css/kfw-design-tokens.light.css +1 -3
- package/output/web_thirdparty_16px/js/kfw-design-tokens.light.d.ts +1 -3
- package/output/web_thirdparty_16px/js/kfw-design-tokens.light.js +1 -3
- package/output/web_thirdparty_16px/scss/kfw-design-tokens.light.scss +1 -3
- package/package.json +4 -4
package/output/README.md
CHANGED
|
@@ -9,16 +9,30 @@ This document outlines the structure of the /output directory and its contents.
|
|
|
9
9
|
├── /figma
|
|
10
10
|
├── /penpot
|
|
11
11
|
├── /json
|
|
12
|
-
├── /
|
|
13
|
-
|
|
12
|
+
├── /css
|
|
13
|
+
├── /js
|
|
14
|
+
├── /scss
|
|
15
|
+
└── /web_thirdparty_16px (third-party)
|
|
14
16
|
```
|
|
15
17
|
|
|
16
|
-
|
|
18
|
+
The `/output` directory contains all available export formats for design and development integration, including Figma, Penpot, JSON, CSS, SCSS, and JavaScript files.
|
|
17
19
|
|
|
18
|
-
## Web Folder Usage
|
|
19
20
|
|
|
20
|
-
|
|
21
|
+
# 🧭 REM and Font Scaling Guidelines
|
|
21
22
|
|
|
22
|
-
|
|
23
|
+
All KfW web applications (e.g., KfW.de, MeineKfW, OKP) use a root REM value of 62.5% to ensure optimal readability and consistent scaling.
|
|
24
|
+
This means that 1rem is equivalent to 10px. Never use a font size of 10px directly. Always rely on rem units for scalable and accessible typography.
|
|
23
25
|
|
|
24
|
-
|
|
26
|
+
Example:
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
html {
|
|
30
|
+
font-size: 62.5%; /* 1rem = 10px */
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
body {
|
|
34
|
+
font-size: 1.6rem; /* 16px */
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
For third-party systems where the REM root value cannot be modified (i.e., the default browser setting of 16px = 100%), use the assets provided in the `/web_thirdparty_16px` folder.
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* KfW Design Tokens v0.
|
|
3
|
-
* Copyright 2025
|
|
4
|
-
* Licensed under MPL-2.0 (https://github.com/openkfw/design-tokens/blob/main/LICENSE)
|
|
2
|
+
* KfW Design Tokens v0.5.0 | MPL-2.0 | https://github.com/openkfw/design-tokens
|
|
5
3
|
*/
|
|
6
4
|
|
|
7
5
|
:root, :host, .kfw-theme--light { color-scheme: light; }
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* KfW Design Tokens v0.
|
|
3
|
-
* Copyright 2025
|
|
4
|
-
* Licensed under MPL-2.0 (https://github.com/openkfw/design-tokens/blob/main/LICENSE)
|
|
2
|
+
* KfW Design Tokens v0.5.0 | MPL-2.0 | https://github.com/openkfw/design-tokens
|
|
5
3
|
*/
|
|
6
4
|
|
|
7
5
|
export const KfwBaseColorBlue100: {
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* KfW Design Tokens v0.
|
|
3
|
-
* Copyright 2025
|
|
4
|
-
* Licensed under MPL-2.0 (https://github.com/openkfw/design-tokens/blob/main/LICENSE)
|
|
2
|
+
* KfW Design Tokens v0.5.0 | MPL-2.0 | https://github.com/openkfw/design-tokens
|
|
5
3
|
*/
|
|
6
4
|
|
|
7
5
|
export const KfwBaseColorBlue100 = {
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
// KfW Design Tokens v0.
|
|
3
|
-
// Copyright 2025
|
|
4
|
-
// Licensed under MPL-2.0 (https://github.com/openkfw/design-tokens/blob/main/LICENSE)
|
|
2
|
+
// KfW Design Tokens v0.5.0 | MPL-2.0 | https://github.com/openkfw/design-tokens
|
|
5
3
|
|
|
6
4
|
$kfw-base-color-blue-100: #e9f5fb;
|
|
7
5
|
$kfw-base-color-blue-400: #54b3e2;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* KfW Design Tokens v0.
|
|
3
|
-
* Copyright 2025
|
|
4
|
-
* Licensed under MPL-2.0 (https://github.com/openkfw/design-tokens/blob/main/LICENSE)
|
|
2
|
+
* KfW Design Tokens v0.5.0 | MPL-2.0 | https://github.com/openkfw/design-tokens
|
|
5
3
|
*/
|
|
6
4
|
|
|
7
5
|
:root, :host, .kfw-theme--light { color-scheme: light; }
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* KfW Design Tokens v0.
|
|
3
|
-
* Copyright 2025
|
|
4
|
-
* Licensed under MPL-2.0 (https://github.com/openkfw/design-tokens/blob/main/LICENSE)
|
|
2
|
+
* KfW Design Tokens v0.5.0 | MPL-2.0 | https://github.com/openkfw/design-tokens
|
|
5
3
|
*/
|
|
6
4
|
|
|
7
5
|
export const KfwBaseColorBlue100: {
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* KfW Design Tokens v0.
|
|
3
|
-
* Copyright 2025
|
|
4
|
-
* Licensed under MPL-2.0 (https://github.com/openkfw/design-tokens/blob/main/LICENSE)
|
|
2
|
+
* KfW Design Tokens v0.5.0 | MPL-2.0 | https://github.com/openkfw/design-tokens
|
|
5
3
|
*/
|
|
6
4
|
|
|
7
5
|
export const KfwBaseColorBlue100 = {
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
// KfW Design Tokens v0.
|
|
3
|
-
// Copyright 2025
|
|
4
|
-
// Licensed under MPL-2.0 (https://github.com/openkfw/design-tokens/blob/main/LICENSE)
|
|
2
|
+
// KfW Design Tokens v0.5.0 | MPL-2.0 | https://github.com/openkfw/design-tokens
|
|
5
3
|
|
|
6
4
|
$kfw-base-color-blue-100: #e9f5fb;
|
|
7
5
|
$kfw-base-color-blue-400: #54b3e2;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openkfw/design-tokens",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
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": "^24.7.1",
|
|
42
42
|
"concurrently": "^9.2.1",
|
|
43
43
|
"deep-get-set-ts": "^1.1.2",
|
|
44
44
|
"eslint": "^9.37.0",
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"jsoneditor-cli": "^1.1.0",
|
|
47
47
|
"lodash": "4.17.21",
|
|
48
48
|
"prettier": "^3.6.2",
|
|
49
|
-
"style-dictionary": "^5.1.
|
|
49
|
+
"style-dictionary": "^5.1.1",
|
|
50
50
|
"tsx": "^4.20.6",
|
|
51
51
|
"typescript": "^5.9.3",
|
|
52
|
-
"typescript-eslint": "^8.
|
|
52
|
+
"typescript-eslint": "^8.46.0",
|
|
53
53
|
"npm-check-updates": "^19.0.0"
|
|
54
54
|
}
|
|
55
55
|
}
|