@digdir/designsystemet 1.0.0-next.48 → 1.0.0-next.49

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 (62) hide show
  1. package/dist/bin/config.d.ts +54 -54
  2. package/dist/bin/config.d.ts.map +1 -1
  3. package/dist/bin/config.js +2 -2
  4. package/dist/bin/designsystemet.js +7 -3
  5. package/dist/config.schema.json +1 -3
  6. package/dist/src/colors/colorMetadata.d.ts +4 -0
  7. package/dist/src/colors/colorMetadata.d.ts.map +1 -0
  8. package/dist/src/colors/colorMetadata.js +189 -0
  9. package/dist/src/colors/index.d.ts +1 -0
  10. package/dist/src/colors/index.d.ts.map +1 -1
  11. package/dist/src/colors/index.js +1 -0
  12. package/dist/src/colors/theme.d.ts +6 -12
  13. package/dist/src/colors/theme.d.ts.map +1 -1
  14. package/dist/src/colors/theme.js +36 -47
  15. package/dist/src/colors/types.d.ts +18 -21
  16. package/dist/src/colors/types.d.ts.map +1 -1
  17. package/dist/src/colors/utils.d.ts +10 -23
  18. package/dist/src/colors/utils.d.ts.map +1 -1
  19. package/dist/src/colors/utils.js +7 -44
  20. package/dist/src/migrations/beta-to-v1.js +1 -1
  21. package/dist/src/migrations/codemods/css/plugins.d.ts.map +1 -1
  22. package/dist/src/migrations/codemods/css/plugins.js +7 -8
  23. package/dist/src/migrations/codemods/css/run.d.ts.map +1 -1
  24. package/dist/src/migrations/codemods/css/run.js +9 -1
  25. package/dist/src/migrations/color-rename-next49.d.ts +3 -0
  26. package/dist/src/migrations/color-rename-next49.d.ts.map +1 -0
  27. package/dist/src/migrations/color-rename-next49.js +38 -0
  28. package/dist/src/migrations/index.d.ts +1 -0
  29. package/dist/src/migrations/index.d.ts.map +1 -1
  30. package/dist/src/migrations/index.js +3 -1
  31. package/dist/src/scripts/copy-internal-tokens.d.ts +2 -0
  32. package/dist/src/scripts/copy-internal-tokens.d.ts.map +1 -0
  33. package/dist/src/scripts/copy-internal-tokens.js +28 -0
  34. package/dist/src/scripts/createJsonSchema.d.ts.map +1 -0
  35. package/dist/src/tokens/build/builtin-colors.css +20 -20
  36. package/dist/src/tokens/build/configs.d.ts.map +1 -1
  37. package/dist/src/tokens/build/configs.js +2 -15
  38. package/dist/src/tokens/build.js +2 -2
  39. package/dist/src/tokens/create.d.ts.map +1 -1
  40. package/dist/src/tokens/create.js +3 -17
  41. package/dist/src/tokens/design-tokens/default/primitives/globals.json +3 -3
  42. package/dist/src/tokens/design-tokens/default/primitives/modes/typography/size/large.json +9 -13
  43. package/dist/src/tokens/design-tokens/default/primitives/modes/typography/size/medium.json +9 -13
  44. package/dist/src/tokens/design-tokens/default/primitives/modes/typography/size/small.json +9 -13
  45. package/dist/src/tokens/design-tokens/default/semantic/style.json +25 -25
  46. package/dist/src/tokens/design-tokens/template/$themes.json +1315 -1295
  47. package/dist/src/tokens/design-tokens/template/semantic/color-base-file.json +81 -65
  48. package/dist/src/tokens/design-tokens/template/semantic/modes/category-color/category-color-template.json +18 -14
  49. package/dist/src/tokens/design-tokens/template/semantic/semantic-color-template.json +19 -15
  50. package/dist/src/tokens/design-tokens/template/themes/theme-color-template.json +8 -4
  51. package/dist/src/tokens/template.js +6 -6
  52. package/dist/src/tokens/write/generate$themes.js +11 -117
  53. package/dist/src/tokens/write.d.ts +0 -2
  54. package/dist/src/tokens/write.d.ts.map +1 -1
  55. package/dist/src/tokens/write.js +4 -8
  56. package/package.json +4 -7
  57. package/dist/src/build-scripts/createJsonSchema.d.ts.map +0 -1
  58. package/dist/src/colors/luminance.d.ts +0 -54
  59. package/dist/src/colors/luminance.d.ts.map +0 -1
  60. package/dist/src/colors/luminance.js +0 -56
  61. /package/dist/src/{build-scripts → scripts}/createJsonSchema.d.ts +0 -0
  62. /package/dist/src/{build-scripts → scripts}/createJsonSchema.js +0 -0
@@ -19,42 +19,38 @@
19
19
  "$value": "13"
20
20
  },
21
21
  "2": {
22
- "$type": "fontSizes",
23
- "$value": "14"
24
- },
25
- "3": {
26
22
  "$type": "fontSizes",
27
23
  "$value": "16"
28
24
  },
29
- "4": {
25
+ "3": {
30
26
  "$type": "fontSizes",
31
27
  "$value": "18"
32
28
  },
33
- "5": {
29
+ "4": {
34
30
  "$type": "fontSizes",
35
31
  "$value": "21"
36
32
  },
37
- "6": {
33
+ "5": {
38
34
  "$type": "fontSizes",
39
35
  "$value": "24"
40
36
  },
41
- "7": {
37
+ "6": {
42
38
  "$type": "fontSizes",
43
39
  "$value": "30"
44
40
  },
45
- "8": {
41
+ "7": {
46
42
  "$type": "fontSizes",
47
43
  "$value": "36"
48
44
  },
49
- "9": {
45
+ "8": {
50
46
  "$type": "fontSizes",
51
47
  "$value": "48"
52
48
  },
53
- "10": {
49
+ "9": {
54
50
  "$type": "fontSizes",
55
51
  "$value": "60"
56
52
  },
57
- "11": {
53
+ "10": {
58
54
  "$type": "fontSizes",
59
55
  "$value": "72"
60
56
  }
@@ -97,4 +93,4 @@
97
93
  "$value": "1.5%"
98
94
  }
99
95
  }
100
- }
96
+ }
@@ -19,42 +19,38 @@
19
19
  "$value": "12"
20
20
  },
21
21
  "2": {
22
- "$type": "fontSizes",
23
- "$value": "13"
24
- },
25
- "3": {
26
22
  "$type": "fontSizes",
27
23
  "$value": "14"
28
24
  },
29
- "4": {
25
+ "3": {
30
26
  "$type": "fontSizes",
31
27
  "$value": "16"
32
28
  },
33
- "5": {
29
+ "4": {
34
30
  "$type": "fontSizes",
35
31
  "$value": "18"
36
32
  },
37
- "6": {
33
+ "5": {
38
34
  "$type": "fontSizes",
39
35
  "$value": "21"
40
36
  },
41
- "7": {
37
+ "6": {
42
38
  "$type": "fontSizes",
43
39
  "$value": "24"
44
40
  },
45
- "8": {
41
+ "7": {
46
42
  "$type": "fontSizes",
47
43
  "$value": "30"
48
44
  },
49
- "9": {
45
+ "8": {
50
46
  "$type": "fontSizes",
51
47
  "$value": "36"
52
48
  },
53
- "10": {
49
+ "9": {
54
50
  "$type": "fontSizes",
55
51
  "$value": "48"
56
52
  },
57
- "11": {
53
+ "10": {
58
54
  "$type": "fontSizes",
59
55
  "$value": "60"
60
56
  }
@@ -97,4 +93,4 @@
97
93
  "$value": "1.5%"
98
94
  }
99
95
  }
100
- }
96
+ }
@@ -19,42 +19,38 @@
19
19
  "$value": "11"
20
20
  },
21
21
  "2": {
22
- "$type": "fontSizes",
23
- "$value": "12"
24
- },
25
- "3": {
26
22
  "$type": "fontSizes",
27
23
  "$value": "13"
28
24
  },
29
- "4": {
25
+ "3": {
30
26
  "$type": "fontSizes",
31
27
  "$value": "14"
32
28
  },
33
- "5": {
29
+ "4": {
34
30
  "$type": "fontSizes",
35
31
  "$value": "16"
36
32
  },
37
- "6": {
33
+ "5": {
38
34
  "$type": "fontSizes",
39
35
  "$value": "18"
40
36
  },
41
- "7": {
37
+ "6": {
42
38
  "$type": "fontSizes",
43
39
  "$value": "21"
44
40
  },
45
- "8": {
41
+ "7": {
46
42
  "$type": "fontSizes",
47
43
  "$value": "24"
48
44
  },
49
- "9": {
45
+ "8": {
50
46
  "$type": "fontSizes",
51
47
  "$value": "30"
52
48
  },
53
- "10": {
49
+ "9": {
54
50
  "$type": "fontSizes",
55
51
  "$value": "36"
56
52
  },
57
- "11": {
53
+ "10": {
58
54
  "$type": "fontSizes",
59
55
  "$value": "48"
60
56
  }
@@ -97,4 +93,4 @@
97
93
  "$value": "1.5%"
98
94
  }
99
95
  }
100
- }
96
+ }
@@ -7,7 +7,7 @@
7
7
  "fontFamily": "{font.family}",
8
8
  "fontWeight": "{font-weight.medium}",
9
9
  "lineHeight": "{line-height.sm}",
10
- "fontSize": "{font-size.11}",
10
+ "fontSize": "{font-size.10}",
11
11
  "letterSpacing": "{letter-spacing.1}"
12
12
  }
13
13
  },
@@ -17,7 +17,7 @@
17
17
  "fontFamily": "{font.family}",
18
18
  "fontWeight": "{font-weight.medium}",
19
19
  "lineHeight": "{line-height.sm}",
20
- "fontSize": "{font-size.10}",
20
+ "fontSize": "{font-size.9}",
21
21
  "letterSpacing": "{letter-spacing.1}"
22
22
  }
23
23
  },
@@ -27,7 +27,7 @@
27
27
  "fontFamily": "{font.family}",
28
28
  "fontWeight": "{font-weight.medium}",
29
29
  "lineHeight": "{line-height.sm}",
30
- "fontSize": "{font-size.9}",
30
+ "fontSize": "{font-size.8}",
31
31
  "letterSpacing": "{letter-spacing.2}"
32
32
  }
33
33
  },
@@ -37,7 +37,7 @@
37
37
  "fontFamily": "{font.family}",
38
38
  "fontWeight": "{font-weight.medium}",
39
39
  "lineHeight": "{line-height.sm}",
40
- "fontSize": "{font-size.8}",
40
+ "fontSize": "{font-size.7}",
41
41
  "letterSpacing": "{letter-spacing.3}"
42
42
  }
43
43
  },
@@ -47,7 +47,7 @@
47
47
  "fontFamily": "{font.family}",
48
48
  "fontWeight": "{font-weight.medium}",
49
49
  "lineHeight": "{line-height.sm}",
50
- "fontSize": "{font-size.7}",
50
+ "fontSize": "{font-size.6}",
51
51
  "letterSpacing": "{letter-spacing.5}"
52
52
  }
53
53
  },
@@ -57,7 +57,7 @@
57
57
  "fontFamily": "{font.family}",
58
58
  "fontWeight": "{font-weight.medium}",
59
59
  "lineHeight": "{line-height.sm}",
60
- "fontSize": "{font-size.6}",
60
+ "fontSize": "{font-size.5}",
61
61
  "letterSpacing": "{letter-spacing.6}"
62
62
  }
63
63
  },
@@ -67,7 +67,7 @@
67
67
  "fontFamily": "{font.family}",
68
68
  "fontWeight": "{font-weight.medium}",
69
69
  "lineHeight": "{line-height.sm}",
70
- "fontSize": "{font-size.5}",
70
+ "fontSize": "{font-size.4}",
71
71
  "letterSpacing": "{letter-spacing.6}"
72
72
  }
73
73
  }
@@ -79,7 +79,7 @@
79
79
  "fontFamily": "{font.family}",
80
80
  "fontWeight": "{font-weight.regular}",
81
81
  "lineHeight": "{line-height.md}",
82
- "fontSize": "{font-size.7}",
82
+ "fontSize": "{font-size.6}",
83
83
  "letterSpacing": "{letter-spacing.8}"
84
84
  }
85
85
  },
@@ -89,7 +89,7 @@
89
89
  "fontFamily": "{font.family}",
90
90
  "fontWeight": "{font-weight.regular}",
91
91
  "lineHeight": "{line-height.md}",
92
- "fontSize": "{font-size.6}",
92
+ "fontSize": "{font-size.5}",
93
93
  "letterSpacing": "{letter-spacing.8}"
94
94
  }
95
95
  },
@@ -99,7 +99,7 @@
99
99
  "fontFamily": "{font.family}",
100
100
  "fontWeight": "{font-weight.regular}",
101
101
  "lineHeight": "{line-height.md}",
102
- "fontSize": "{font-size.5}",
102
+ "fontSize": "{font-size.4}",
103
103
  "letterSpacing": "{letter-spacing.8}"
104
104
  }
105
105
  },
@@ -109,7 +109,7 @@
109
109
  "fontFamily": "{font.family}",
110
110
  "fontWeight": "{font-weight.regular}",
111
111
  "lineHeight": "{line-height.md}",
112
- "fontSize": "{font-size.4}",
112
+ "fontSize": "{font-size.3}",
113
113
  "letterSpacing": "{letter-spacing.7}"
114
114
  }
115
115
  },
@@ -119,7 +119,7 @@
119
119
  "fontFamily": "{font.family}",
120
120
  "fontWeight": "{font-weight.regular}",
121
121
  "lineHeight": "{line-height.md}",
122
- "fontSize": "{font-size.3}",
122
+ "fontSize": "{font-size.2}",
123
123
  "letterSpacing": "{letter-spacing.6}"
124
124
  }
125
125
  },
@@ -130,7 +130,7 @@
130
130
  "fontFamily": "{font.family}",
131
131
  "fontWeight": "{font-weight.regular}",
132
132
  "lineHeight": "{line-height.sm}",
133
- "fontSize": "{font-size.7}",
133
+ "fontSize": "{font-size.6}",
134
134
  "letterSpacing": "{letter-spacing.8}"
135
135
  }
136
136
  },
@@ -140,7 +140,7 @@
140
140
  "fontFamily": "{font.family}",
141
141
  "fontWeight": "{font-weight.regular}",
142
142
  "lineHeight": "{line-height.sm}",
143
- "fontSize": "{font-size.6}",
143
+ "fontSize": "{font-size.5}",
144
144
  "letterSpacing": "{letter-spacing.8}"
145
145
  }
146
146
  },
@@ -150,7 +150,7 @@
150
150
  "fontFamily": "{font.family}",
151
151
  "fontWeight": "{font-weight.regular}",
152
152
  "lineHeight": "{line-height.sm}",
153
- "fontSize": "{font-size.5}",
153
+ "fontSize": "{font-size.4}",
154
154
  "letterSpacing": "{letter-spacing.8}"
155
155
  }
156
156
  },
@@ -160,7 +160,7 @@
160
160
  "fontFamily": "{font.family}",
161
161
  "fontWeight": "{font-weight.regular}",
162
162
  "lineHeight": "{line-height.sm}",
163
- "fontSize": "{font-size.4}",
163
+ "fontSize": "{font-size.3}",
164
164
  "letterSpacing": "{letter-spacing.7}"
165
165
  }
166
166
  },
@@ -170,7 +170,7 @@
170
170
  "fontFamily": "{font.family}",
171
171
  "fontWeight": "{font-weight.regular}",
172
172
  "lineHeight": "{line-height.sm}",
173
- "fontSize": "{font-size.3}",
173
+ "fontSize": "{font-size.2}",
174
174
  "letterSpacing": "{letter-spacing.6}"
175
175
  }
176
176
  }
@@ -182,7 +182,7 @@
182
182
  "fontFamily": "{font.family}",
183
183
  "fontWeight": "{font-weight.regular}",
184
184
  "lineHeight": "{line-height.lg}",
185
- "fontSize": "{font-size.7}",
185
+ "fontSize": "{font-size.6}",
186
186
  "letterSpacing": "{letter-spacing.8}"
187
187
  }
188
188
  },
@@ -192,7 +192,7 @@
192
192
  "fontFamily": "{font.family}",
193
193
  "fontWeight": "{font-weight.regular}",
194
194
  "lineHeight": "{line-height.lg}",
195
- "fontSize": "{font-size.6}",
195
+ "fontSize": "{font-size.5}",
196
196
  "letterSpacing": "{letter-spacing.8}"
197
197
  }
198
198
  },
@@ -202,7 +202,7 @@
202
202
  "fontFamily": "{font.family}",
203
203
  "fontWeight": "{font-weight.regular}",
204
204
  "lineHeight": "{line-height.lg}",
205
- "fontSize": "{font-size.5}",
205
+ "fontSize": "{font-size.4}",
206
206
  "letterSpacing": "{letter-spacing.8}"
207
207
  }
208
208
  },
@@ -212,7 +212,7 @@
212
212
  "fontFamily": "{font.family}",
213
213
  "fontWeight": "{font-weight.regular}",
214
214
  "lineHeight": "{line-height.lg}",
215
- "fontSize": "{font-size.4}",
215
+ "fontSize": "{font-size.3}",
216
216
  "letterSpacing": "{letter-spacing.7}"
217
217
  }
218
218
  },
@@ -222,7 +222,7 @@
222
222
  "fontFamily": "{font.family}",
223
223
  "fontWeight": "{font-weight.regular}",
224
224
  "lineHeight": "{line-height.lg}",
225
- "fontSize": "{font-size.3}",
225
+ "fontSize": "{font-size.2}",
226
226
  "letterSpacing": "{letter-spacing.6}"
227
227
  }
228
228
  }
@@ -240,9 +240,9 @@
240
240
  "$type": "borderWidth",
241
241
  "$value": "{border-width.1}"
242
242
  },
243
- "highlight": {
243
+ "focus": {
244
244
  "$type": "borderWidth",
245
- "$value": "{border-width.2}"
245
+ "$value": "{border-width.3}"
246
246
  }
247
247
  },
248
248
  "shadow": {
@@ -375,4 +375,4 @@
375
375
  "$value": "{_size.30}"
376
376
  }
377
377
  }
378
- }
378
+ }