@digdir/designsystemet 1.0.0-next.45 → 1.0.0-next.47

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.
Files changed (85) hide show
  1. package/dist/bin/config.d.ts +162 -0
  2. package/dist/bin/config.d.ts.map +1 -0
  3. package/dist/bin/config.js +56 -0
  4. package/dist/bin/designsystemet.js +140 -29
  5. package/dist/bin/options.d.ts +16 -0
  6. package/dist/bin/options.d.ts.map +1 -0
  7. package/dist/bin/options.js +12 -0
  8. package/dist/config.schema.json +82 -0
  9. package/dist/src/build-scripts/createJsonSchema.d.ts +2 -0
  10. package/dist/src/build-scripts/createJsonSchema.d.ts.map +1 -0
  11. package/dist/src/build-scripts/createJsonSchema.js +15 -0
  12. package/dist/src/tokens/build/configs.d.ts.map +1 -1
  13. package/dist/src/tokens/build/configs.js +23 -12
  14. package/dist/src/tokens/build/formats/css.d.ts +4 -2
  15. package/dist/src/tokens/build/formats/css.d.ts.map +1 -1
  16. package/dist/src/tokens/build/formats/css.js +20 -12
  17. package/dist/src/tokens/build/formats/js-tokens.d.ts.map +1 -1
  18. package/dist/src/tokens/build/formats/js-tokens.js +7 -4
  19. package/dist/src/tokens/build/transformers.d.ts +0 -1
  20. package/dist/src/tokens/build/transformers.d.ts.map +1 -1
  21. package/dist/src/tokens/build/transformers.js +1 -13
  22. package/dist/src/tokens/build.d.ts +3 -1
  23. package/dist/src/tokens/build.d.ts.map +1 -1
  24. package/dist/src/tokens/build.js +5 -2
  25. package/dist/src/tokens/create.d.ts +16 -11
  26. package/dist/src/tokens/create.d.ts.map +1 -1
  27. package/dist/src/tokens/create.js +15 -5
  28. package/dist/src/tokens/design-tokens/default/Figma/components.json +3 -3
  29. package/dist/src/tokens/design-tokens/default/primitives/globals.json +1 -1
  30. package/dist/src/tokens/design-tokens/default/primitives/modes/size/global.json +21 -21
  31. package/dist/src/tokens/design-tokens/default/semantic/style.json +109 -27
  32. package/dist/src/tokens/design-tokens/template/$themes.json +63 -63
  33. package/dist/src/tokens/design-tokens/template/semantic/color-base-file.json +1 -1
  34. package/dist/src/tokens/design-tokens/template/themes/theme-base-file.json +8 -8
  35. package/dist/src/tokens/index.d.ts +2 -1
  36. package/dist/src/tokens/index.d.ts.map +1 -1
  37. package/dist/src/tokens/index.js +2 -2
  38. package/dist/src/tokens/types.d.ts +2 -8
  39. package/dist/src/tokens/types.d.ts.map +1 -1
  40. package/dist/src/tokens/utils.d.ts +2 -0
  41. package/dist/src/tokens/utils.d.ts.map +1 -1
  42. package/dist/src/tokens/utils.js +11 -0
  43. package/dist/src/tokens/write.d.ts +3 -0
  44. package/dist/src/tokens/write.d.ts.map +1 -1
  45. package/dist/src/tokens/write.js +6 -2
  46. package/package.json +23 -17
  47. package/dist/src/init/createTokensPackage.d.ts +0 -5
  48. package/dist/src/init/createTokensPackage.d.ts.map +0 -1
  49. package/dist/src/init/createTokensPackage.js +0 -273
  50. package/dist/src/init/generateMetadataJson.d.ts +0 -6
  51. package/dist/src/init/generateMetadataJson.d.ts.map +0 -1
  52. package/dist/src/init/generateMetadataJson.js +0 -24
  53. package/dist/src/init/generateThemesJson.d.ts +0 -3
  54. package/dist/src/init/generateThemesJson.d.ts.map +0 -1
  55. package/dist/src/init/generateThemesJson.js +0 -103
  56. package/dist/src/init/index.d.ts +0 -3
  57. package/dist/src/init/index.d.ts.map +0 -1
  58. package/dist/src/init/index.js +0 -10
  59. package/dist/src/init/nextStepsMarkdown.d.ts +0 -3
  60. package/dist/src/init/nextStepsMarkdown.d.ts.map +0 -1
  61. package/dist/src/init/nextStepsMarkdown.js +0 -92
  62. package/dist/src/init/template/default-files/README.md +0 -10
  63. package/dist/src/init/template/default-files/design-tokens/Figma/components.json +0 -22
  64. package/dist/src/init/template/default-files/design-tokens/README.md +0 -3
  65. package/dist/src/init/template/default-files/design-tokens/primitives/globals.json +0 -161
  66. package/dist/src/init/template/default-files/design-tokens/primitives/size/default.json +0 -175
  67. package/dist/src/init/template/default-files/design-tokens/semantic/color.json +0 -572
  68. package/dist/src/init/template/default-files/design-tokens/semantic/style.json +0 -564
  69. package/dist/src/init/template/default-files/design-tokens/themes/theme.json +0 -334
  70. package/dist/src/init/template/template-files/design-tokens/primitives/modes/colors/contrast/global.json +0 -376
  71. package/dist/src/init/template/template-files/design-tokens/primitives/modes/colors/contrast/theme-template.json +0 -314
  72. package/dist/src/init/template/template-files/design-tokens/primitives/modes/colors/dark/global.json +0 -376
  73. package/dist/src/init/template/template-files/design-tokens/primitives/modes/colors/dark/theme-template.json +0 -314
  74. package/dist/src/init/template/template-files/design-tokens/primitives/modes/colors/light/global.json +0 -376
  75. package/dist/src/init/template/template-files/design-tokens/primitives/modes/colors/light/theme-template.json +0 -314
  76. package/dist/src/init/template/template-files/design-tokens/primitives/modes/typography/primary/theme-template.json +0 -30
  77. package/dist/src/init/template/template-files/design-tokens/primitives/modes/typography/secondary/theme-template.json +0 -30
  78. package/dist/src/init/template/template-files/design-tokens/themes/theme-template.json +0 -334
  79. package/dist/src/init/template/template-files/package.json +0 -24
  80. package/dist/src/init/utils.d.ts +0 -4
  81. package/dist/src/init/utils.d.ts.map +0 -1
  82. package/dist/src/init/utils.js +0 -15
  83. package/dist/src/tokens/build/utils/noCase.d.ts +0 -11
  84. package/dist/src/tokens/build/utils/noCase.d.ts.map +0 -1
  85. package/dist/src/tokens/build/utils/noCase.js +0 -24
@@ -1,314 +0,0 @@
1
- {
2
- "<theme>": {
3
- "accent": {
4
- "1": {
5
- "$type": "color",
6
- "$value": "#001c36"
7
- },
8
- "2": {
9
- "$type": "color",
10
- "$value": "#002545"
11
- },
12
- "3": {
13
- "$type": "color",
14
- "$value": "#00315b"
15
- },
16
- "4": {
17
- "$type": "color",
18
- "$value": "#013f75"
19
- },
20
- "5": {
21
- "$type": "color",
22
- "$value": "#014b8e"
23
- },
24
- "6": {
25
- "$type": "color",
26
- "$value": "#01539b"
27
- },
28
- "7": {
29
- "$type": "color",
30
- "$value": "#1971c0"
31
- },
32
- "8": {
33
- "$type": "color",
34
- "$value": "#9bc2e4"
35
- },
36
- "9": {
37
- "$type": "color",
38
- "$value": "#4b90ce"
39
- },
40
- "10": {
41
- "$type": "color",
42
- "$value": "#277ac4"
43
- },
44
- "11": {
45
- "$type": "color",
46
- "$value": "#0163ba"
47
- },
48
- "12": {
49
- "$type": "color",
50
- "$value": "#72a8d9"
51
- },
52
- "13": {
53
- "$type": "color",
54
- "$value": "#d1e3f3"
55
- },
56
- "contrast-1": {
57
- "$type": "color",
58
- "$value": "#000000"
59
- },
60
- "contrast-2": {
61
- "$type": "color",
62
- "$value": "#0d1823"
63
- }
64
- },
65
- "neutral": {
66
- "1": {
67
- "$type": "color",
68
- "$value": "#131c27"
69
- },
70
- "2": {
71
- "$type": "color",
72
- "$value": "#192433"
73
- },
74
- "3": {
75
- "$type": "color",
76
- "$value": "#243142"
77
- },
78
- "4": {
79
- "$type": "color",
80
- "$value": "#333e4e"
81
- },
82
- "5": {
83
- "$type": "color",
84
- "$value": "#424d5b"
85
- },
86
- "6": {
87
- "$type": "color",
88
- "$value": "#495361"
89
- },
90
- "7": {
91
- "$type": "color",
92
- "$value": "#67707c"
93
- },
94
- "8": {
95
- "$type": "color",
96
- "$value": "#bbbfc4"
97
- },
98
- "9": {
99
- "$type": "color",
100
- "$value": "#a6abb2"
101
- },
102
- "10": {
103
- "$type": "color",
104
- "$value": "#90969e"
105
- },
106
- "11": {
107
- "$type": "color",
108
- "$value": "#7a818c"
109
- },
110
- "12": {
111
- "$type": "color",
112
- "$value": "#9ea3ab"
113
- },
114
- "13": {
115
- "$type": "color",
116
- "$value": "#e1e3e5"
117
- },
118
- "contrast-1": {
119
- "$type": "color",
120
- "$value": "#000000"
121
- },
122
- "contrast-2": {
123
- "$type": "color",
124
- "$value": "#1b1b1d"
125
- }
126
- },
127
- "brand1": {
128
- "1": {
129
- "$type": "color",
130
- "$value": "#2f1213"
131
- },
132
- "2": {
133
- "$type": "color",
134
- "$value": "#3e1819"
135
- },
136
- "3": {
137
- "$type": "color",
138
- "$value": "#522022"
139
- },
140
- "4": {
141
- "$type": "color",
142
- "$value": "#68292b"
143
- },
144
- "5": {
145
- "$type": "color",
146
- "$value": "#7f3234"
147
- },
148
- "6": {
149
- "$type": "color",
150
- "$value": "#8b3639"
151
- },
152
- "7": {
153
- "$type": "color",
154
- "$value": "#bc494c"
155
- },
156
- "8": {
157
- "$type": "color",
158
- "$value": "#f9a9ab"
159
- },
160
- "9": {
161
- "$type": "color",
162
- "$value": "#9f3e41"
163
- },
164
- "10": {
165
- "$type": "color",
166
- "$value": "#7f3234"
167
- },
168
- "11": {
169
- "$type": "color",
170
- "$value": "#612628"
171
- },
172
- "12": {
173
- "$type": "color",
174
- "$value": "#f58083"
175
- },
176
- "13": {
177
- "$type": "color",
178
- "$value": "#fcdbdc"
179
- },
180
- "contrast-1": {
181
- "$type": "color",
182
- "$value": "#ffffff"
183
- },
184
- "contrast-2": {
185
- "$type": "color",
186
- "$value": "#fefefe"
187
- }
188
- },
189
- "brand2": {
190
- "1": {
191
- "$type": "color",
192
- "$value": "#231a05"
193
- },
194
- "2": {
195
- "$type": "color",
196
- "$value": "#2d2206"
197
- },
198
- "3": {
199
- "$type": "color",
200
- "$value": "#3d2e09"
201
- },
202
- "4": {
203
- "$type": "color",
204
- "$value": "#4f3a0b"
205
- },
206
- "5": {
207
- "$type": "color",
208
- "$value": "#60470e"
209
- },
210
- "6": {
211
- "$type": "color",
212
- "$value": "#694d0f"
213
- },
214
- "7": {
215
- "$type": "color",
216
- "$value": "#8e6914"
217
- },
218
- "8": {
219
- "$type": "color",
220
- "$value": "#e8b744"
221
- },
222
- "9": {
223
- "$type": "color",
224
- "$value": "#523c0b"
225
- },
226
- "10": {
227
- "$type": "color",
228
- "$value": "#694d0f"
229
- },
230
- "11": {
231
- "$type": "color",
232
- "$value": "#826112"
233
- },
234
- "12": {
235
- "$type": "color",
236
- "$value": "#d09a1d"
237
- },
238
- "13": {
239
- "$type": "color",
240
- "$value": "#f5dfad"
241
- },
242
- "contrast-1": {
243
- "$type": "color",
244
- "$value": "#ffffff"
245
- },
246
- "contrast-2": {
247
- "$type": "color",
248
- "$value": "#ddd9cf"
249
- }
250
- },
251
- "brand3": {
252
- "1": {
253
- "$type": "color",
254
- "$value": "#061d30"
255
- },
256
- "2": {
257
- "$type": "color",
258
- "$value": "#07253c"
259
- },
260
- "3": {
261
- "$type": "color",
262
- "$value": "#0a3251"
263
- },
264
- "4": {
265
- "$type": "color",
266
- "$value": "#0d4068"
267
- },
268
- "5": {
269
- "$type": "color",
270
- "$value": "#0f4e7f"
271
- },
272
- "6": {
273
- "$type": "color",
274
- "$value": "#11558a"
275
- },
276
- "7": {
277
- "$type": "color",
278
- "$value": "#1773b9"
279
- },
280
- "8": {
281
- "$type": "color",
282
- "$value": "#81c5f9"
283
- },
284
- "9": {
285
- "$type": "color",
286
- "$value": "#13609a"
287
- },
288
- "10": {
289
- "$type": "color",
290
- "$value": "#0f4c7a"
291
- },
292
- "11": {
293
- "$type": "color",
294
- "$value": "#0b3a5d"
295
- },
296
- "12": {
297
- "$type": "color",
298
- "$value": "#44aaf7"
299
- },
300
- "13": {
301
- "$type": "color",
302
- "$value": "#c8e6fd"
303
- },
304
- "contrast-1": {
305
- "$type": "color",
306
- "$value": "#ffffff"
307
- },
308
- "contrast-2": {
309
- "$type": "color",
310
- "$value": "#fafcfd"
311
- }
312
- }
313
- }
314
- }
@@ -1,376 +0,0 @@
1
- {
2
- "global": {
3
- "blue": {
4
- "1": {
5
- "$type": "color",
6
- "$value": "#fefeff"
7
- },
8
- "2": {
9
- "$type": "color",
10
- "$value": "#edf5fa"
11
- },
12
- "3": {
13
- "$type": "color",
14
- "$value": "#d3e5f4"
15
- },
16
- "4": {
17
- "$type": "color",
18
- "$value": "#b7d5ed"
19
- },
20
- "5": {
21
- "$type": "color",
22
- "$value": "#9bc5e5"
23
- },
24
- "6": {
25
- "$type": "color",
26
- "$value": "#94c1e3"
27
- },
28
- "7": {
29
- "$type": "color",
30
- "$value": "#2f86c9"
31
- },
32
- "8": {
33
- "$type": "color",
34
- "$value": "#075089"
35
- },
36
- "9": {
37
- "$type": "color",
38
- "$value": "#0A71C0"
39
- },
40
- "10": {
41
- "$type": "color",
42
- "$value": "#085ea0"
43
- },
44
- "11": {
45
- "$type": "color",
46
- "$value": "#074b80"
47
- },
48
- "12": {
49
- "$type": "color",
50
- "$value": "#0966ac"
51
- },
52
- "13": {
53
- "$type": "color",
54
- "$value": "#042d4d"
55
- },
56
- "contrast-1": {
57
- "$type": "color",
58
- "$value": "#ffffff"
59
- },
60
- "contrast-2": {
61
- "$type": "color",
62
- "$value": "#f3f8fc"
63
- }
64
- },
65
- "green": {
66
- "1": {
67
- "$type": "color",
68
- "$value": "#fcfefc"
69
- },
70
- "2": {
71
- "$type": "color",
72
- "$value": "#ecf6ed"
73
- },
74
- "3": {
75
- "$type": "color",
76
- "$value": "#cfe9d3"
77
- },
78
- "4": {
79
- "$type": "color",
80
- "$value": "#b3dcb8"
81
- },
82
- "5": {
83
- "$type": "color",
84
- "$value": "#95ce9d"
85
- },
86
- "6": {
87
- "$type": "color",
88
- "$value": "#8bca94"
89
- },
90
- "7": {
91
- "$type": "color",
92
- "$value": "#189528"
93
- },
94
- "8": {
95
- "$type": "color",
96
- "$value": "#045a10"
97
- },
98
- "9": {
99
- "$type": "color",
100
- "$value": "#078D19"
101
- },
102
- "10": {
103
- "$type": "color",
104
- "$value": "#067615"
105
- },
106
- "11": {
107
- "$type": "color",
108
- "$value": "#056011"
109
- },
110
- "12": {
111
- "$type": "color",
112
- "$value": "#067314"
113
- },
114
- "13": {
115
- "$type": "color",
116
- "$value": "#033409"
117
- },
118
- "contrast-1": {
119
- "$type": "color",
120
- "$value": "#000000"
121
- },
122
- "contrast-2": {
123
- "$type": "color",
124
- "$value": "#000401"
125
- }
126
- },
127
- "orange": {
128
- "1": {
129
- "$type": "color",
130
- "$value": "#fffefd"
131
- },
132
- "2": {
133
- "$type": "color",
134
- "$value": "#fbf1ec"
135
- },
136
- "3": {
137
- "$type": "color",
138
- "$value": "#f4ddd0"
139
- },
140
- "4": {
141
- "$type": "color",
142
- "$value": "#eecab7"
143
- },
144
- "5": {
145
- "$type": "color",
146
- "$value": "#e7b69c"
147
- },
148
- "6": {
149
- "$type": "color",
150
- "$value": "#e5b094"
151
- },
152
- "7": {
153
- "$type": "color",
154
- "$value": "#cc632b"
155
- },
156
- "8": {
157
- "$type": "color",
158
- "$value": "#7e3a15"
159
- },
160
- "9": {
161
- "$type": "color",
162
- "$value": "#CA5C21"
163
- },
164
- "10": {
165
- "$type": "color",
166
- "$value": "#a94d1c"
167
- },
168
- "11": {
169
- "$type": "color",
170
- "$value": "#8a3f17"
171
- },
172
- "12": {
173
- "$type": "color",
174
- "$value": "#a1491a"
175
- },
176
- "13": {
177
- "$type": "color",
178
- "$value": "#47210c"
179
- },
180
- "contrast-1": {
181
- "$type": "color",
182
- "$value": "#000000"
183
- },
184
- "contrast-2": {
185
- "$type": "color",
186
- "$value": "#0d0602"
187
- }
188
- },
189
- "purple": {
190
- "1": {
191
- "$type": "color",
192
- "$value": "#fefefe"
193
- },
194
- "2": {
195
- "$type": "color",
196
- "$value": "#f5f2f9"
197
- },
198
- "3": {
199
- "$type": "color",
200
- "$value": "#e7dfef"
201
- },
202
- "4": {
203
- "$type": "color",
204
- "$value": "#d9cce6"
205
- },
206
- "5": {
207
- "$type": "color",
208
- "$value": "#ccbadd"
209
- },
210
- "6": {
211
- "$type": "color",
212
- "$value": "#c7b4da"
213
- },
214
- "7": {
215
- "$type": "color",
216
- "$value": "#9572b9"
217
- },
218
- "8": {
219
- "$type": "color",
220
- "$value": "#663399"
221
- },
222
- "9": {
223
- "$type": "color",
224
- "$value": "#663299"
225
- },
226
- "10": {
227
- "$type": "color",
228
- "$value": "#4f2777"
229
- },
230
- "11": {
231
- "$type": "color",
232
- "$value": "#381b54"
233
- },
234
- "12": {
235
- "$type": "color",
236
- "$value": "#7b4ea7"
237
- },
238
- "13": {
239
- "$type": "color",
240
- "$value": "#3b1d59"
241
- },
242
- "contrast-1": {
243
- "$type": "color",
244
- "$value": "#ffffff"
245
- },
246
- "contrast-2": {
247
- "$type": "color",
248
- "$value": "#eee8f3"
249
- }
250
- },
251
- "red": {
252
- "1": {
253
- "$type": "color",
254
- "$value": "#fffefe"
255
- },
256
- "2": {
257
- "$type": "color",
258
- "$value": "#fbf1f1"
259
- },
260
- "3": {
261
- "$type": "color",
262
- "$value": "#f5dcdc"
263
- },
264
- "4": {
265
- "$type": "color",
266
- "$value": "#f0c7c7"
267
- },
268
- "5": {
269
- "$type": "color",
270
- "$value": "#eab3b3"
271
- },
272
- "6": {
273
- "$type": "color",
274
- "$value": "#e8acac"
275
- },
276
- "7": {
277
- "$type": "color",
278
- "$value": "#d25b5b"
279
- },
280
- "8": {
281
- "$type": "color",
282
- "$value": "#9a1616"
283
- },
284
- "9": {
285
- "$type": "color",
286
- "$value": "#C01B1B"
287
- },
288
- "10": {
289
- "$type": "color",
290
- "$value": "#9a1616"
291
- },
292
- "11": {
293
- "$type": "color",
294
- "$value": "#771111"
295
- },
296
- "12": {
297
- "$type": "color",
298
- "$value": "#c22020"
299
- },
300
- "13": {
301
- "$type": "color",
302
- "$value": "#5a0d0d"
303
- },
304
- "contrast-1": {
305
- "$type": "color",
306
- "$value": "#ffffff"
307
- },
308
- "contrast-2": {
309
- "$type": "color",
310
- "$value": "#f6dfdf"
311
- }
312
- },
313
- "yellow": {
314
- "1": {
315
- "$type": "color",
316
- "$value": "#fffefc"
317
- },
318
- "2": {
319
- "$type": "color",
320
- "$value": "#fbf2d3"
321
- },
322
- "3": {
323
- "$type": "color",
324
- "$value": "#f5e19b"
325
- },
326
- "4": {
327
- "$type": "color",
328
- "$value": "#efcf5d"
329
- },
330
- "5": {
331
- "$type": "color",
332
- "$value": "#e6bc27"
333
- },
334
- "6": {
335
- "$type": "color",
336
- "$value": "#e0b726"
337
- },
338
- "7": {
339
- "$type": "color",
340
- "$value": "#9a7e1a"
341
- },
342
- "8": {
343
- "$type": "color",
344
- "$value": "#5d4c10"
345
- },
346
- "9": {
347
- "$type": "color",
348
- "$value": "#EABF28"
349
- },
350
- "10": {
351
- "$type": "color",
352
- "$value": "#d0aa24"
353
- },
354
- "11": {
355
- "$type": "color",
356
- "$value": "#b7951f"
357
- },
358
- "12": {
359
- "$type": "color",
360
- "$value": "#776114"
361
- },
362
- "13": {
363
- "$type": "color",
364
- "$value": "#352b09"
365
- },
366
- "contrast-1": {
367
- "$type": "color",
368
- "$value": "#000000"
369
- },
370
- "contrast-2": {
371
- "$type": "color",
372
- "$value": "#382d0a"
373
- }
374
- }
375
- }
376
- }