@digdir/designsystemet 1.0.4 → 1.0.6

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 (44) hide show
  1. package/LICENSE +7 -0
  2. package/dist/bin/designsystemet.js +623 -593
  3. package/dist/src/colors/index.js +32 -0
  4. package/dist/src/colors/theme.js +1 -0
  5. package/dist/src/colors/utils.d.ts +13 -0
  6. package/dist/src/colors/utils.d.ts.map +1 -1
  7. package/dist/src/colors/utils.js +32 -0
  8. package/dist/src/config.js +1 -0
  9. package/dist/src/index.js +196 -142
  10. package/dist/src/scripts/createJsonSchema.js +39 -38
  11. package/dist/src/scripts/update-design-tokens.js +1 -0
  12. package/dist/src/tokens/build.d.ts.map +1 -1
  13. package/dist/src/tokens/build.js +353 -590
  14. package/dist/src/tokens/create/generators/$designsystemet.js +22 -19
  15. package/dist/src/tokens/create/generators/$themes.js +10 -10
  16. package/dist/src/tokens/create/generators/color.js +1 -0
  17. package/dist/src/tokens/create/write.js +32 -29
  18. package/dist/src/tokens/create.js +1 -0
  19. package/dist/src/tokens/format.d.ts +4 -5
  20. package/dist/src/tokens/format.d.ts.map +1 -1
  21. package/dist/src/tokens/format.js +165 -143
  22. package/dist/src/tokens/index.js +165 -142
  23. package/dist/src/tokens/process/configs/color.js +26 -22
  24. package/dist/src/tokens/process/configs/semantic.js +16 -12
  25. package/dist/src/tokens/process/configs/shared.js +16 -12
  26. package/dist/src/tokens/process/configs/storefront.js +16 -12
  27. package/dist/src/tokens/process/configs/typography.js +16 -12
  28. package/dist/src/tokens/process/configs.js +26 -22
  29. package/dist/src/tokens/process/formats/css/color.js +16 -12
  30. package/dist/src/tokens/process/formats/css/semantic.js +16 -12
  31. package/dist/src/tokens/process/formats/css.js +16 -12
  32. package/dist/src/tokens/process/formats/js-tokens.js +16 -12
  33. package/dist/src/tokens/process/platform.js +27 -23
  34. package/dist/src/tokens/process/theme.d.ts +27 -0
  35. package/dist/src/tokens/process/theme.d.ts.map +1 -0
  36. package/dist/src/tokens/process/theme.js +174 -0
  37. package/dist/src/tokens/process/transformers.js +16 -12
  38. package/dist/src/tokens/process/utils/getMultidimensionalThemes.js +26 -22
  39. package/dist/src/tokens/types.d.ts +4 -0
  40. package/dist/src/tokens/types.d.ts.map +1 -1
  41. package/dist/src/tokens/utils.d.ts +2 -2
  42. package/dist/src/tokens/utils.d.ts.map +1 -1
  43. package/dist/src/tokens/utils.js +16 -12
  44. package/package.json +31 -28
@@ -1,11 +1,11 @@
1
1
  // package.json
2
2
  var package_default = {
3
3
  name: "@digdir/designsystemet",
4
- version: "1.0.4",
4
+ version: "1.0.6",
5
5
  description: "CLI for Designsystemet",
6
6
  author: "Designsystemet team",
7
7
  engines: {
8
- node: ">=22.14.0"
8
+ node: ">=22.15.0"
9
9
  },
10
10
  repository: {
11
11
  type: "git",
@@ -35,55 +35,58 @@ var package_default = {
35
35
  },
36
36
  scripts: {
37
37
  designsystemet: "tsx ./bin/designsystemet.ts",
38
- "build:tokens": "yarn designsystemet tokens build -p -t ../../design-tokens -o ../../packages/theme/brand --clean",
38
+ "build:tokens": "pnpm run designsystemet tokens build -p -t ../../design-tokens -o ../../packages/theme/brand --clean",
39
39
  "build:tokens:debug": "tsx --inspect-brk ./bin/designsystemet.ts tokens build -p -t ../../design-tokens -o ../../packages/theme/brand --clean",
40
- build: "tsup && yarn build:types && yarn build:json-schema",
40
+ build: "tsup && pnpm build:types && pnpm build:json-schema",
41
41
  "build:types": "tsc --emitDeclarationOnly --declaration",
42
42
  "build:json-schema": "tsx ./src/scripts/createJsonSchema.ts",
43
43
  types: "tsc --noEmit",
44
- "test:tokens-create-options": "yarn designsystemet tokens create -m dominant:#007682 -n #003333 -b 99 -o ./test-tokens-create --theme options-test --clean",
45
- "test:tokens-create-config": "yarn designsystemet tokens create --config ./test-tokens-create-complex.config.json",
46
- "test:tokens-build": "yarn designsystemet tokens build -t ./test-tokens-create -o ./test-tokens-build --clean",
47
- "test:tokens-create-and-build-options": "yarn test:tokens-create-options && yarn test:tokens-build",
48
- "test:tokens-create-and-build-config": "yarn test:tokens-create-config && yarn test:tokens-build",
49
- test: "yarn test:tokens-create-and-build-options && yarn test:tokens-create-and-build-config",
50
- "internal:tokens-create": "yarn designsystemet tokens create --config ./internal.config.json",
44
+ "test:tokens-create-options": 'pnpm run designsystemet tokens create -m dominant:"#007682" -n "#003333" -b 99 -o ./test-tokens/options --theme options --clean',
45
+ "test:tokens-create-config": "pnpm run designsystemet tokens create --config ./test/test-tokens.config.json",
46
+ "test:tokens-build": "pnpm run designsystemet tokens build -t ./test-tokens/options -o ./test-tokens/options-build --clean",
47
+ "test:tokens-build-config": "pnpm run designsystemet tokens build -t ./test-tokens/config -o ./test-tokens/config-build --clean",
48
+ "test:tokens-create-and-build-options": "pnpm test:tokens-create-options && pnpm test:tokens-build",
49
+ "test:tokens-create-and-build-config": "pnpm test:tokens-create-config && pnpm test:tokens-build-config",
50
+ test: "pnpm test:tokens-create-and-build-options && pnpm test:tokens-create-and-build-config",
51
+ "internal:tokens-create": "pnpm run designsystemet tokens create --config ./internal.config.json",
51
52
  "update:template": "tsx ./src/scripts/update-template.ts",
52
- "update:design-tokens": "yarn internal:tokens-create && tsx ./src/scripts/update-design-tokens.ts",
53
- verify: "yarn test && yarn update:template && yarn update:design-tokens"
53
+ "update:design-tokens": "pnpm internal:tokens-create && tsx ./src/scripts/update-design-tokens.ts",
54
+ verify: "pnpm test && pnpm update:template && pnpm update:design-tokens"
54
55
  },
55
56
  dependencies: {
56
57
  "@commander-js/extra-typings": "^13.1.0",
57
- "@tokens-studio/sd-transforms": "1.2.12",
58
+ "@tokens-studio/sd-transforms": "1.3.0",
58
59
  "apca-w3": "^0.1.9",
59
60
  chalk: "^5.4.1",
60
61
  "change-case": "^5.4.4",
61
62
  "chroma-js": "^3.1.2",
63
+ "colorjs.io": "^0.6.0-alpha.1",
62
64
  commander: "^13.1.0",
63
65
  "fast-glob": "^3.3.3",
64
66
  hsluv: "^1.0.1",
65
67
  "object-hash": "^3.0.0",
66
68
  postcss: "^8.5.3",
67
69
  ramda: "^0.30.1",
68
- "style-dictionary": "^4.3.3",
69
- zod: "^3.24.2",
70
+ "style-dictionary": "^4.4.0",
71
+ zod: "^3.24.4",
70
72
  "zod-validation-error": "^3.4.0"
71
73
  },
72
74
  devDependencies: {
75
+ "@tokens-studio/types": "0.5.2",
73
76
  "@types/apca-w3": "^0.1.3",
74
77
  "@types/chroma-js": "^3.1.1",
75
78
  "@types/fs-extra": "^11.0.4",
76
79
  "@types/glob": "^8.1.0",
77
80
  "@types/jscodeshift": "^0.12.0",
78
- "@types/node": "^22.14.0",
81
+ "@types/node": "^22.15.3",
79
82
  "@types/object-hash": "^3.0.6",
80
83
  "@types/ramda": "^0.30.2",
81
84
  "fs-extra": "^11.3.0",
82
85
  "ts-toolbelt": "^9.6.0",
83
86
  tslib: "^2.8.1",
84
87
  tsup: "^8.4.0",
85
- tsx: "^4.19.3",
86
- typescript: "^5.8.2",
88
+ tsx: "^4.19.4",
89
+ typescript: "^5.8.3",
87
90
  "zod-to-json-schema": "^3.24.5"
88
91
  }
89
92
  };
@@ -1,11 +1,11 @@
1
- // ../../node_modules/@tokens-studio/types/dist/constants/BoxShadowTypes.js
1
+ // ../../node_modules/.pnpm/@tokens-studio+types@0.5.2/node_modules/@tokens-studio/types/dist/constants/BoxShadowTypes.js
2
2
  var BoxShadowTypes;
3
3
  (function(BoxShadowTypes2) {
4
4
  BoxShadowTypes2["DROP_SHADOW"] = "dropShadow";
5
5
  BoxShadowTypes2["INNER_SHADOW"] = "innerShadow";
6
6
  })(BoxShadowTypes || (BoxShadowTypes = {}));
7
7
 
8
- // ../../node_modules/@tokens-studio/types/dist/constants/ColorModifierTypes.js
8
+ // ../../node_modules/.pnpm/@tokens-studio+types@0.5.2/node_modules/@tokens-studio/types/dist/constants/ColorModifierTypes.js
9
9
  var ColorModifierTypes;
10
10
  (function(ColorModifierTypes2) {
11
11
  ColorModifierTypes2["LIGHTEN"] = "lighten";
@@ -14,7 +14,7 @@ var ColorModifierTypes;
14
14
  ColorModifierTypes2["ALPHA"] = "alpha";
15
15
  })(ColorModifierTypes || (ColorModifierTypes = {}));
16
16
 
17
- // ../../node_modules/@tokens-studio/types/dist/constants/ColorSpaceTypes.js
17
+ // ../../node_modules/.pnpm/@tokens-studio+types@0.5.2/node_modules/@tokens-studio/types/dist/constants/ColorSpaceTypes.js
18
18
  var ColorSpaceTypes;
19
19
  (function(ColorSpaceTypes2) {
20
20
  ColorSpaceTypes2["LCH"] = "lch";
@@ -23,7 +23,7 @@ var ColorSpaceTypes;
23
23
  ColorSpaceTypes2["HSL"] = "hsl";
24
24
  })(ColorSpaceTypes || (ColorSpaceTypes = {}));
25
25
 
26
- // ../../node_modules/@tokens-studio/types/dist/constants/Properties.js
26
+ // ../../node_modules/.pnpm/@tokens-studio+types@0.5.2/node_modules/@tokens-studio/types/dist/constants/Properties.js
27
27
  var Properties;
28
28
  (function(Properties2) {
29
29
  Properties2["sizing"] = "sizing";
@@ -75,7 +75,7 @@ var Properties;
75
75
  Properties2["description"] = "description";
76
76
  })(Properties || (Properties = {}));
77
77
 
78
- // ../../node_modules/@tokens-studio/types/dist/constants/TokenSetStatus.js
78
+ // ../../node_modules/.pnpm/@tokens-studio+types@0.5.2/node_modules/@tokens-studio/types/dist/constants/TokenSetStatus.js
79
79
  var TokenSetStatus;
80
80
  (function(TokenSetStatus2) {
81
81
  TokenSetStatus2["DISABLED"] = "disabled";
@@ -83,7 +83,7 @@ var TokenSetStatus;
83
83
  TokenSetStatus2["ENABLED"] = "enabled";
84
84
  })(TokenSetStatus || (TokenSetStatus = {}));
85
85
 
86
- // ../../node_modules/@tokens-studio/types/dist/constants/TokenTypes.js
86
+ // ../../node_modules/.pnpm/@tokens-studio+types@0.5.2/node_modules/@tokens-studio/types/dist/constants/TokenTypes.js
87
87
  var TokenTypes;
88
88
  (function(TokenTypes2) {
89
89
  TokenTypes2["OTHER"] = "other";
@@ -114,7 +114,7 @@ var TokenTypes;
114
114
  TokenTypes2["NUMBER"] = "number";
115
115
  })(TokenTypes || (TokenTypes = {}));
116
116
 
117
- // ../../node_modules/@tokens-studio/types/dist/constants/BorderValues.js
117
+ // ../../node_modules/.pnpm/@tokens-studio+types@0.5.2/node_modules/@tokens-studio/types/dist/constants/BorderValues.js
118
118
  var BorderValues;
119
119
  (function(BorderValues2) {
120
120
  BorderValues2["BORDER_COLOR"] = "color";
@@ -122,7 +122,7 @@ var BorderValues;
122
122
  BorderValues2["BORDER_STYLE"] = "style";
123
123
  })(BorderValues || (BorderValues = {}));
124
124
 
125
- // ../../node_modules/@tokens-studio/types/dist/constants/StrokeStyleValues.js
125
+ // ../../node_modules/.pnpm/@tokens-studio+types@0.5.2/node_modules/@tokens-studio/types/dist/constants/StrokeStyleValues.js
126
126
  var StrokeStyleValues;
127
127
  (function(StrokeStyleValues2) {
128
128
  StrokeStyleValues2["SOLID"] = "solid";
@@ -135,7 +135,7 @@ var StrokeStyleValues;
135
135
  StrokeStyleValues2["INSET"] = "inset";
136
136
  })(StrokeStyleValues || (StrokeStyleValues = {}));
137
137
 
138
- // ../../node_modules/@tokens-studio/types/dist/constants/BoxShadowValues.js
138
+ // ../../node_modules/.pnpm/@tokens-studio+types@0.5.2/node_modules/@tokens-studio/types/dist/constants/BoxShadowValues.js
139
139
  var BoxShadowValues;
140
140
  (function(BoxShadowValues2) {
141
141
  BoxShadowValues2["TYPE"] = "type";
@@ -147,7 +147,7 @@ var BoxShadowValues;
147
147
  BoxShadowValues2["BLEND_MODE"] = "blendMode";
148
148
  })(BoxShadowValues || (BoxShadowValues = {}));
149
149
 
150
- // ../../node_modules/@tokens-studio/types/dist/constants/TypographyValues.js
150
+ // ../../node_modules/.pnpm/@tokens-studio+types@0.5.2/node_modules/@tokens-studio/types/dist/constants/TypographyValues.js
151
151
  var TypographyValues;
152
152
  (function(TypographyValues2) {
153
153
  TypographyValues2["FONT_FAMILY"] = "fontFamily";
@@ -3,6 +3,7 @@ import * as R3 from "ramda";
3
3
 
4
4
  // src/colors/utils.ts
5
5
  import chroma from "chroma-js";
6
+ import Colorjs from "colorjs.io";
6
7
  import { Hsluv } from "hsluv";
7
8
  var getLuminanceFromLightness = (lightness) => {
8
9
  const conv = new Hsluv();
@@ -39,11 +39,11 @@ var readFile = async (path2, dry) => {
39
39
  // package.json
40
40
  var package_default = {
41
41
  name: "@digdir/designsystemet",
42
- version: "1.0.4",
42
+ version: "1.0.6",
43
43
  description: "CLI for Designsystemet",
44
44
  author: "Designsystemet team",
45
45
  engines: {
46
- node: ">=22.14.0"
46
+ node: ">=22.15.0"
47
47
  },
48
48
  repository: {
49
49
  type: "git",
@@ -73,55 +73,58 @@ var package_default = {
73
73
  },
74
74
  scripts: {
75
75
  designsystemet: "tsx ./bin/designsystemet.ts",
76
- "build:tokens": "yarn designsystemet tokens build -p -t ../../design-tokens -o ../../packages/theme/brand --clean",
76
+ "build:tokens": "pnpm run designsystemet tokens build -p -t ../../design-tokens -o ../../packages/theme/brand --clean",
77
77
  "build:tokens:debug": "tsx --inspect-brk ./bin/designsystemet.ts tokens build -p -t ../../design-tokens -o ../../packages/theme/brand --clean",
78
- build: "tsup && yarn build:types && yarn build:json-schema",
78
+ build: "tsup && pnpm build:types && pnpm build:json-schema",
79
79
  "build:types": "tsc --emitDeclarationOnly --declaration",
80
80
  "build:json-schema": "tsx ./src/scripts/createJsonSchema.ts",
81
81
  types: "tsc --noEmit",
82
- "test:tokens-create-options": "yarn designsystemet tokens create -m dominant:#007682 -n #003333 -b 99 -o ./test-tokens-create --theme options-test --clean",
83
- "test:tokens-create-config": "yarn designsystemet tokens create --config ./test-tokens-create-complex.config.json",
84
- "test:tokens-build": "yarn designsystemet tokens build -t ./test-tokens-create -o ./test-tokens-build --clean",
85
- "test:tokens-create-and-build-options": "yarn test:tokens-create-options && yarn test:tokens-build",
86
- "test:tokens-create-and-build-config": "yarn test:tokens-create-config && yarn test:tokens-build",
87
- test: "yarn test:tokens-create-and-build-options && yarn test:tokens-create-and-build-config",
88
- "internal:tokens-create": "yarn designsystemet tokens create --config ./internal.config.json",
82
+ "test:tokens-create-options": 'pnpm run designsystemet tokens create -m dominant:"#007682" -n "#003333" -b 99 -o ./test-tokens/options --theme options --clean',
83
+ "test:tokens-create-config": "pnpm run designsystemet tokens create --config ./test/test-tokens.config.json",
84
+ "test:tokens-build": "pnpm run designsystemet tokens build -t ./test-tokens/options -o ./test-tokens/options-build --clean",
85
+ "test:tokens-build-config": "pnpm run designsystemet tokens build -t ./test-tokens/config -o ./test-tokens/config-build --clean",
86
+ "test:tokens-create-and-build-options": "pnpm test:tokens-create-options && pnpm test:tokens-build",
87
+ "test:tokens-create-and-build-config": "pnpm test:tokens-create-config && pnpm test:tokens-build-config",
88
+ test: "pnpm test:tokens-create-and-build-options && pnpm test:tokens-create-and-build-config",
89
+ "internal:tokens-create": "pnpm run designsystemet tokens create --config ./internal.config.json",
89
90
  "update:template": "tsx ./src/scripts/update-template.ts",
90
- "update:design-tokens": "yarn internal:tokens-create && tsx ./src/scripts/update-design-tokens.ts",
91
- verify: "yarn test && yarn update:template && yarn update:design-tokens"
91
+ "update:design-tokens": "pnpm internal:tokens-create && tsx ./src/scripts/update-design-tokens.ts",
92
+ verify: "pnpm test && pnpm update:template && pnpm update:design-tokens"
92
93
  },
93
94
  dependencies: {
94
95
  "@commander-js/extra-typings": "^13.1.0",
95
- "@tokens-studio/sd-transforms": "1.2.12",
96
+ "@tokens-studio/sd-transforms": "1.3.0",
96
97
  "apca-w3": "^0.1.9",
97
98
  chalk: "^5.4.1",
98
99
  "change-case": "^5.4.4",
99
100
  "chroma-js": "^3.1.2",
101
+ "colorjs.io": "^0.6.0-alpha.1",
100
102
  commander: "^13.1.0",
101
103
  "fast-glob": "^3.3.3",
102
104
  hsluv: "^1.0.1",
103
105
  "object-hash": "^3.0.0",
104
106
  postcss: "^8.5.3",
105
107
  ramda: "^0.30.1",
106
- "style-dictionary": "^4.3.3",
107
- zod: "^3.24.2",
108
+ "style-dictionary": "^4.4.0",
109
+ zod: "^3.24.4",
108
110
  "zod-validation-error": "^3.4.0"
109
111
  },
110
112
  devDependencies: {
113
+ "@tokens-studio/types": "0.5.2",
111
114
  "@types/apca-w3": "^0.1.3",
112
115
  "@types/chroma-js": "^3.1.1",
113
116
  "@types/fs-extra": "^11.0.4",
114
117
  "@types/glob": "^8.1.0",
115
118
  "@types/jscodeshift": "^0.12.0",
116
- "@types/node": "^22.14.0",
119
+ "@types/node": "^22.15.3",
117
120
  "@types/object-hash": "^3.0.6",
118
121
  "@types/ramda": "^0.30.2",
119
122
  "fs-extra": "^11.3.0",
120
123
  "ts-toolbelt": "^9.6.0",
121
124
  tslib: "^2.8.1",
122
125
  tsup: "^8.4.0",
123
- tsx: "^4.19.3",
124
- typescript: "^5.8.2",
126
+ tsx: "^4.19.4",
127
+ typescript: "^5.8.3",
125
128
  "zod-to-json-schema": "^3.24.5"
126
129
  }
127
130
  };
@@ -161,14 +164,14 @@ function generate$Metadata(schemes, themes, colors) {
161
164
  };
162
165
  }
163
166
 
164
- // ../../node_modules/@tokens-studio/types/dist/constants/BoxShadowTypes.js
167
+ // ../../node_modules/.pnpm/@tokens-studio+types@0.5.2/node_modules/@tokens-studio/types/dist/constants/BoxShadowTypes.js
165
168
  var BoxShadowTypes;
166
169
  (function(BoxShadowTypes2) {
167
170
  BoxShadowTypes2["DROP_SHADOW"] = "dropShadow";
168
171
  BoxShadowTypes2["INNER_SHADOW"] = "innerShadow";
169
172
  })(BoxShadowTypes || (BoxShadowTypes = {}));
170
173
 
171
- // ../../node_modules/@tokens-studio/types/dist/constants/ColorModifierTypes.js
174
+ // ../../node_modules/.pnpm/@tokens-studio+types@0.5.2/node_modules/@tokens-studio/types/dist/constants/ColorModifierTypes.js
172
175
  var ColorModifierTypes;
173
176
  (function(ColorModifierTypes2) {
174
177
  ColorModifierTypes2["LIGHTEN"] = "lighten";
@@ -177,7 +180,7 @@ var ColorModifierTypes;
177
180
  ColorModifierTypes2["ALPHA"] = "alpha";
178
181
  })(ColorModifierTypes || (ColorModifierTypes = {}));
179
182
 
180
- // ../../node_modules/@tokens-studio/types/dist/constants/ColorSpaceTypes.js
183
+ // ../../node_modules/.pnpm/@tokens-studio+types@0.5.2/node_modules/@tokens-studio/types/dist/constants/ColorSpaceTypes.js
181
184
  var ColorSpaceTypes;
182
185
  (function(ColorSpaceTypes2) {
183
186
  ColorSpaceTypes2["LCH"] = "lch";
@@ -186,7 +189,7 @@ var ColorSpaceTypes;
186
189
  ColorSpaceTypes2["HSL"] = "hsl";
187
190
  })(ColorSpaceTypes || (ColorSpaceTypes = {}));
188
191
 
189
- // ../../node_modules/@tokens-studio/types/dist/constants/Properties.js
192
+ // ../../node_modules/.pnpm/@tokens-studio+types@0.5.2/node_modules/@tokens-studio/types/dist/constants/Properties.js
190
193
  var Properties;
191
194
  (function(Properties2) {
192
195
  Properties2["sizing"] = "sizing";
@@ -238,7 +241,7 @@ var Properties;
238
241
  Properties2["description"] = "description";
239
242
  })(Properties || (Properties = {}));
240
243
 
241
- // ../../node_modules/@tokens-studio/types/dist/constants/TokenSetStatus.js
244
+ // ../../node_modules/.pnpm/@tokens-studio+types@0.5.2/node_modules/@tokens-studio/types/dist/constants/TokenSetStatus.js
242
245
  var TokenSetStatus;
243
246
  (function(TokenSetStatus2) {
244
247
  TokenSetStatus2["DISABLED"] = "disabled";
@@ -246,7 +249,7 @@ var TokenSetStatus;
246
249
  TokenSetStatus2["ENABLED"] = "enabled";
247
250
  })(TokenSetStatus || (TokenSetStatus = {}));
248
251
 
249
- // ../../node_modules/@tokens-studio/types/dist/constants/TokenTypes.js
252
+ // ../../node_modules/.pnpm/@tokens-studio+types@0.5.2/node_modules/@tokens-studio/types/dist/constants/TokenTypes.js
250
253
  var TokenTypes;
251
254
  (function(TokenTypes2) {
252
255
  TokenTypes2["OTHER"] = "other";
@@ -277,7 +280,7 @@ var TokenTypes;
277
280
  TokenTypes2["NUMBER"] = "number";
278
281
  })(TokenTypes || (TokenTypes = {}));
279
282
 
280
- // ../../node_modules/@tokens-studio/types/dist/constants/BorderValues.js
283
+ // ../../node_modules/.pnpm/@tokens-studio+types@0.5.2/node_modules/@tokens-studio/types/dist/constants/BorderValues.js
281
284
  var BorderValues;
282
285
  (function(BorderValues2) {
283
286
  BorderValues2["BORDER_COLOR"] = "color";
@@ -285,7 +288,7 @@ var BorderValues;
285
288
  BorderValues2["BORDER_STYLE"] = "style";
286
289
  })(BorderValues || (BorderValues = {}));
287
290
 
288
- // ../../node_modules/@tokens-studio/types/dist/constants/StrokeStyleValues.js
291
+ // ../../node_modules/.pnpm/@tokens-studio+types@0.5.2/node_modules/@tokens-studio/types/dist/constants/StrokeStyleValues.js
289
292
  var StrokeStyleValues;
290
293
  (function(StrokeStyleValues2) {
291
294
  StrokeStyleValues2["SOLID"] = "solid";
@@ -298,7 +301,7 @@ var StrokeStyleValues;
298
301
  StrokeStyleValues2["INSET"] = "inset";
299
302
  })(StrokeStyleValues || (StrokeStyleValues = {}));
300
303
 
301
- // ../../node_modules/@tokens-studio/types/dist/constants/BoxShadowValues.js
304
+ // ../../node_modules/.pnpm/@tokens-studio+types@0.5.2/node_modules/@tokens-studio/types/dist/constants/BoxShadowValues.js
302
305
  var BoxShadowValues;
303
306
  (function(BoxShadowValues2) {
304
307
  BoxShadowValues2["TYPE"] = "type";
@@ -310,7 +313,7 @@ var BoxShadowValues;
310
313
  BoxShadowValues2["BLEND_MODE"] = "blendMode";
311
314
  })(BoxShadowValues || (BoxShadowValues = {}));
312
315
 
313
- // ../../node_modules/@tokens-studio/types/dist/constants/TypographyValues.js
316
+ // ../../node_modules/.pnpm/@tokens-studio+types@0.5.2/node_modules/@tokens-studio/types/dist/constants/TypographyValues.js
314
317
  var TypographyValues;
315
318
  (function(TypographyValues2) {
316
319
  TypographyValues2["FONT_FAMILY"] = "fontFamily";
@@ -994,6 +994,7 @@ import * as R4 from "ramda";
994
994
 
995
995
  // src/colors/utils.ts
996
996
  import chroma from "chroma-js";
997
+ import Colorjs from "colorjs.io";
997
998
  import { Hsluv } from "hsluv";
998
999
  var getLuminanceFromLightness = (lightness) => {
999
1000
  const conv = new Hsluv();
@@ -1,7 +1,7 @@
1
- import { type FormatOptions, type ProcessReturn } from './process/platform.js';
2
- import type { OutputFile, Theme } from './types.js';
3
- export declare const formatTokens: (options: Omit<FormatOptions, "process">) => Promise<ProcessReturn>;
4
- export declare const formatTheme: (themeConfig: Theme) => Promise<ProcessReturn>;
1
+ import { type FormatOptions } from './process/platform.js';
2
+ import type { Theme } from './types.js';
3
+ export declare const formatTokens: (options: Omit<FormatOptions, "process">) => Promise<import("./process/platform.js").ProcessReturn>;
4
+ export declare const formatTheme: (themeConfig: Theme) => Promise<import("./process/platform.js").ProcessReturn>;
5
5
  /**
6
6
  * Formats a theme configuration into CSS.
7
7
  *
@@ -12,5 +12,4 @@ export declare const formatTheme: (themeConfig: Theme) => Promise<ProcessReturn>
12
12
  * @returns A promise that resolves to the generated CSS string.
13
13
  */
14
14
  export declare const formatThemeCSS: (themeConfig: Theme) => Promise<string>;
15
- export declare const createThemeCSSFiles: (processedBuilds: ProcessReturn) => OutputFile[];
16
15
  //# sourceMappingURL=format.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../src/tokens/format.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,aAAa,EAAmB,MAAM,uBAAuB,CAAC;AAChG,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEpD,eAAO,MAAM,YAAY,GAAU,SAAS,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC,2BAOzE,CAAC;AAEF,eAAO,MAAM,WAAW,GAAU,aAAa,KAAK,2BAYnD,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,GAAU,aAAa,KAAK,oBAItD,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,iBAAiB,aAAa,iBA2EjE,CAAC"}
1
+ {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../src/tokens/format.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,aAAa,EAAmB,MAAM,uBAAuB,CAAC;AAE5E,OAAO,KAAK,EAAc,KAAK,EAAE,MAAM,YAAY,CAAC;AAEpD,eAAO,MAAM,YAAY,GAAU,SAAS,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC,2DAOzE,CAAC;AAEF,eAAO,MAAM,WAAW,GAAU,aAAa,KAAK,2DAYnD,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,GAAU,aAAa,KAAK,oBAItD,CAAC"}