@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,161 +0,0 @@
1
- {
2
- "border-width": {
3
- "1": {
4
- "$type": "borderWidth",
5
- "$value": "1px"
6
- },
7
- "2": {
8
- "$type": "borderWidth",
9
- "$value": "2px"
10
- }
11
- },
12
- "shadow": {
13
- "100": {
14
- "$type": "boxShadow",
15
- "$value": [
16
- {
17
- "color": "rgba(0,0,0,0.16)",
18
- "x": "0",
19
- "y": "0",
20
- "blur": "1",
21
- "spread": "0"
22
- },
23
- {
24
- "x": "0",
25
- "y": "1",
26
- "blur": "2",
27
- "spread": "0",
28
- "color": "rgba(0,0,0,0.12)"
29
- }
30
- ]
31
- },
32
- "200": {
33
- "$type": "boxShadow",
34
- "$value": [
35
- {
36
- "color": "rgba(0,0,0,0.15)",
37
- "x": "0",
38
- "y": "0",
39
- "blur": "1",
40
- "spread": "0"
41
- },
42
- {
43
- "color": "rgba(0,0,0,0.12)",
44
- "x": "0",
45
- "y": "1",
46
- "blur": "2",
47
- "spread": "0"
48
- },
49
- {
50
- "x": "0",
51
- "y": "2",
52
- "blur": "4",
53
- "spread": "0",
54
- "color": "rgba(0,0,0,0.1)"
55
- }
56
- ]
57
- },
58
- "300": {
59
- "$type": "boxShadow",
60
- "$value": [
61
- {
62
- "color": "rgba(0,0,0,0.14)",
63
- "x": "0",
64
- "y": "0",
65
- "blur": "1",
66
- "spread": "0"
67
- },
68
- {
69
- "color": "rgba(0,0,0,0.12)",
70
- "x": "0",
71
- "y": "2",
72
- "blur": "4",
73
- "spread": "0"
74
- },
75
- {
76
- "x": "0",
77
- "y": "4",
78
- "blur": "8",
79
- "spread": "0",
80
- "color": "rgba(0,0,0,0.12)"
81
- }
82
- ]
83
- },
84
- "400": {
85
- "$type": "boxShadow",
86
- "$value": [
87
- {
88
- "color": "rgba(0,0,0,0.13)",
89
- "x": "0",
90
- "y": "0",
91
- "blur": "1",
92
- "spread": "0"
93
- },
94
- {
95
- "color": "rgba(0,0,0,0.13)",
96
- "x": "0",
97
- "y": "3",
98
- "blur": "5",
99
- "spread": "0"
100
- },
101
- {
102
- "x": "0",
103
- "y": "6",
104
- "blur": "12",
105
- "spread": "0",
106
- "color": "rgba(0,0,0,0.14)"
107
- }
108
- ]
109
- },
110
- "500": {
111
- "$type": "boxShadow",
112
- "$value": [
113
- {
114
- "color": "rgba(0,0,0,0.12)",
115
- "x": "0",
116
- "y": "0",
117
- "blur": "1",
118
- "spread": "0"
119
- },
120
- {
121
- "color": "rgba(0,0,0,0.16)",
122
- "x": "0",
123
- "y": "4",
124
- "blur": "8",
125
- "spread": "0"
126
- },
127
- {
128
- "x": "0",
129
- "y": "12",
130
- "blur": "24",
131
- "spread": "0",
132
- "color": "rgba(0,0,0,0.16)"
133
- }
134
- ]
135
- }
136
- },
137
- "border-radius": {
138
- "base": {
139
- "$type": "borderRadius",
140
- "$value": "4"
141
- }
142
- },
143
- "opacity": {
144
- "30": {
145
- "$type": "opacity",
146
- "$value": "30%"
147
- }
148
- },
149
- "sizing": {
150
- "base": {
151
- "$type": "sizing",
152
- "$value": "4"
153
- }
154
- },
155
- "spacing": {
156
- "base": {
157
- "$type": "spacing",
158
- "$value": "4"
159
- }
160
- }
161
- }
@@ -1,175 +0,0 @@
1
- {
2
- "line-height": {
3
- "sm": {
4
- "$extensions": {
5
- "studio.tokens": {
6
- "modify": {}
7
- }
8
- },
9
- "$type": "lineHeights",
10
- "$value": "130%"
11
- },
12
- "md": {
13
- "$extensions": {
14
- "studio.tokens": {
15
- "modify": {}
16
- }
17
- },
18
- "$type": "lineHeights",
19
- "$value": "150%"
20
- },
21
- "lg": {
22
- "$extensions": {
23
- "studio.tokens": {
24
- "modify": {}
25
- }
26
- },
27
- "$type": "lineHeights",
28
- "$value": "170%"
29
- }
30
- },
31
- "font-size": {
32
- "1": {
33
- "$extensions": {
34
- "studio.tokens": {
35
- "modify": {}
36
- }
37
- },
38
- "$type": "fontSizes",
39
- "$value": "12"
40
- },
41
- "2": {
42
- "$extensions": {
43
- "studio.tokens": {
44
- "modify": {}
45
- }
46
- },
47
- "$type": "fontSizes",
48
- "$value": "13"
49
- },
50
- "3": {
51
- "$extensions": {
52
- "studio.tokens": {
53
- "modify": {}
54
- }
55
- },
56
- "$type": "fontSizes",
57
- "$value": "14"
58
- },
59
- "4": {
60
- "$extensions": {
61
- "studio.tokens": {
62
- "modify": {}
63
- }
64
- },
65
- "$type": "fontSizes",
66
- "$value": "16"
67
- },
68
- "5": {
69
- "$extensions": {
70
- "studio.tokens": {
71
- "modify": {}
72
- }
73
- },
74
- "$type": "fontSizes",
75
- "$value": "18"
76
- },
77
- "6": {
78
- "$extensions": {
79
- "studio.tokens": {
80
- "modify": {}
81
- }
82
- },
83
- "$type": "fontSizes",
84
- "$value": "21"
85
- },
86
- "7": {
87
- "$extensions": {
88
- "studio.tokens": {
89
- "modify": {}
90
- }
91
- },
92
- "$type": "fontSizes",
93
- "$value": "24"
94
- },
95
- "8": {
96
- "$extensions": {
97
- "studio.tokens": {
98
- "modify": {}
99
- }
100
- },
101
- "$type": "fontSizes",
102
- "$value": "30"
103
- },
104
- "9": {
105
- "$extensions": {
106
- "studio.tokens": {
107
- "modify": {}
108
- }
109
- },
110
- "$type": "fontSizes",
111
- "$value": "36"
112
- },
113
- "10": {
114
- "$extensions": {
115
- "studio.tokens": {
116
- "modify": {}
117
- }
118
- },
119
- "$type": "fontSizes",
120
- "$value": "48"
121
- },
122
- "11": {
123
- "$extensions": {
124
- "studio.tokens": {
125
- "modify": {}
126
- }
127
- },
128
- "$type": "fontSizes",
129
- "$value": "60"
130
- }
131
- },
132
- "letter-spacing": {
133
- "1": {
134
- "$type": "letterSpacing",
135
- "$value": "-1%"
136
- },
137
- "2": {
138
- "$type": "letterSpacing",
139
- "$value": "-0.5%"
140
- },
141
- "3": {
142
- "$type": "letterSpacing",
143
- "$value": "-0.25%"
144
- },
145
- "4": {
146
- "$type": "letterSpacing",
147
- "$value": "-0.15%"
148
- },
149
- "5": {
150
- "$type": "letterSpacing",
151
- "$value": "0%"
152
- },
153
- "6": {
154
- "$type": "letterSpacing",
155
- "$value": "0.15%"
156
- },
157
- "7": {
158
- "$type": "letterSpacing",
159
- "$value": "0.25%"
160
- },
161
- "8": {
162
- "$type": "letterSpacing",
163
- "$value": "0.5%"
164
- },
165
- "9": {
166
- "$extensions": {
167
- "studio.tokens": {
168
- "modify": {}
169
- }
170
- },
171
- "$type": "letterSpacing",
172
- "$value": "1.5%"
173
- }
174
- }
175
- }