@digdir/designsystemet 0.0.0-deps-tsdown-20260421103939

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 (195) hide show
  1. package/LICENSE +7 -0
  2. package/README.md +115 -0
  3. package/configs/test-tokens.config.json +82 -0
  4. package/dist/bin/config.d.ts +12 -0
  5. package/dist/bin/config.d.ts.map +1 -0
  6. package/dist/bin/config.js +58 -0
  7. package/dist/bin/designsystemet.d.ts +3 -0
  8. package/dist/bin/designsystemet.d.ts.map +1 -0
  9. package/dist/bin/designsystemet.js +156 -0
  10. package/dist/bin/options.d.ts +21 -0
  11. package/dist/bin/options.d.ts.map +1 -0
  12. package/dist/bin/options.js +23 -0
  13. package/dist/config.schema.json +209 -0
  14. package/dist/node_modules/.pnpm/@tokens-studio_types@0.5.2/node_modules/@tokens-studio/types/dist/constants/BorderValues.js +9 -0
  15. package/dist/node_modules/.pnpm/@tokens-studio_types@0.5.2/node_modules/@tokens-studio/types/dist/constants/BoxShadowTypes.js +8 -0
  16. package/dist/node_modules/.pnpm/@tokens-studio_types@0.5.2/node_modules/@tokens-studio/types/dist/constants/BoxShadowValues.js +13 -0
  17. package/dist/node_modules/.pnpm/@tokens-studio_types@0.5.2/node_modules/@tokens-studio/types/dist/constants/ColorModifierTypes.js +10 -0
  18. package/dist/node_modules/.pnpm/@tokens-studio_types@0.5.2/node_modules/@tokens-studio/types/dist/constants/ColorSpaceTypes.js +10 -0
  19. package/dist/node_modules/.pnpm/@tokens-studio_types@0.5.2/node_modules/@tokens-studio/types/dist/constants/Properties.js +53 -0
  20. package/dist/node_modules/.pnpm/@tokens-studio_types@0.5.2/node_modules/@tokens-studio/types/dist/constants/StrokeStyleValues.js +14 -0
  21. package/dist/node_modules/.pnpm/@tokens-studio_types@0.5.2/node_modules/@tokens-studio/types/dist/constants/TokenSetStatus.js +9 -0
  22. package/dist/node_modules/.pnpm/@tokens-studio_types@0.5.2/node_modules/@tokens-studio/types/dist/constants/TokenTypes.js +32 -0
  23. package/dist/node_modules/.pnpm/@tokens-studio_types@0.5.2/node_modules/@tokens-studio/types/dist/constants/TypographyValues.js +15 -0
  24. package/dist/node_modules/.pnpm/@tokens-studio_types@0.5.2/node_modules/@tokens-studio/types/dist/types/index.js +11 -0
  25. package/dist/package.js +5 -0
  26. package/dist/src/colors/colorMetadata.d.ts +56 -0
  27. package/dist/src/colors/colorMetadata.d.ts.map +1 -0
  28. package/dist/src/colors/colorMetadata.js +259 -0
  29. package/dist/src/colors/index.d.ts +5 -0
  30. package/dist/src/colors/index.d.ts.map +1 -0
  31. package/dist/src/colors/index.js +5 -0
  32. package/dist/src/colors/theme.d.ts +30 -0
  33. package/dist/src/colors/theme.d.ts.map +1 -0
  34. package/dist/src/colors/theme.js +111 -0
  35. package/dist/src/colors/types.d.ts +69 -0
  36. package/dist/src/colors/types.d.ts.map +1 -0
  37. package/dist/src/colors/types.js +24 -0
  38. package/dist/src/colors/utils.d.ts +128 -0
  39. package/dist/src/colors/utils.d.ts.map +1 -0
  40. package/dist/src/colors/utils.js +244 -0
  41. package/dist/src/config.d.ts +181 -0
  42. package/dist/src/config.d.ts.map +1 -0
  43. package/dist/src/config.js +118 -0
  44. package/dist/src/index.d.ts +4 -0
  45. package/dist/src/index.d.ts.map +1 -0
  46. package/dist/src/index.js +10 -0
  47. package/dist/src/migrations/beta-to-v1.d.ts +3 -0
  48. package/dist/src/migrations/beta-to-v1.d.ts.map +1 -0
  49. package/dist/src/migrations/beta-to-v1.js +340 -0
  50. package/dist/src/migrations/codemods/css/plugins.d.ts +6 -0
  51. package/dist/src/migrations/codemods/css/plugins.d.ts.map +1 -0
  52. package/dist/src/migrations/codemods/css/plugins.js +35 -0
  53. package/dist/src/migrations/codemods/css/run.d.ts +8 -0
  54. package/dist/src/migrations/codemods/css/run.d.ts.map +1 -0
  55. package/dist/src/migrations/codemods/css/run.js +23 -0
  56. package/dist/src/migrations/color-rename-next49.d.ts +3 -0
  57. package/dist/src/migrations/color-rename-next49.d.ts.map +1 -0
  58. package/dist/src/migrations/color-rename-next49.js +46 -0
  59. package/dist/src/migrations/index.d.ts +6 -0
  60. package/dist/src/migrations/index.d.ts.map +1 -0
  61. package/dist/src/migrations/index.js +9 -0
  62. package/dist/src/scripts/createJsonSchema.d.ts +2 -0
  63. package/dist/src/scripts/createJsonSchema.d.ts.map +1 -0
  64. package/dist/src/scripts/update-preview-tokens.d.ts +3 -0
  65. package/dist/src/scripts/update-preview-tokens.d.ts.map +1 -0
  66. package/dist/src/tokens/build.d.ts +4 -0
  67. package/dist/src/tokens/build.d.ts.map +1 -0
  68. package/dist/src/tokens/build.js +41 -0
  69. package/dist/src/tokens/create/files.d.ts +11 -0
  70. package/dist/src/tokens/create/files.d.ts.map +1 -0
  71. package/dist/src/tokens/create/files.js +44 -0
  72. package/dist/src/tokens/create/generators/$designsystemet.d.ts +5 -0
  73. package/dist/src/tokens/create/generators/$designsystemet.d.ts.map +1 -0
  74. package/dist/src/tokens/create/generators/$designsystemet.js +10 -0
  75. package/dist/src/tokens/create/generators/$metadata.d.ts +8 -0
  76. package/dist/src/tokens/create/generators/$metadata.d.ts.map +1 -0
  77. package/dist/src/tokens/create/generators/$metadata.js +19 -0
  78. package/dist/src/tokens/create/generators/$themes.d.ts +27 -0
  79. package/dist/src/tokens/create/generators/$themes.d.ts.map +1 -0
  80. package/dist/src/tokens/create/generators/$themes.js +158 -0
  81. package/dist/src/tokens/create/generators/primitives/color-scheme.d.ts +5 -0
  82. package/dist/src/tokens/create/generators/primitives/color-scheme.d.ts.map +1 -0
  83. package/dist/src/tokens/create/generators/primitives/color-scheme.js +71 -0
  84. package/dist/src/tokens/create/generators/primitives/globals.d.ts +3 -0
  85. package/dist/src/tokens/create/generators/primitives/globals.d.ts.map +1 -0
  86. package/dist/src/tokens/create/generators/primitives/globals.js +142 -0
  87. package/dist/src/tokens/create/generators/primitives/size.d.ts +4 -0
  88. package/dist/src/tokens/create/generators/primitives/size.d.ts.map +1 -0
  89. package/dist/src/tokens/create/generators/primitives/size.js +147 -0
  90. package/dist/src/tokens/create/generators/primitives/typography.d.ts +4 -0
  91. package/dist/src/tokens/create/generators/primitives/typography.d.ts.map +1 -0
  92. package/dist/src/tokens/create/generators/primitives/typography.js +216 -0
  93. package/dist/src/tokens/create/generators/semantic/color-modes.d.ts +8 -0
  94. package/dist/src/tokens/create/generators/semantic/color-modes.d.ts.map +1 -0
  95. package/dist/src/tokens/create/generators/semantic/color-modes.js +26 -0
  96. package/dist/src/tokens/create/generators/semantic/color.d.ts +5 -0
  97. package/dist/src/tokens/create/generators/semantic/color.d.ts.map +1 -0
  98. package/dist/src/tokens/create/generators/semantic/color.js +46 -0
  99. package/dist/src/tokens/create/generators/semantic/style.d.ts +3 -0
  100. package/dist/src/tokens/create/generators/semantic/style.d.ts.map +1 -0
  101. package/dist/src/tokens/create/generators/semantic/style.js +381 -0
  102. package/dist/src/tokens/create/generators/themes/theme.d.ts +3 -0
  103. package/dist/src/tokens/create/generators/themes/theme.d.ts.map +1 -0
  104. package/dist/src/tokens/create/generators/themes/theme.js +112 -0
  105. package/dist/src/tokens/create.d.ts +21 -0
  106. package/dist/src/tokens/create.d.ts.map +1 -0
  107. package/dist/src/tokens/create.js +47 -0
  108. package/dist/src/tokens/format.d.ts +15 -0
  109. package/dist/src/tokens/format.d.ts.map +1 -0
  110. package/dist/src/tokens/format.js +41 -0
  111. package/dist/src/tokens/generate-config.d.ts +10 -0
  112. package/dist/src/tokens/generate-config.d.ts.map +1 -0
  113. package/dist/src/tokens/generate-config.js +178 -0
  114. package/dist/src/tokens/index.d.ts +4 -0
  115. package/dist/src/tokens/index.d.ts.map +1 -0
  116. package/dist/src/tokens/index.js +3 -0
  117. package/dist/src/tokens/process/configs/color.d.ts +12 -0
  118. package/dist/src/tokens/process/configs/color.d.ts.map +1 -0
  119. package/dist/src/tokens/process/configs/color.js +51 -0
  120. package/dist/src/tokens/process/configs/semantic.d.ts +3 -0
  121. package/dist/src/tokens/process/configs/semantic.d.ts.map +1 -0
  122. package/dist/src/tokens/process/configs/semantic.js +47 -0
  123. package/dist/src/tokens/process/configs/shared.d.ts +10 -0
  124. package/dist/src/tokens/process/configs/shared.d.ts.map +1 -0
  125. package/dist/src/tokens/process/configs/shared.js +19 -0
  126. package/dist/src/tokens/process/configs/size-mode.d.ts +3 -0
  127. package/dist/src/tokens/process/configs/size-mode.d.ts.map +1 -0
  128. package/dist/src/tokens/process/configs/size-mode.js +28 -0
  129. package/dist/src/tokens/process/configs/size.d.ts +3 -0
  130. package/dist/src/tokens/process/configs/size.d.ts.map +1 -0
  131. package/dist/src/tokens/process/configs/size.js +34 -0
  132. package/dist/src/tokens/process/configs/type-scale.d.ts +3 -0
  133. package/dist/src/tokens/process/configs/type-scale.d.ts.map +1 -0
  134. package/dist/src/tokens/process/configs/type-scale.js +49 -0
  135. package/dist/src/tokens/process/configs/typography.d.ts +3 -0
  136. package/dist/src/tokens/process/configs/typography.d.ts.map +1 -0
  137. package/dist/src/tokens/process/configs/typography.js +64 -0
  138. package/dist/src/tokens/process/configs.d.ts +20 -0
  139. package/dist/src/tokens/process/configs.d.ts.map +1 -0
  140. package/dist/src/tokens/process/configs.js +90 -0
  141. package/dist/src/tokens/process/formats/css/color.d.ts +4 -0
  142. package/dist/src/tokens/process/formats/css/color.d.ts.map +1 -0
  143. package/dist/src/tokens/process/formats/css/color.js +63 -0
  144. package/dist/src/tokens/process/formats/css/semantic.d.ts +3 -0
  145. package/dist/src/tokens/process/formats/css/semantic.d.ts.map +1 -0
  146. package/dist/src/tokens/process/formats/css/semantic.js +29 -0
  147. package/dist/src/tokens/process/formats/css/size-mode.d.ts +4 -0
  148. package/dist/src/tokens/process/formats/css/size-mode.d.ts.map +1 -0
  149. package/dist/src/tokens/process/formats/css/size-mode.js +50 -0
  150. package/dist/src/tokens/process/formats/css/size.d.ts +21 -0
  151. package/dist/src/tokens/process/formats/css/size.d.ts.map +1 -0
  152. package/dist/src/tokens/process/formats/css/size.js +93 -0
  153. package/dist/src/tokens/process/formats/css/type-scale.d.ts +3 -0
  154. package/dist/src/tokens/process/formats/css/type-scale.d.ts.map +1 -0
  155. package/dist/src/tokens/process/formats/css/type-scale.js +55 -0
  156. package/dist/src/tokens/process/formats/css/typography.d.ts +3 -0
  157. package/dist/src/tokens/process/formats/css/typography.d.ts.map +1 -0
  158. package/dist/src/tokens/process/formats/css/typography.js +29 -0
  159. package/dist/src/tokens/process/formats/css.d.ts +11 -0
  160. package/dist/src/tokens/process/formats/css.d.ts.map +1 -0
  161. package/dist/src/tokens/process/formats/css.js +18 -0
  162. package/dist/src/tokens/process/output/declarations.d.ts +5 -0
  163. package/dist/src/tokens/process/output/declarations.d.ts.map +1 -0
  164. package/dist/src/tokens/process/output/declarations.js +38 -0
  165. package/dist/src/tokens/process/output/tailwind.d.ts +3 -0
  166. package/dist/src/tokens/process/output/tailwind.d.ts.map +1 -0
  167. package/dist/src/tokens/process/output/tailwind.js +45 -0
  168. package/dist/src/tokens/process/output/theme.d.ts +27 -0
  169. package/dist/src/tokens/process/output/theme.d.ts.map +1 -0
  170. package/dist/src/tokens/process/output/theme.js +83 -0
  171. package/dist/src/tokens/process/platform.d.ts +106 -0
  172. package/dist/src/tokens/process/platform.d.ts.map +1 -0
  173. package/dist/src/tokens/process/platform.js +168 -0
  174. package/dist/src/tokens/process/transformers.d.ts +6 -0
  175. package/dist/src/tokens/process/transformers.d.ts.map +1 -0
  176. package/dist/src/tokens/process/transformers.js +54 -0
  177. package/dist/src/tokens/process/utils/getMultidimensionalThemes.d.ts +36 -0
  178. package/dist/src/tokens/process/utils/getMultidimensionalThemes.d.ts.map +1 -0
  179. package/dist/src/tokens/process/utils/getMultidimensionalThemes.js +114 -0
  180. package/dist/src/tokens/process/utils/kebab-case.d.ts +5 -0
  181. package/dist/src/tokens/process/utils/kebab-case.d.ts.map +1 -0
  182. package/dist/src/tokens/process/utils/kebab-case.js +9 -0
  183. package/dist/src/tokens/types.d.ts +74 -0
  184. package/dist/src/tokens/types.d.ts.map +1 -0
  185. package/dist/src/tokens/types.js +7 -0
  186. package/dist/src/tokens/utils.d.ts +63 -0
  187. package/dist/src/tokens/utils.d.ts.map +1 -0
  188. package/dist/src/tokens/utils.js +121 -0
  189. package/dist/src/types.d.ts +6 -0
  190. package/dist/src/types.d.ts.map +1 -0
  191. package/dist/src/types.js +2 -0
  192. package/dist/src/utils/filesystem.d.ts +40 -0
  193. package/dist/src/utils/filesystem.d.ts.map +1 -0
  194. package/dist/src/utils/filesystem.js +115 -0
  195. package/package.json +87 -0
@@ -0,0 +1,209 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "$schema": {
6
+ "type": "string"
7
+ },
8
+ "outDir": {
9
+ "type": "string",
10
+ "description": "Path to the output directory for the created design tokens"
11
+ },
12
+ "themes": {
13
+ "type": "object",
14
+ "propertyNames": {
15
+ "type": "string"
16
+ },
17
+ "additionalProperties": {
18
+ "type": "object",
19
+ "properties": {
20
+ "colors": {
21
+ "type": "object",
22
+ "properties": {
23
+ "main": {
24
+ "type": "object",
25
+ "propertyNames": {
26
+ "type": "string",
27
+ "pattern": "^(?!(?:neutral|success|warning|danger|info)$)"
28
+ },
29
+ "additionalProperties": {
30
+ "description": "A hex color, which is used for creating a color scale. Invalid color names: neutral, success, warning, danger, info"
31
+ },
32
+ "description": "An object with one or more color definitions. The property name is used as the color name."
33
+ },
34
+ "support": {
35
+ "default": {},
36
+ "type": "object",
37
+ "propertyNames": {
38
+ "type": "string",
39
+ "pattern": "^(?!(?:neutral|success|warning|danger|info)$)"
40
+ },
41
+ "additionalProperties": {
42
+ "description": "A hex color, which is used for creating a color scale. Invalid color names: neutral, success, warning, danger, info"
43
+ },
44
+ "description": "An object with one or more color definitions. The property name is used as the color name."
45
+ },
46
+ "neutral": {
47
+ "description": "A hex color, which is used for creating a color scale."
48
+ }
49
+ },
50
+ "required": [
51
+ "main",
52
+ "support",
53
+ "neutral"
54
+ ],
55
+ "additionalProperties": false,
56
+ "description": "Defines the colors for this theme"
57
+ },
58
+ "typography": {
59
+ "type": "object",
60
+ "properties": {
61
+ "fontFamily": {
62
+ "type": "string",
63
+ "description": "Sets the font-family for this theme"
64
+ }
65
+ },
66
+ "required": [
67
+ "fontFamily"
68
+ ],
69
+ "additionalProperties": false,
70
+ "description": "Defines the typography for a given theme"
71
+ },
72
+ "borderRadius": {
73
+ "type": "number",
74
+ "description": "Defines the border-radius for this theme"
75
+ },
76
+ "overrides": {
77
+ "type": "object",
78
+ "properties": {
79
+ "colors": {
80
+ "type": "object",
81
+ "propertyNames": {
82
+ "type": "string"
83
+ },
84
+ "additionalProperties": {
85
+ "type": "object",
86
+ "propertyNames": {
87
+ "type": "string",
88
+ "enum": [
89
+ "background-default",
90
+ "background-tinted",
91
+ "surface-default",
92
+ "surface-tinted",
93
+ "surface-hover",
94
+ "surface-active",
95
+ "border-subtle",
96
+ "border-default",
97
+ "border-strong",
98
+ "text-subtle",
99
+ "text-default",
100
+ "base-default",
101
+ "base-hover",
102
+ "base-active",
103
+ "base-contrast-subtle",
104
+ "base-contrast-default"
105
+ ]
106
+ },
107
+ "additionalProperties": {
108
+ "type": "object",
109
+ "properties": {
110
+ "light": {
111
+ "description": "A hex color that overrides light mode"
112
+ },
113
+ "dark": {
114
+ "description": "A hex color that overrides dark mode"
115
+ }
116
+ },
117
+ "additionalProperties": false,
118
+ "description": "Override values for semantic color tokens like \"background-subtle\", \"border-default\", etc."
119
+ },
120
+ "description": "The name of the color to add overrides for, e.g. \"accent\""
121
+ },
122
+ "description": "An object with color names as keys"
123
+ },
124
+ "severity": {
125
+ "description": "An object with severity color names as keys",
126
+ "type": "object",
127
+ "propertyNames": {
128
+ "type": "string",
129
+ "enum": [
130
+ "info",
131
+ "success",
132
+ "warning",
133
+ "danger"
134
+ ]
135
+ },
136
+ "additionalProperties": {
137
+ "description": "A hex color, which is used for creating a color scale"
138
+ }
139
+ },
140
+ "linkVisited": {
141
+ "type": "object",
142
+ "properties": {
143
+ "light": {
144
+ "description": "A hex color that overrides light mode"
145
+ },
146
+ "dark": {
147
+ "description": "A hex color that overrides dark mode"
148
+ }
149
+ },
150
+ "additionalProperties": false,
151
+ "description": "Overrides for the \"link-visited\" color"
152
+ },
153
+ "focus": {
154
+ "type": "object",
155
+ "properties": {
156
+ "inner": {
157
+ "description": "Overrides for the \"focus-inner\" color",
158
+ "type": "object",
159
+ "properties": {
160
+ "light": {
161
+ "description": "A hex color that overrides light mode"
162
+ },
163
+ "dark": {
164
+ "description": "A hex color that overrides dark mode"
165
+ }
166
+ },
167
+ "additionalProperties": false
168
+ },
169
+ "outer": {
170
+ "description": "Overrides for the \"focus-outer\" color",
171
+ "type": "object",
172
+ "properties": {
173
+ "light": {
174
+ "description": "A hex color that overrides light mode"
175
+ },
176
+ "dark": {
177
+ "description": "A hex color that overrides dark mode"
178
+ }
179
+ },
180
+ "additionalProperties": false
181
+ }
182
+ },
183
+ "additionalProperties": false,
184
+ "description": "Overrides for the focus colors"
185
+ }
186
+ },
187
+ "additionalProperties": false,
188
+ "description": "Overrides for generated design tokens. Currently only supports colors defined in your theme"
189
+ }
190
+ },
191
+ "required": [
192
+ "colors"
193
+ ],
194
+ "additionalProperties": false,
195
+ "description": "An object defining a theme. The property name holding the object becomes the theme name."
196
+ },
197
+ "description": "An object with one or more themes. Each property defines a theme, and the property name is used as the theme name."
198
+ },
199
+ "clean": {
200
+ "type": "boolean",
201
+ "description": "Delete the output directory before building or creating tokens"
202
+ }
203
+ },
204
+ "required": [
205
+ "outDir",
206
+ "themes"
207
+ ],
208
+ "additionalProperties": false
209
+ }
@@ -0,0 +1,9 @@
1
+ //#region ../../node_modules/.pnpm/@tokens-studio+types@0.5.2/node_modules/@tokens-studio/types/dist/constants/BorderValues.js
2
+ var BorderValues;
3
+ (function(BorderValues) {
4
+ BorderValues["BORDER_COLOR"] = "color";
5
+ BorderValues["BORDER_WIDTH"] = "width";
6
+ BorderValues["BORDER_STYLE"] = "style";
7
+ })(BorderValues || (BorderValues = {}));
8
+ //#endregion
9
+ export { BorderValues };
@@ -0,0 +1,8 @@
1
+ //#region ../../node_modules/.pnpm/@tokens-studio+types@0.5.2/node_modules/@tokens-studio/types/dist/constants/BoxShadowTypes.js
2
+ var BoxShadowTypes;
3
+ (function(BoxShadowTypes) {
4
+ BoxShadowTypes["DROP_SHADOW"] = "dropShadow";
5
+ BoxShadowTypes["INNER_SHADOW"] = "innerShadow";
6
+ })(BoxShadowTypes || (BoxShadowTypes = {}));
7
+ //#endregion
8
+ export { BoxShadowTypes };
@@ -0,0 +1,13 @@
1
+ //#region ../../node_modules/.pnpm/@tokens-studio+types@0.5.2/node_modules/@tokens-studio/types/dist/constants/BoxShadowValues.js
2
+ var BoxShadowValues;
3
+ (function(BoxShadowValues) {
4
+ BoxShadowValues["TYPE"] = "type";
5
+ BoxShadowValues["COLOR"] = "color";
6
+ BoxShadowValues["X"] = "x";
7
+ BoxShadowValues["Y"] = "y";
8
+ BoxShadowValues["BLUR"] = "blur";
9
+ BoxShadowValues["SPREAD"] = "spread";
10
+ BoxShadowValues["BLEND_MODE"] = "blendMode";
11
+ })(BoxShadowValues || (BoxShadowValues = {}));
12
+ //#endregion
13
+ export { BoxShadowValues };
@@ -0,0 +1,10 @@
1
+ //#region ../../node_modules/.pnpm/@tokens-studio+types@0.5.2/node_modules/@tokens-studio/types/dist/constants/ColorModifierTypes.js
2
+ var ColorModifierTypes;
3
+ (function(ColorModifierTypes) {
4
+ ColorModifierTypes["LIGHTEN"] = "lighten";
5
+ ColorModifierTypes["DARKEN"] = "darken";
6
+ ColorModifierTypes["MIX"] = "mix";
7
+ ColorModifierTypes["ALPHA"] = "alpha";
8
+ })(ColorModifierTypes || (ColorModifierTypes = {}));
9
+ //#endregion
10
+ export { ColorModifierTypes };
@@ -0,0 +1,10 @@
1
+ //#region ../../node_modules/.pnpm/@tokens-studio+types@0.5.2/node_modules/@tokens-studio/types/dist/constants/ColorSpaceTypes.js
2
+ var ColorSpaceTypes;
3
+ (function(ColorSpaceTypes) {
4
+ ColorSpaceTypes["LCH"] = "lch";
5
+ ColorSpaceTypes["SRGB"] = "srgb";
6
+ ColorSpaceTypes["P3"] = "p3";
7
+ ColorSpaceTypes["HSL"] = "hsl";
8
+ })(ColorSpaceTypes || (ColorSpaceTypes = {}));
9
+ //#endregion
10
+ export { ColorSpaceTypes };
@@ -0,0 +1,53 @@
1
+ //#region ../../node_modules/.pnpm/@tokens-studio+types@0.5.2/node_modules/@tokens-studio/types/dist/constants/Properties.js
2
+ var Properties;
3
+ (function(Properties) {
4
+ Properties["sizing"] = "sizing";
5
+ Properties["height"] = "height";
6
+ Properties["width"] = "width";
7
+ Properties["spacing"] = "spacing";
8
+ Properties["verticalPadding"] = "verticalPadding";
9
+ Properties["horizontalPadding"] = "horizontalPadding";
10
+ Properties["paddingTop"] = "paddingTop";
11
+ Properties["paddingRight"] = "paddingRight";
12
+ Properties["paddingBottom"] = "paddingBottom";
13
+ Properties["paddingLeft"] = "paddingLeft";
14
+ Properties["itemSpacing"] = "itemSpacing";
15
+ Properties["fill"] = "fill";
16
+ Properties["backgroundBlur"] = "backgroundBlur";
17
+ Properties["border"] = "border";
18
+ Properties["borderTop"] = "borderTop";
19
+ Properties["borderRight"] = "borderRight";
20
+ Properties["borderBottom"] = "borderBottom";
21
+ Properties["borderLeft"] = "borderLeft";
22
+ Properties["borderColor"] = "borderColor";
23
+ Properties["borderRadius"] = "borderRadius";
24
+ Properties["borderRadiusTopLeft"] = "borderRadiusTopLeft";
25
+ Properties["borderRadiusTopRight"] = "borderRadiusTopRight";
26
+ Properties["borderRadiusBottomRight"] = "borderRadiusBottomRight";
27
+ Properties["borderRadiusBottomLeft"] = "borderRadiusBottomLeft";
28
+ Properties["borderWidth"] = "borderWidth";
29
+ Properties["borderWidthTop"] = "borderWidthTop";
30
+ Properties["borderWidthRight"] = "borderWidthRight";
31
+ Properties["borderWidthBottom"] = "borderWidthBottom";
32
+ Properties["borderWidthLeft"] = "borderWidthLeft";
33
+ Properties["boxShadow"] = "boxShadow";
34
+ Properties["opacity"] = "opacity";
35
+ Properties["fontFamilies"] = "fontFamilies";
36
+ Properties["fontWeights"] = "fontWeights";
37
+ Properties["fontSizes"] = "fontSizes";
38
+ Properties["lineHeights"] = "lineHeights";
39
+ Properties["typography"] = "typography";
40
+ Properties["composition"] = "composition";
41
+ Properties["letterSpacing"] = "letterSpacing";
42
+ Properties["paragraphSpacing"] = "paragraphSpacing";
43
+ Properties["textCase"] = "textCase";
44
+ Properties["dimension"] = "dimension";
45
+ Properties["textDecoration"] = "textDecoration";
46
+ Properties["asset"] = "asset";
47
+ Properties["tokenValue"] = "tokenValue";
48
+ Properties["value"] = "value";
49
+ Properties["tokenName"] = "tokenName";
50
+ Properties["description"] = "description";
51
+ })(Properties || (Properties = {}));
52
+ //#endregion
53
+ export { Properties };
@@ -0,0 +1,14 @@
1
+ //#region ../../node_modules/.pnpm/@tokens-studio+types@0.5.2/node_modules/@tokens-studio/types/dist/constants/StrokeStyleValues.js
2
+ var StrokeStyleValues;
3
+ (function(StrokeStyleValues) {
4
+ StrokeStyleValues["SOLID"] = "solid";
5
+ StrokeStyleValues["DASHED"] = "dashed";
6
+ StrokeStyleValues["DOTTED"] = "dotted";
7
+ StrokeStyleValues["DOUBLE"] = "double";
8
+ StrokeStyleValues["GROOVE"] = "groove";
9
+ StrokeStyleValues["RIDGE"] = "ridge";
10
+ StrokeStyleValues["OUTSET"] = "outset";
11
+ StrokeStyleValues["INSET"] = "inset";
12
+ })(StrokeStyleValues || (StrokeStyleValues = {}));
13
+ //#endregion
14
+ export { StrokeStyleValues };
@@ -0,0 +1,9 @@
1
+ //#region ../../node_modules/.pnpm/@tokens-studio+types@0.5.2/node_modules/@tokens-studio/types/dist/constants/TokenSetStatus.js
2
+ var TokenSetStatus;
3
+ (function(TokenSetStatus) {
4
+ TokenSetStatus["DISABLED"] = "disabled";
5
+ TokenSetStatus["SOURCE"] = "source";
6
+ TokenSetStatus["ENABLED"] = "enabled";
7
+ })(TokenSetStatus || (TokenSetStatus = {}));
8
+ //#endregion
9
+ export { TokenSetStatus };
@@ -0,0 +1,32 @@
1
+ //#region ../../node_modules/.pnpm/@tokens-studio+types@0.5.2/node_modules/@tokens-studio/types/dist/constants/TokenTypes.js
2
+ var TokenTypes;
3
+ (function(TokenTypes) {
4
+ TokenTypes["OTHER"] = "other";
5
+ TokenTypes["COLOR"] = "color";
6
+ TokenTypes["BORDER_RADIUS"] = "borderRadius";
7
+ TokenTypes["SIZING"] = "sizing";
8
+ TokenTypes["SPACING"] = "spacing";
9
+ TokenTypes["TEXT"] = "text";
10
+ TokenTypes["TYPOGRAPHY"] = "typography";
11
+ TokenTypes["OPACITY"] = "opacity";
12
+ TokenTypes["BORDER_WIDTH"] = "borderWidth";
13
+ TokenTypes["STROKE_STYLE"] = "strokeStyle";
14
+ TokenTypes["BOX_SHADOW"] = "boxShadow";
15
+ TokenTypes["FONT_FAMILIES"] = "fontFamilies";
16
+ TokenTypes["FONT_WEIGHTS"] = "fontWeights";
17
+ TokenTypes["LINE_HEIGHTS"] = "lineHeights";
18
+ TokenTypes["FONT_SIZES"] = "fontSizes";
19
+ TokenTypes["LETTER_SPACING"] = "letterSpacing";
20
+ TokenTypes["PARAGRAPH_SPACING"] = "paragraphSpacing";
21
+ TokenTypes["PARAGRAPH_INDENT"] = "paragraphIndent";
22
+ TokenTypes["TEXT_DECORATION"] = "textDecoration";
23
+ TokenTypes["TEXT_CASE"] = "textCase";
24
+ TokenTypes["COMPOSITION"] = "composition";
25
+ TokenTypes["DIMENSION"] = "dimension";
26
+ TokenTypes["BORDER"] = "border";
27
+ TokenTypes["ASSET"] = "asset";
28
+ TokenTypes["BOOLEAN"] = "boolean";
29
+ TokenTypes["NUMBER"] = "number";
30
+ })(TokenTypes || (TokenTypes = {}));
31
+ //#endregion
32
+ export { TokenTypes };
@@ -0,0 +1,15 @@
1
+ //#region ../../node_modules/.pnpm/@tokens-studio+types@0.5.2/node_modules/@tokens-studio/types/dist/constants/TypographyValues.js
2
+ var TypographyValues;
3
+ (function(TypographyValues) {
4
+ TypographyValues["FONT_FAMILY"] = "fontFamily";
5
+ TypographyValues["FONT_WEIGHT"] = "fontWeight";
6
+ TypographyValues["LINE_HEIGHT"] = "lineHeight";
7
+ TypographyValues["FONT_SIZE"] = "fontSize";
8
+ TypographyValues["LETTER_SPACING"] = "letterSpacing";
9
+ TypographyValues["PARAGRAPH_SPACING"] = "paragraphSpacing";
10
+ TypographyValues["PARAGRAPH_INDENT"] = "paragraphIndent";
11
+ TypographyValues["TEXT_DECORATION"] = "textDecoration";
12
+ TypographyValues["TEXT_CASE"] = "textCase";
13
+ })(TypographyValues || (TypographyValues = {}));
14
+ //#endregion
15
+ export { TypographyValues };
@@ -0,0 +1,11 @@
1
+ import "../constants/BoxShadowTypes.js";
2
+ import "../constants/ColorModifierTypes.js";
3
+ import "../constants/ColorSpaceTypes.js";
4
+ import "../constants/Properties.js";
5
+ import "../constants/TokenSetStatus.js";
6
+ import "../constants/TokenTypes.js";
7
+ import "../constants/BorderValues.js";
8
+ import "../constants/StrokeStyleValues.js";
9
+ import "../constants/BoxShadowValues.js";
10
+ import "../constants/TypographyValues.js";
11
+ export {};
@@ -0,0 +1,5 @@
1
+ //#region package.json
2
+ var name = "@digdir/designsystemet";
3
+ var version = "0.0.0-deps-tsdown-20260421103939";
4
+ //#endregion
5
+ export { name, version };
@@ -0,0 +1,56 @@
1
+ import type { ColorMetadataByName, ColorNumber, CssColor, GlobalColors } from './types.js';
2
+ export declare const baseColors: Record<GlobalColors, CssColor>;
3
+ export declare const dsLinkColor = "#663299";
4
+ export declare const colorMetadata: ColorMetadataByName;
5
+ export declare const getColorMetadataByNumber: (number: ColorNumber) => ({
6
+ name: "background-default";
7
+ number: 1;
8
+ } & import("./types.js").ColorMetadata) | ({
9
+ name: "background-tinted";
10
+ number: 2;
11
+ } & import("./types.js").ColorMetadata) | ({
12
+ name: "surface-default";
13
+ number: 3;
14
+ } & import("./types.js").ColorMetadata) | ({
15
+ name: "surface-tinted";
16
+ number: 4;
17
+ } & import("./types.js").ColorMetadata) | ({
18
+ name: "surface-hover";
19
+ number: 5;
20
+ } & import("./types.js").ColorMetadata) | ({
21
+ name: "surface-active";
22
+ number: 6;
23
+ } & import("./types.js").ColorMetadata) | ({
24
+ name: "border-subtle";
25
+ number: 7;
26
+ } & import("./types.js").ColorMetadata) | ({
27
+ name: "border-default";
28
+ number: 8;
29
+ } & import("./types.js").ColorMetadata) | ({
30
+ name: "border-strong";
31
+ number: 9;
32
+ } & import("./types.js").ColorMetadata) | ({
33
+ name: "text-subtle";
34
+ number: 10;
35
+ } & import("./types.js").ColorMetadata) | ({
36
+ name: "text-default";
37
+ number: 11;
38
+ } & import("./types.js").ColorMetadata) | ({
39
+ name: "base-default";
40
+ number: 12;
41
+ } & import("./types.js").ColorMetadata) | ({
42
+ name: "base-hover";
43
+ number: 13;
44
+ } & import("./types.js").ColorMetadata) | ({
45
+ name: "base-active";
46
+ number: 14;
47
+ } & import("./types.js").ColorMetadata) | ({
48
+ name: "base-contrast-subtle";
49
+ number: 15;
50
+ } & import("./types.js").ColorMetadata) | ({
51
+ name: "base-contrast-default";
52
+ number: 16;
53
+ } & import("./types.js").ColorMetadata);
54
+ export declare const colorNames: Array<keyof typeof colorMetadata>;
55
+ export declare const baseColorNames: Array<keyof typeof baseColors>;
56
+ //# sourceMappingURL=colorMetadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colorMetadata.d.ts","sourceRoot":"","sources":["../../../src/colors/colorMetadata.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE3F,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,QAAQ,CAKrD,CAAC;AAEF,eAAO,MAAM,WAAW,YAAY,CAAC;AAErC,eAAO,MAAM,aAAa,EAAE,mBAiP3B,CAAC;AAIF,eAAO,MAAM,wBAAwB,GAAI,QAAQ,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCAE3D,CAAC;AAEF,eAAO,MAAM,UAAU,EAAiC,KAAK,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAE1F,eAAO,MAAM,cAAc,EAA8B,KAAK,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC"}