@openkfw/design-tokens 0.1.2 → 0.2.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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * KfW Design Tokens v0.1.1
2
+ * KfW Design Tokens v0.2.0
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],
@@ -545,16 +540,9 @@ export const KfwLineheightList = 1.5;
545
540
  export const KfwLineheightHeading = 1.3;
546
541
  export const KfwLineheightHeading5 = 1.333;
547
542
  export const KfwBorderradius = "0.25rem";
548
- export const KfwFocusringOutline = {
549
- color: {
550
- colorSpace: "srgb",
551
- components: [0, 0.2667, 0.4314],
552
- hex: "#00446e",
553
- },
554
- width: "0.125rem",
555
- style: "dashed",
556
- };
543
+ export const KfwFocusringOutlineWidth = "0.125rem";
557
544
  export const KfwFocusringOutlineOffset = "0.125rem";
545
+ export const KfwFocusringOutlineStyle = "dashed";
558
546
  export const KfwFontweight = 400;
559
547
  export const KfwFontweightHeading = 500;
560
548
  export const KfwBreakpointMobile = "37.5rem";
@@ -1,5 +1,5 @@
1
1
 
2
- // KfW Design Tokens v0.1.1
2
+ // KfW Design Tokens v0.2.0
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;
@@ -242,8 +241,9 @@ $kfw-lineheight-list: 1.5;
242
241
  $kfw-lineheight-heading: 1.3;
243
242
  $kfw-lineheight-heading-5: 1.333;
244
243
  $kfw-borderradius: 0.25rem;
245
- $kfw-focusring-outline: 0.125rem dashed #00446e;
244
+ $kfw-focusring-outline-width: 0.125rem;
246
245
  $kfw-focusring-outline-offset: 0.125rem;
246
+ $kfw-focusring-outline-style: dashed;
247
247
  $kfw-fontweight: 400;
248
248
  $kfw-fontweight-heading: 500;
249
249
  $kfw-breakpoint-mobile: 37.5rem;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * KfW Design Tokens v0.1.1
2
+ * KfW Design Tokens v0.2.0
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;
@@ -246,8 +245,9 @@
246
245
  --kfw-lineheight-heading: 1.3;
247
246
  --kfw-lineheight-heading-5: 1.333;
248
247
  --kfw-borderradius: 0.4rem;
249
- --kfw-focusring-outline: 0.2rem dashed #00446e;
248
+ --kfw-focusring-outline-width: 0.2rem;
250
249
  --kfw-focusring-outline-offset: 0.2rem;
250
+ --kfw-focusring-outline-style: dashed;
251
251
  --kfw-fontweight: 400;
252
252
  --kfw-fontweight-heading: 500;
253
253
  --kfw-breakpoint-mobile: 60rem;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * KfW Design Tokens v0.1.1
2
+ * KfW Design Tokens v0.2.0
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[];
@@ -541,12 +536,9 @@ export const KfwLineheightList: number;
541
536
  export const KfwLineheightHeading: number;
542
537
  export const KfwLineheightHeading5: number;
543
538
  export const KfwBorderradius: string;
544
- export const KfwFocusringOutline: {
545
- color: { colorSpace: string; components: number[]; hex: string };
546
- width: string;
547
- style: string;
548
- };
539
+ export const KfwFocusringOutlineWidth: string;
549
540
  export const KfwFocusringOutlineOffset: string;
541
+ export const KfwFocusringOutlineStyle: string;
550
542
  export const KfwFontweight: number;
551
543
  export const KfwFontweightHeading: number;
552
544
  export const KfwBreakpointMobile: string;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * KfW Design Tokens v0.1.1
2
+ * KfW Design Tokens v0.2.0
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],
@@ -545,16 +540,9 @@ export const KfwLineheightList = 1.5;
545
540
  export const KfwLineheightHeading = 1.3;
546
541
  export const KfwLineheightHeading5 = 1.333;
547
542
  export const KfwBorderradius = "0.4rem";
548
- export const KfwFocusringOutline = {
549
- color: {
550
- colorSpace: "srgb",
551
- components: [0, 0.2667, 0.4314],
552
- hex: "#00446e",
553
- },
554
- width: "0.2rem",
555
- style: "dashed",
556
- };
543
+ export const KfwFocusringOutlineWidth = "0.2rem";
557
544
  export const KfwFocusringOutlineOffset = "0.2rem";
545
+ export const KfwFocusringOutlineStyle = "dashed";
558
546
  export const KfwFontweight = 400;
559
547
  export const KfwFontweightHeading = 500;
560
548
  export const KfwBreakpointMobile = "60rem";
@@ -1,5 +1,5 @@
1
1
 
2
- // KfW Design Tokens v0.1.1
2
+ // KfW Design Tokens v0.2.0
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;
@@ -242,8 +241,9 @@ $kfw-lineheight-list: 1.5;
242
241
  $kfw-lineheight-heading: 1.3;
243
242
  $kfw-lineheight-heading-5: 1.333;
244
243
  $kfw-borderradius: 0.4rem;
245
- $kfw-focusring-outline: 0.2rem dashed #00446e;
244
+ $kfw-focusring-outline-width: 0.2rem;
246
245
  $kfw-focusring-outline-offset: 0.2rem;
246
+ $kfw-focusring-outline-style: dashed;
247
247
  $kfw-fontweight: 400;
248
248
  $kfw-fontweight-heading: 500;
249
249
  $kfw-breakpoint-mobile: 60rem;
package/package.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "@openkfw/design-tokens",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "description": "The source of truth for KfW-branded digital products.",
5
5
  "files": [
6
6
  "output",
7
7
  "tokens/tokens.json",
8
- "tokens/gen-tokens.dark.json5",
9
- "README.md"
8
+ "tokens/gen-tokens.dark.json5"
10
9
  ],
11
10
  "scripts": {
12
11
  "start": "concurrently \"npm run watch:extended\" \"npm run watch\"",
@@ -41,18 +40,18 @@
41
40
  "npm-check-updates": "^18.0.1"
42
41
  },
43
42
  "devDependencies": {
44
- "@eslint/js": "^9.33.0",
43
+ "@eslint/js": "^9.35.0",
45
44
  "@tsconfig/node22": "^22.0.2",
46
- "concurrently": "^9.2.0",
45
+ "concurrently": "^9.2.1",
47
46
  "deep-get-set-ts": "^1.1.1",
48
- "eslint": "^9.33.0",
47
+ "eslint": "^9.35.0",
49
48
  "json5": "^2.2.3",
50
49
  "jsoneditor-cli": "^1.1.0",
51
50
  "lodash": "4.17.21",
52
51
  "prettier": "^3.6.2",
53
- "style-dictionary": "^5.0.2",
54
- "tsx": "^4.20.4",
52
+ "style-dictionary": "^5.0.4",
53
+ "tsx": "^4.20.5",
55
54
  "typescript": "^5.9.2",
56
- "typescript-eslint": "^8.40.0"
55
+ "typescript-eslint": "^8.43.0"
57
56
  }
58
57
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly, this file was auto-generated.
3
- * By /root/IdeaProjects/design-tokens/tokens/extended/tokens/tokens.dark.json
3
+ * By /extended/tokens/tokens.dark.json
4
4
  */
5
5
 
6
6
  {
@@ -1142,9 +1142,6 @@
1142
1142
  $value: "{base.color.green.700}",
1143
1143
  },
1144
1144
  },
1145
- accent: {
1146
- $value: "{base.color.green.300}",
1147
- },
1148
1145
  opaque: {
1149
1146
  "white-90": {
1150
1147
  $value: "{base.color.white.90}",
@@ -1401,18 +1398,18 @@
1401
1398
  $value: "{base.borderradius.md}",
1402
1399
  },
1403
1400
  focusring: {
1404
- outline: {
1405
- $type: "border",
1406
- $value: {
1407
- color: "{semantic.color.fn.active}",
1408
- width: "{base.borderwidth.lg}",
1409
- style: "dashed",
1410
- },
1401
+ "outline-width": {
1402
+ $type: "dimension",
1403
+ $value: "{base.borderwidth.lg}",
1411
1404
  },
1412
1405
  "outline-offset": {
1413
1406
  $type: "dimension",
1414
1407
  $value: "{base.borderwidth.lg}",
1415
1408
  },
1409
+ "outline-style": {
1410
+ $type: "strokeStyle",
1411
+ $value: "dashed",
1412
+ },
1416
1413
  },
1417
1414
  fontweight: {
1418
1415
  $type: "fontWeight",
@@ -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}" },
@@ -413,11 +412,9 @@
413
412
  "$value": "{base.borderradius.md}"
414
413
  },
415
414
  "focusring": {
416
- "outline": {
417
- "$type": "border",
418
- "$value": { "color": "{semantic.color.fn.active}", "width": "{base.borderwidth.lg}", "style": "dashed" }
419
- },
420
- "outline-offset": { "$type": "dimension", "$value": "{base.borderwidth.lg}" }
415
+ "outline-width": { "$type": "dimension", "$value": "{base.borderwidth.lg}" },
416
+ "outline-offset": { "$type": "dimension", "$value": "{base.borderwidth.lg}" },
417
+ "outline-style": { "$type": "strokeStyle", "$value": "dashed" }
421
418
  },
422
419
  "fontweight": {
423
420
  "$type": "fontWeight",