@digdir/designsystemet 1.3.0 → 1.4.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.
@@ -14,6 +14,10 @@
14
14
  "brand3": "#1E98F5"
15
15
  },
16
16
  "neutral": "#1E2B3C"
17
+ },
18
+ "borderRadius": 4,
19
+ "typography": {
20
+ "fontFamily": "Inter"
17
21
  }
18
22
  },
19
23
  "altinn": {
@@ -870,11 +870,11 @@ import pc5 from "picocolors";
870
870
  // package.json
871
871
  var package_default = {
872
872
  name: "@digdir/designsystemet",
873
- version: "1.3.0",
873
+ version: "1.4.0",
874
874
  description: "CLI for Designsystemet",
875
875
  author: "Designsystemet team",
876
876
  engines: {
877
- node: ">=22.18.0"
877
+ node: ">=22.19.0"
878
878
  },
879
879
  repository: {
880
880
  type: "git",
@@ -944,8 +944,8 @@ var package_default = {
944
944
  picocolors: "^1.1.1",
945
945
  postcss: "^8.5.6",
946
946
  ramda: "^0.31.3",
947
- "style-dictionary": "^5.0.1",
948
- zod: "^4.0.17",
947
+ "style-dictionary": "^5.0.4",
948
+ zod: "^4.1.5",
949
949
  "zod-validation-error": "^4.0.1"
950
950
  },
951
951
  devDependencies: {
@@ -953,13 +953,13 @@ var package_default = {
953
953
  "@types/apca-w3": "^0.1.3",
954
954
  "@types/chroma-js": "^3.1.1",
955
955
  "@types/fs-extra": "^11.0.4",
956
- "@types/node": "^22.17.2",
956
+ "@types/node": "^22.18.0",
957
957
  "@types/object-hash": "^3.0.6",
958
958
  "@types/ramda": "^0.31.0",
959
959
  "fs-extra": "^11.3.1",
960
960
  tslib: "^2.8.1",
961
961
  tsup: "^8.5.0",
962
- tsx: "^4.20.4",
962
+ tsx: "^4.20.5",
963
963
  typescript: "^5.9.2"
964
964
  }
965
965
  };
package/dist/src/index.js CHANGED
@@ -2572,11 +2572,11 @@ import * as R7 from "ramda";
2572
2572
  // package.json
2573
2573
  var package_default = {
2574
2574
  name: "@digdir/designsystemet",
2575
- version: "1.3.0",
2575
+ version: "1.4.0",
2576
2576
  description: "CLI for Designsystemet",
2577
2577
  author: "Designsystemet team",
2578
2578
  engines: {
2579
- node: ">=22.18.0"
2579
+ node: ">=22.19.0"
2580
2580
  },
2581
2581
  repository: {
2582
2582
  type: "git",
@@ -2646,8 +2646,8 @@ var package_default = {
2646
2646
  picocolors: "^1.1.1",
2647
2647
  postcss: "^8.5.6",
2648
2648
  ramda: "^0.31.3",
2649
- "style-dictionary": "^5.0.1",
2650
- zod: "^4.0.17",
2649
+ "style-dictionary": "^5.0.4",
2650
+ zod: "^4.1.5",
2651
2651
  "zod-validation-error": "^4.0.1"
2652
2652
  },
2653
2653
  devDependencies: {
@@ -2655,13 +2655,13 @@ var package_default = {
2655
2655
  "@types/apca-w3": "^0.1.3",
2656
2656
  "@types/chroma-js": "^3.1.1",
2657
2657
  "@types/fs-extra": "^11.0.4",
2658
- "@types/node": "^22.17.2",
2658
+ "@types/node": "^22.18.0",
2659
2659
  "@types/object-hash": "^3.0.6",
2660
2660
  "@types/ramda": "^0.31.0",
2661
2661
  "fs-extra": "^11.3.1",
2662
2662
  tslib: "^2.8.1",
2663
2663
  tsup: "^8.5.0",
2664
- tsx: "^4.20.4",
2664
+ tsx: "^4.20.5",
2665
2665
  typescript: "^5.9.2"
2666
2666
  }
2667
2667
  };
@@ -2,13 +2,13 @@
2
2
  import path from "path";
3
3
  import pc4 from "picocolors";
4
4
 
5
- // ../theme/configs/designsystemet.config.json
6
- var designsystemet_config_default = {
7
- $schema: "../../cli/dist/config.schema.json",
8
- outDir: "../../design-tokens",
5
+ // configs/digdir.config.json
6
+ var digdir_config_default = {
7
+ $schema: "../dist/config.schema.json",
8
+ outDir: "./temp/digdir/design-tokens",
9
9
  clean: true,
10
10
  themes: {
11
- designsystemet: {
11
+ digdir: {
12
12
  colors: {
13
13
  main: {
14
14
  accent: "#0062BA"
@@ -24,6 +24,45 @@ var designsystemet_config_default = {
24
24
  typography: {
25
25
  fontFamily: "Inter"
26
26
  }
27
+ },
28
+ altinn: {
29
+ colors: {
30
+ main: {
31
+ accent: "#0062BA"
32
+ },
33
+ support: {
34
+ brand1: "#0162BA",
35
+ brand2: "#3F3161",
36
+ brand3: "#E02F4A"
37
+ },
38
+ neutral: "#1E2B3C"
39
+ }
40
+ },
41
+ uutilsynet: {
42
+ colors: {
43
+ main: {
44
+ accent: "#0062BA"
45
+ },
46
+ support: {
47
+ brand1: "#5B60D1",
48
+ brand2: "#FEA769",
49
+ brand3: "#5DA290"
50
+ },
51
+ neutral: "#1E2B3C"
52
+ }
53
+ },
54
+ portal: {
55
+ colors: {
56
+ main: {
57
+ accent: "#38628C"
58
+ },
59
+ support: {
60
+ brand1: "#D9ECFF",
61
+ brand2: "#FFCA99",
62
+ brand3: "#D96C79"
63
+ },
64
+ neutral: "#203040"
65
+ }
27
66
  }
28
67
  }
29
68
  };
@@ -3433,13 +3472,13 @@ var formatTheme = async (themeConfig) => {
3433
3472
  };
3434
3473
  formatTheme({
3435
3474
  name: "test",
3436
- borderRadius: designsystemet_config_default.themes.designsystemet.borderRadius,
3475
+ borderRadius: digdir_config_default.themes.digdir.borderRadius,
3437
3476
  colors: {
3438
- main: designsystemet_config_default.themes.designsystemet.colors.main,
3439
- support: designsystemet_config_default.themes.designsystemet.colors.support,
3440
- neutral: designsystemet_config_default.themes.designsystemet.colors.neutral
3477
+ main: digdir_config_default.themes.digdir.colors.main,
3478
+ support: digdir_config_default.themes.digdir.colors.support,
3479
+ neutral: digdir_config_default.themes.digdir.colors.neutral
3441
3480
  },
3442
- typography: designsystemet_config_default.themes.designsystemet.typography
3481
+ typography: digdir_config_default.themes.digdir.typography
3443
3482
  });
3444
3483
  export {
3445
3484
  formatTheme
@@ -49,11 +49,11 @@ import pc4 from "picocolors";
49
49
  // package.json
50
50
  var package_default = {
51
51
  name: "@digdir/designsystemet",
52
- version: "1.3.0",
52
+ version: "1.4.0",
53
53
  description: "CLI for Designsystemet",
54
54
  author: "Designsystemet team",
55
55
  engines: {
56
- node: ">=22.18.0"
56
+ node: ">=22.19.0"
57
57
  },
58
58
  repository: {
59
59
  type: "git",
@@ -123,8 +123,8 @@ var package_default = {
123
123
  picocolors: "^1.1.1",
124
124
  postcss: "^8.5.6",
125
125
  ramda: "^0.31.3",
126
- "style-dictionary": "^5.0.1",
127
- zod: "^4.0.17",
126
+ "style-dictionary": "^5.0.4",
127
+ zod: "^4.1.5",
128
128
  "zod-validation-error": "^4.0.1"
129
129
  },
130
130
  devDependencies: {
@@ -132,13 +132,13 @@ var package_default = {
132
132
  "@types/apca-w3": "^0.1.3",
133
133
  "@types/chroma-js": "^3.1.1",
134
134
  "@types/fs-extra": "^11.0.4",
135
- "@types/node": "^22.17.2",
135
+ "@types/node": "^22.18.0",
136
136
  "@types/object-hash": "^3.0.6",
137
137
  "@types/ramda": "^0.31.0",
138
138
  "fs-extra": "^11.3.1",
139
139
  tslib: "^2.8.1",
140
140
  tsup: "^8.5.0",
141
- tsx: "^4.20.4",
141
+ tsx: "^4.20.5",
142
142
  typescript: "^5.9.2"
143
143
  }
144
144
  };
@@ -1,11 +1,11 @@
1
1
  // package.json
2
2
  var package_default = {
3
3
  name: "@digdir/designsystemet",
4
- version: "1.3.0",
4
+ version: "1.4.0",
5
5
  description: "CLI for Designsystemet",
6
6
  author: "Designsystemet team",
7
7
  engines: {
8
- node: ">=22.18.0"
8
+ node: ">=22.19.0"
9
9
  },
10
10
  repository: {
11
11
  type: "git",
@@ -75,8 +75,8 @@ var package_default = {
75
75
  picocolors: "^1.1.1",
76
76
  postcss: "^8.5.6",
77
77
  ramda: "^0.31.3",
78
- "style-dictionary": "^5.0.1",
79
- zod: "^4.0.17",
78
+ "style-dictionary": "^5.0.4",
79
+ zod: "^4.1.5",
80
80
  "zod-validation-error": "^4.0.1"
81
81
  },
82
82
  devDependencies: {
@@ -84,13 +84,13 @@ var package_default = {
84
84
  "@types/apca-w3": "^0.1.3",
85
85
  "@types/chroma-js": "^3.1.1",
86
86
  "@types/fs-extra": "^11.0.4",
87
- "@types/node": "^22.17.2",
87
+ "@types/node": "^22.18.0",
88
88
  "@types/object-hash": "^3.0.6",
89
89
  "@types/ramda": "^0.31.0",
90
90
  "fs-extra": "^11.3.1",
91
91
  tslib: "^2.8.1",
92
92
  tsup: "^8.5.0",
93
- tsx: "^4.20.4",
93
+ tsx: "^4.20.5",
94
94
  typescript: "^5.9.2"
95
95
  }
96
96
  };
@@ -46,11 +46,11 @@ var readFile = async (path2, dry, allowFileNotFound) => {
46
46
  // package.json
47
47
  var package_default = {
48
48
  name: "@digdir/designsystemet",
49
- version: "1.3.0",
49
+ version: "1.4.0",
50
50
  description: "CLI for Designsystemet",
51
51
  author: "Designsystemet team",
52
52
  engines: {
53
- node: ">=22.18.0"
53
+ node: ">=22.19.0"
54
54
  },
55
55
  repository: {
56
56
  type: "git",
@@ -120,8 +120,8 @@ var package_default = {
120
120
  picocolors: "^1.1.1",
121
121
  postcss: "^8.5.6",
122
122
  ramda: "^0.31.3",
123
- "style-dictionary": "^5.0.1",
124
- zod: "^4.0.17",
123
+ "style-dictionary": "^5.0.4",
124
+ zod: "^4.1.5",
125
125
  "zod-validation-error": "^4.0.1"
126
126
  },
127
127
  devDependencies: {
@@ -129,13 +129,13 @@ var package_default = {
129
129
  "@types/apca-w3": "^0.1.3",
130
130
  "@types/chroma-js": "^3.1.1",
131
131
  "@types/fs-extra": "^11.0.4",
132
- "@types/node": "^22.17.2",
132
+ "@types/node": "^22.18.0",
133
133
  "@types/object-hash": "^3.0.6",
134
134
  "@types/ramda": "^0.31.0",
135
135
  "fs-extra": "^11.3.1",
136
136
  tslib: "^2.8.1",
137
137
  tsup: "^8.5.0",
138
- tsx: "^4.20.4",
138
+ tsx: "^4.20.5",
139
139
  typescript: "^5.9.2"
140
140
  }
141
141
  };
@@ -2413,11 +2413,11 @@ import * as R7 from "ramda";
2413
2413
  // package.json
2414
2414
  var package_default = {
2415
2415
  name: "@digdir/designsystemet",
2416
- version: "1.3.0",
2416
+ version: "1.4.0",
2417
2417
  description: "CLI for Designsystemet",
2418
2418
  author: "Designsystemet team",
2419
2419
  engines: {
2420
- node: ">=22.18.0"
2420
+ node: ">=22.19.0"
2421
2421
  },
2422
2422
  repository: {
2423
2423
  type: "git",
@@ -2487,8 +2487,8 @@ var package_default = {
2487
2487
  picocolors: "^1.1.1",
2488
2488
  postcss: "^8.5.6",
2489
2489
  ramda: "^0.31.3",
2490
- "style-dictionary": "^5.0.1",
2491
- zod: "^4.0.17",
2490
+ "style-dictionary": "^5.0.4",
2491
+ zod: "^4.1.5",
2492
2492
  "zod-validation-error": "^4.0.1"
2493
2493
  },
2494
2494
  devDependencies: {
@@ -2496,13 +2496,13 @@ var package_default = {
2496
2496
  "@types/apca-w3": "^0.1.3",
2497
2497
  "@types/chroma-js": "^3.1.1",
2498
2498
  "@types/fs-extra": "^11.0.4",
2499
- "@types/node": "^22.17.2",
2499
+ "@types/node": "^22.18.0",
2500
2500
  "@types/object-hash": "^3.0.6",
2501
2501
  "@types/ramda": "^0.31.0",
2502
2502
  "fs-extra": "^11.3.1",
2503
2503
  tslib: "^2.8.1",
2504
2504
  tsup: "^8.5.0",
2505
- tsx: "^4.20.4",
2505
+ tsx: "^4.20.5",
2506
2506
  typescript: "^5.9.2"
2507
2507
  }
2508
2508
  };
@@ -2429,11 +2429,11 @@ import * as R7 from "ramda";
2429
2429
  // package.json
2430
2430
  var package_default = {
2431
2431
  name: "@digdir/designsystemet",
2432
- version: "1.3.0",
2432
+ version: "1.4.0",
2433
2433
  description: "CLI for Designsystemet",
2434
2434
  author: "Designsystemet team",
2435
2435
  engines: {
2436
- node: ">=22.18.0"
2436
+ node: ">=22.19.0"
2437
2437
  },
2438
2438
  repository: {
2439
2439
  type: "git",
@@ -2503,8 +2503,8 @@ var package_default = {
2503
2503
  picocolors: "^1.1.1",
2504
2504
  postcss: "^8.5.6",
2505
2505
  ramda: "^0.31.3",
2506
- "style-dictionary": "^5.0.1",
2507
- zod: "^4.0.17",
2506
+ "style-dictionary": "^5.0.4",
2507
+ zod: "^4.1.5",
2508
2508
  "zod-validation-error": "^4.0.1"
2509
2509
  },
2510
2510
  devDependencies: {
@@ -2512,13 +2512,13 @@ var package_default = {
2512
2512
  "@types/apca-w3": "^0.1.3",
2513
2513
  "@types/chroma-js": "^3.1.1",
2514
2514
  "@types/fs-extra": "^11.0.4",
2515
- "@types/node": "^22.17.2",
2515
+ "@types/node": "^22.18.0",
2516
2516
  "@types/object-hash": "^3.0.6",
2517
2517
  "@types/ramda": "^0.31.0",
2518
2518
  "fs-extra": "^11.3.1",
2519
2519
  tslib: "^2.8.1",
2520
2520
  tsup: "^8.5.0",
2521
- tsx: "^4.20.4",
2521
+ tsx: "^4.20.5",
2522
2522
  typescript: "^5.9.2"
2523
2523
  }
2524
2524
  };
@@ -4,11 +4,11 @@ import pc3 from "picocolors";
4
4
  // package.json
5
5
  var package_default = {
6
6
  name: "@digdir/designsystemet",
7
- version: "1.3.0",
7
+ version: "1.4.0",
8
8
  description: "CLI for Designsystemet",
9
9
  author: "Designsystemet team",
10
10
  engines: {
11
- node: ">=22.18.0"
11
+ node: ">=22.19.0"
12
12
  },
13
13
  repository: {
14
14
  type: "git",
@@ -78,8 +78,8 @@ var package_default = {
78
78
  picocolors: "^1.1.1",
79
79
  postcss: "^8.5.6",
80
80
  ramda: "^0.31.3",
81
- "style-dictionary": "^5.0.1",
82
- zod: "^4.0.17",
81
+ "style-dictionary": "^5.0.4",
82
+ zod: "^4.1.5",
83
83
  "zod-validation-error": "^4.0.1"
84
84
  },
85
85
  devDependencies: {
@@ -87,13 +87,13 @@ var package_default = {
87
87
  "@types/apca-w3": "^0.1.3",
88
88
  "@types/chroma-js": "^3.1.1",
89
89
  "@types/fs-extra": "^11.0.4",
90
- "@types/node": "^22.17.2",
90
+ "@types/node": "^22.18.0",
91
91
  "@types/object-hash": "^3.0.6",
92
92
  "@types/ramda": "^0.31.0",
93
93
  "fs-extra": "^11.3.1",
94
94
  tslib: "^2.8.1",
95
95
  tsup: "^8.5.0",
96
- tsx: "^4.20.4",
96
+ tsx: "^4.20.5",
97
97
  typescript: "^5.9.2"
98
98
  }
99
99
  };
@@ -5,11 +5,11 @@ import * as R from "ramda";
5
5
  // package.json
6
6
  var package_default = {
7
7
  name: "@digdir/designsystemet",
8
- version: "1.3.0",
8
+ version: "1.4.0",
9
9
  description: "CLI for Designsystemet",
10
10
  author: "Designsystemet team",
11
11
  engines: {
12
- node: ">=22.18.0"
12
+ node: ">=22.19.0"
13
13
  },
14
14
  repository: {
15
15
  type: "git",
@@ -79,8 +79,8 @@ var package_default = {
79
79
  picocolors: "^1.1.1",
80
80
  postcss: "^8.5.6",
81
81
  ramda: "^0.31.3",
82
- "style-dictionary": "^5.0.1",
83
- zod: "^4.0.17",
82
+ "style-dictionary": "^5.0.4",
83
+ zod: "^4.1.5",
84
84
  "zod-validation-error": "^4.0.1"
85
85
  },
86
86
  devDependencies: {
@@ -88,13 +88,13 @@ var package_default = {
88
88
  "@types/apca-w3": "^0.1.3",
89
89
  "@types/chroma-js": "^3.1.1",
90
90
  "@types/fs-extra": "^11.0.4",
91
- "@types/node": "^22.17.2",
91
+ "@types/node": "^22.18.0",
92
92
  "@types/object-hash": "^3.0.6",
93
93
  "@types/ramda": "^0.31.0",
94
94
  "fs-extra": "^11.3.1",
95
95
  tslib: "^2.8.1",
96
96
  tsup: "^8.5.0",
97
- tsx: "^4.20.4",
97
+ tsx: "^4.20.5",
98
98
  typescript: "^5.9.2"
99
99
  }
100
100
  };
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@digdir/designsystemet",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "CLI for Designsystemet",
5
5
  "author": "Designsystemet team",
6
6
  "engines": {
7
- "node": ">=22.18.0"
7
+ "node": ">=22.19.0"
8
8
  },
9
9
  "repository": {
10
10
  "type": "git",
@@ -50,8 +50,8 @@
50
50
  "picocolors": "^1.1.1",
51
51
  "postcss": "^8.5.6",
52
52
  "ramda": "^0.31.3",
53
- "style-dictionary": "^5.0.1",
54
- "zod": "^4.0.17",
53
+ "style-dictionary": "^5.0.4",
54
+ "zod": "^4.1.5",
55
55
  "zod-validation-error": "^4.0.1"
56
56
  },
57
57
  "devDependencies": {
@@ -59,13 +59,13 @@
59
59
  "@types/apca-w3": "^0.1.3",
60
60
  "@types/chroma-js": "^3.1.1",
61
61
  "@types/fs-extra": "^11.0.4",
62
- "@types/node": "^22.17.2",
62
+ "@types/node": "^22.18.0",
63
63
  "@types/object-hash": "^3.0.6",
64
64
  "@types/ramda": "^0.31.0",
65
65
  "fs-extra": "^11.3.1",
66
66
  "tslib": "^2.8.1",
67
67
  "tsup": "^8.5.0",
68
- "tsx": "^4.20.4",
68
+ "tsx": "^4.20.5",
69
69
  "typescript": "^5.9.2"
70
70
  },
71
71
  "scripts": {