@openkfw/design-tokens 0.1.2 → 0.1.3
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 +9 -7
- package/output/figma/kfw-design-tokens.light.json +0 -4
- package/output/json/kfw-design-tokens.light.json +0 -31
- package/output/penpot/kfw-design-tokens.light.json +0 -4
- package/output/web_next_16px/css/kfw-design-tokens.light.css +1 -2
- package/output/web_next_16px/js/kfw-design-tokens.light.d.ts +1 -6
- package/output/web_next_16px/js/kfw-design-tokens.light.js +1 -6
- package/output/web_next_16px/scss/kfw-design-tokens.light.scss +1 -2
- package/output/web_stable_10px/css/kfw-design-tokens.light.css +1 -2
- package/output/web_stable_10px/js/kfw-design-tokens.light.d.ts +1 -6
- package/output/web_stable_10px/js/kfw-design-tokens.light.js +1 -6
- package/output/web_stable_10px/scss/kfw-design-tokens.light.scss +1 -2
- package/package.json +5 -5
- package/tokens/gen-tokens.dark.json5 +0 -3
- package/tokens/tokens.json +0 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ The documentation for how to using design tokens is accessible only <a href="htt
|
|
|
6
6
|
|
|
7
7
|
 [](./LICENSE)   [](https://www.npmjs.com/package/@openkfw/design-tokens)
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## Customizing KfW Design Tokens for open source
|
|
10
10
|
|
|
11
11
|
Although the source code for KfW Design Tokens is free and available under the MPL 2.0 License, KfW fully reserves all rights to the KfW brand. To prevent users from getting confused about the source of a digital product or experience, there are strict restrictions on using the KfW brand and design, even when built into code that we provide. For any customization other than explicitly for the KfW, you must replace the KfW theme. To use KfW Design Tokens as open source software and customize it, please follow the instructions.
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ Although the source code for KfW Design Tokens is free and available under the M
|
|
|
14
14
|
|
|
15
15
|
Run the following command to install the Design Tokens:
|
|
16
16
|
|
|
17
|
-
```
|
|
17
|
+
```bash
|
|
18
18
|
npm install @openkfw/design-tokens
|
|
19
19
|
```
|
|
20
20
|
|
|
@@ -24,16 +24,18 @@ Import or use files inside the `output` folder, e.g.:
|
|
|
24
24
|
@import url("@openkfw/design-tokens/output/web_stable_10px/css/kfw-design-tokens.light.css");
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
## ❤️ Contributing
|
|
28
28
|
|
|
29
29
|
Our commitment to open source means that we are enabling - even encouraging - all interested parties to contribute.
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
## 📒 Licensing
|
|
32
32
|
|
|
33
33
|
Copyright (c) 2025 KfW
|
|
34
34
|
|
|
35
|
-
Licensed under the **Mozilla Public License 2.0 (MPL-2.0)** (the "License"); you may not use this file except in compliance with the License.
|
|
35
|
+
Licensed under the **Mozilla Public License 2.0 (MPL-2.0)** (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License by reviewing the file [LICENSE](./LICENSE) in the repository. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the [LICENSE](./LICENSE) for the specific language governing permissions and limitations under the License.
|
|
36
|
+
|
|
37
|
+
## 💁 FAQ
|
|
36
38
|
|
|
37
|
-
|
|
39
|
+
### How can I use breakpoint design tokens in Tailwind CSS?
|
|
38
40
|
|
|
39
|
-
|
|
41
|
+
In Tailwind CSS v3, you can easily add breakpoints by defining them in your tailwind.config.js file using JavaScript. In Tailwind CSS v4, if you want to use CSS variables with breakpoints, you may need to utilize a preprocessor like <a href="https://v3.tailwindcss.com/docs/using-with-preprocessors#using-sass-less-or-stylus">Sass</a>, as CSS variables and breakpoints do not work seamlessly together in that version.
|
|
@@ -5059,37 +5059,6 @@
|
|
|
5059
5059
|
]
|
|
5060
5060
|
}
|
|
5061
5061
|
},
|
|
5062
|
-
"accent": {
|
|
5063
|
-
"key": "{semantic.color.accent}",
|
|
5064
|
-
"$value": {
|
|
5065
|
-
"colorSpace": "srgb",
|
|
5066
|
-
"components": [
|
|
5067
|
-
0.7176,
|
|
5068
|
-
0.9765,
|
|
5069
|
-
0.6667
|
|
5070
|
-
],
|
|
5071
|
-
"hex": "#b7f9aa"
|
|
5072
|
-
},
|
|
5073
|
-
"filePath": "tokens/tokens.json",
|
|
5074
|
-
"isSource": true,
|
|
5075
|
-
"$type": "color",
|
|
5076
|
-
"original": {
|
|
5077
|
-
"$value": "{base.color.green.300}",
|
|
5078
|
-
"$type": "color",
|
|
5079
|
-
"key": "{semantic.color.accent}"
|
|
5080
|
-
},
|
|
5081
|
-
"name": "kfw-color-accent",
|
|
5082
|
-
"attributes": {
|
|
5083
|
-
"category": "semantic",
|
|
5084
|
-
"type": "color",
|
|
5085
|
-
"item": "accent"
|
|
5086
|
-
},
|
|
5087
|
-
"path": [
|
|
5088
|
-
"semantic",
|
|
5089
|
-
"color",
|
|
5090
|
-
"accent"
|
|
5091
|
-
]
|
|
5092
|
-
},
|
|
5093
5062
|
"opaque": {
|
|
5094
5063
|
"white-90": {
|
|
5095
5064
|
"key": "{semantic.color.opaque.white-90}",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* KfW Design Tokens v0.1.
|
|
2
|
+
* KfW Design Tokens v0.1.3
|
|
3
3
|
* Copyright 2025
|
|
4
4
|
* Licensed under MPL-2.0 (https://github.com/openkfw/design-tokens/blob/main/LICENSE)
|
|
5
5
|
*/
|
|
@@ -174,7 +174,6 @@
|
|
|
174
174
|
--kfw-color-background-light-green: #ecfded;
|
|
175
175
|
--kfw-color-background-dark-blue: #00375b;
|
|
176
176
|
--kfw-color-background-dark-green: #398357;
|
|
177
|
-
--kfw-color-accent: #b7f9aa;
|
|
178
177
|
--kfw-color-opaque-white-90: #ffffffe6;
|
|
179
178
|
--kfw-color-opaque-white-95: #fffffff2;
|
|
180
179
|
--kfw-color-opaque-gray-500-10: #41484c1a;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* KfW Design Tokens v0.1.
|
|
2
|
+
* KfW Design Tokens v0.1.3
|
|
3
3
|
* Copyright 2025
|
|
4
4
|
* Licensed under MPL-2.0 (https://github.com/openkfw/design-tokens/blob/main/LICENSE)
|
|
5
5
|
*/
|
|
@@ -352,11 +352,6 @@ export const KfwColorBackgroundDarkGreen: {
|
|
|
352
352
|
components: number[];
|
|
353
353
|
hex: string;
|
|
354
354
|
};
|
|
355
|
-
export const KfwColorAccent: {
|
|
356
|
-
colorSpace: string;
|
|
357
|
-
components: number[];
|
|
358
|
-
hex: string;
|
|
359
|
-
};
|
|
360
355
|
export const KfwColorOpaqueWhite90: {
|
|
361
356
|
colorSpace: string;
|
|
362
357
|
components: number[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* KfW Design Tokens v0.1.
|
|
2
|
+
* KfW Design Tokens v0.1.3
|
|
3
3
|
* Copyright 2025
|
|
4
4
|
* Licensed under MPL-2.0 (https://github.com/openkfw/design-tokens/blob/main/LICENSE)
|
|
5
5
|
*/
|
|
@@ -354,11 +354,6 @@ export const KfwColorBackgroundDarkGreen = {
|
|
|
354
354
|
components: [0.2235, 0.5137, 0.3412],
|
|
355
355
|
hex: "#398357",
|
|
356
356
|
};
|
|
357
|
-
export const KfwColorAccent = {
|
|
358
|
-
colorSpace: "srgb",
|
|
359
|
-
components: [0.7176, 0.9765, 0.6667],
|
|
360
|
-
hex: "#b7f9aa",
|
|
361
|
-
};
|
|
362
357
|
export const KfwColorOpaqueWhite90 = {
|
|
363
358
|
colorSpace: "srgb",
|
|
364
359
|
components: [1, 1, 1],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
// KfW Design Tokens v0.1.
|
|
2
|
+
// KfW Design Tokens v0.1.3
|
|
3
3
|
// Copyright 2025
|
|
4
4
|
// Licensed under MPL-2.0 (https://github.com/openkfw/design-tokens/blob/main/LICENSE)
|
|
5
5
|
|
|
@@ -170,7 +170,6 @@ $kfw-color-background-light-blue: #e9f5fb;
|
|
|
170
170
|
$kfw-color-background-light-green: #ecfded;
|
|
171
171
|
$kfw-color-background-dark-blue: #00375b;
|
|
172
172
|
$kfw-color-background-dark-green: #398357;
|
|
173
|
-
$kfw-color-accent: #b7f9aa;
|
|
174
173
|
$kfw-color-opaque-white-90: #ffffffe6;
|
|
175
174
|
$kfw-color-opaque-white-95: #fffffff2;
|
|
176
175
|
$kfw-color-opaque-gray-500-10: #41484c1a;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* KfW Design Tokens v0.1.
|
|
2
|
+
* KfW Design Tokens v0.1.3
|
|
3
3
|
* Copyright 2025
|
|
4
4
|
* Licensed under MPL-2.0 (https://github.com/openkfw/design-tokens/blob/main/LICENSE)
|
|
5
5
|
*/
|
|
@@ -174,7 +174,6 @@
|
|
|
174
174
|
--kfw-color-background-light-green: #ecfded;
|
|
175
175
|
--kfw-color-background-dark-blue: #00375b;
|
|
176
176
|
--kfw-color-background-dark-green: #398357;
|
|
177
|
-
--kfw-color-accent: #b7f9aa;
|
|
178
177
|
--kfw-color-opaque-white-90: #ffffffe6;
|
|
179
178
|
--kfw-color-opaque-white-95: #fffffff2;
|
|
180
179
|
--kfw-color-opaque-gray-500-10: #41484c1a;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* KfW Design Tokens v0.1.
|
|
2
|
+
* KfW Design Tokens v0.1.3
|
|
3
3
|
* Copyright 2025
|
|
4
4
|
* Licensed under MPL-2.0 (https://github.com/openkfw/design-tokens/blob/main/LICENSE)
|
|
5
5
|
*/
|
|
@@ -352,11 +352,6 @@ export const KfwColorBackgroundDarkGreen: {
|
|
|
352
352
|
components: number[];
|
|
353
353
|
hex: string;
|
|
354
354
|
};
|
|
355
|
-
export const KfwColorAccent: {
|
|
356
|
-
colorSpace: string;
|
|
357
|
-
components: number[];
|
|
358
|
-
hex: string;
|
|
359
|
-
};
|
|
360
355
|
export const KfwColorOpaqueWhite90: {
|
|
361
356
|
colorSpace: string;
|
|
362
357
|
components: number[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* KfW Design Tokens v0.1.
|
|
2
|
+
* KfW Design Tokens v0.1.3
|
|
3
3
|
* Copyright 2025
|
|
4
4
|
* Licensed under MPL-2.0 (https://github.com/openkfw/design-tokens/blob/main/LICENSE)
|
|
5
5
|
*/
|
|
@@ -354,11 +354,6 @@ export const KfwColorBackgroundDarkGreen = {
|
|
|
354
354
|
components: [0.2235, 0.5137, 0.3412],
|
|
355
355
|
hex: "#398357",
|
|
356
356
|
};
|
|
357
|
-
export const KfwColorAccent = {
|
|
358
|
-
colorSpace: "srgb",
|
|
359
|
-
components: [0.7176, 0.9765, 0.6667],
|
|
360
|
-
hex: "#b7f9aa",
|
|
361
|
-
};
|
|
362
357
|
export const KfwColorOpaqueWhite90 = {
|
|
363
358
|
colorSpace: "srgb",
|
|
364
359
|
components: [1, 1, 1],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
// KfW Design Tokens v0.1.
|
|
2
|
+
// KfW Design Tokens v0.1.3
|
|
3
3
|
// Copyright 2025
|
|
4
4
|
// Licensed under MPL-2.0 (https://github.com/openkfw/design-tokens/blob/main/LICENSE)
|
|
5
5
|
|
|
@@ -170,7 +170,6 @@ $kfw-color-background-light-blue: #e9f5fb;
|
|
|
170
170
|
$kfw-color-background-light-green: #ecfded;
|
|
171
171
|
$kfw-color-background-dark-blue: #00375b;
|
|
172
172
|
$kfw-color-background-dark-green: #398357;
|
|
173
|
-
$kfw-color-accent: #b7f9aa;
|
|
174
173
|
$kfw-color-opaque-white-90: #ffffffe6;
|
|
175
174
|
$kfw-color-opaque-white-95: #fffffff2;
|
|
176
175
|
$kfw-color-opaque-gray-500-10: #41484c1a;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openkfw/design-tokens",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "The source of truth for KfW-branded digital products.",
|
|
5
5
|
"files": [
|
|
6
6
|
"output",
|
|
@@ -41,17 +41,17 @@
|
|
|
41
41
|
"npm-check-updates": "^18.0.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@eslint/js": "^9.
|
|
44
|
+
"@eslint/js": "^9.34.0",
|
|
45
45
|
"@tsconfig/node22": "^22.0.2",
|
|
46
|
-
"concurrently": "^9.2.
|
|
46
|
+
"concurrently": "^9.2.1",
|
|
47
47
|
"deep-get-set-ts": "^1.1.1",
|
|
48
|
-
"eslint": "^9.
|
|
48
|
+
"eslint": "^9.34.0",
|
|
49
49
|
"json5": "^2.2.3",
|
|
50
50
|
"jsoneditor-cli": "^1.1.0",
|
|
51
51
|
"lodash": "4.17.21",
|
|
52
52
|
"prettier": "^3.6.2",
|
|
53
53
|
"style-dictionary": "^5.0.2",
|
|
54
|
-
"tsx": "^4.20.
|
|
54
|
+
"tsx": "^4.20.5",
|
|
55
55
|
"typescript": "^5.9.2",
|
|
56
56
|
"typescript-eslint": "^8.40.0"
|
|
57
57
|
}
|
package/tokens/tokens.json
CHANGED
|
@@ -292,7 +292,6 @@
|
|
|
292
292
|
"dark-blue": { "$value": "{base.color.blue.800}" },
|
|
293
293
|
"dark-green": { "$value": "{base.color.green.700}" }
|
|
294
294
|
},
|
|
295
|
-
"accent": { "$value": "{base.color.green.300}" },
|
|
296
295
|
"opaque": {
|
|
297
296
|
"white-90": { "$value": "{base.color.white.90}" },
|
|
298
297
|
"white-95": { "$value": "{base.color.white.95}" },
|