@digdir/designsystemet 1.0.5 → 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.
- package/LICENSE +7 -0
- package/dist/bin/designsystemet.js +49 -42
- package/dist/src/colors/index.js +32 -0
- package/dist/src/colors/theme.js +1 -0
- package/dist/src/colors/utils.d.ts +13 -0
- package/dist/src/colors/utils.d.ts.map +1 -1
- package/dist/src/colors/utils.js +32 -0
- package/dist/src/config.js +1 -0
- package/dist/src/index.js +80 -42
- package/dist/src/scripts/createJsonSchema.js +39 -38
- package/dist/src/tokens/build.js +48 -42
- package/dist/src/tokens/create/generators/$designsystemet.js +22 -20
- package/dist/src/tokens/create/generators/$themes.js +10 -10
- package/dist/src/tokens/create/generators/color.js +1 -0
- package/dist/src/tokens/create/write.js +32 -30
- package/dist/src/tokens/create.js +1 -0
- package/dist/src/tokens/format.js +49 -42
- package/dist/src/tokens/index.js +49 -42
- package/dist/src/tokens/process/configs/color.js +26 -22
- package/dist/src/tokens/process/configs/semantic.js +16 -12
- package/dist/src/tokens/process/configs/shared.js +16 -12
- package/dist/src/tokens/process/configs/storefront.js +16 -12
- package/dist/src/tokens/process/configs/typography.js +16 -12
- package/dist/src/tokens/process/configs.js +26 -22
- package/dist/src/tokens/process/formats/css/color.js +16 -12
- package/dist/src/tokens/process/formats/css/semantic.js +16 -12
- package/dist/src/tokens/process/formats/css.js +16 -12
- package/dist/src/tokens/process/formats/js-tokens.js +16 -12
- package/dist/src/tokens/process/platform.js +26 -22
- package/dist/src/tokens/process/theme.js +22 -20
- package/dist/src/tokens/process/transformers.js +16 -12
- package/dist/src/tokens/process/utils/getMultidimensionalThemes.js +26 -22
- package/dist/src/tokens/utils.d.ts +2 -2
- package/dist/src/tokens/utils.d.ts.map +1 -1
- package/dist/src/tokens/utils.js +16 -12
- package/package.json +31 -29
|
@@ -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";
|
|
@@ -188,20 +188,24 @@ var mapToLowerCase = R.map(R.toLower);
|
|
|
188
188
|
var hasAnyTruth = R.any(R.equals(true));
|
|
189
189
|
var getType = (token) => (token.$type ?? token.type) || "";
|
|
190
190
|
var getValue = (token) => token.$value ?? token.value;
|
|
191
|
-
var typeEquals = R.curry(
|
|
192
|
-
|
|
193
|
-
|
|
191
|
+
var typeEquals = R.curry(
|
|
192
|
+
(types, token) => {
|
|
193
|
+
if (R.isNil(token)) {
|
|
194
|
+
return false;
|
|
195
|
+
}
|
|
196
|
+
return R.includes(R.toLower(getType(token)), R.map(R.toLower, Array.isArray(types) ? types : [types]));
|
|
194
197
|
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
198
|
+
);
|
|
199
|
+
var pathStartsWithOneOf = R.curry(
|
|
200
|
+
(paths, token) => {
|
|
201
|
+
if (R.isNil(token)) {
|
|
202
|
+
return false;
|
|
203
|
+
}
|
|
204
|
+
const tokenPath = mapToLowerCase(token.path);
|
|
205
|
+
const matchPathsStartingWith = R.map((path) => R.startsWith([path], tokenPath), mapToLowerCase(paths));
|
|
206
|
+
return hasAnyTruth(matchPathsStartingWith);
|
|
200
207
|
}
|
|
201
|
-
|
|
202
|
-
const matchPathsStartingWith = R.map((path) => R.startsWith([path], tokenPath), mapToLowerCase(paths));
|
|
203
|
-
return hasAnyTruth(matchPathsStartingWith);
|
|
204
|
-
});
|
|
208
|
+
);
|
|
205
209
|
function isSemanticToken(token) {
|
|
206
210
|
return token.filePath.includes("semantic/");
|
|
207
211
|
}
|
|
@@ -22,8 +22,8 @@ export declare const getValue: <T>(token: TransformedToken | DesignToken) => T;
|
|
|
22
22
|
* @param token Transformed token
|
|
23
23
|
* @returns boolean
|
|
24
24
|
*/
|
|
25
|
-
export declare const typeEquals:
|
|
26
|
-
export declare const pathStartsWithOneOf:
|
|
25
|
+
export declare const typeEquals: (types: string[] | string, token: TransformedToken) => boolean;
|
|
26
|
+
export declare const pathStartsWithOneOf: (paths: string[], token: TransformedToken) => boolean;
|
|
27
27
|
export declare function isSemanticToken(token: TransformedToken): boolean;
|
|
28
28
|
export declare function isSemanticColorToken(token: TransformedToken, color: string): boolean;
|
|
29
29
|
export declare function isGlobalColorToken(token: TransformedToken): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/tokens/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAM3C;;;;GAIG;AACH,eAAO,MAAM,OAAO,GAAI,OAAO,gBAAgB,WAAkD,CAAC;AAElG;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,GAAI,CAAC,EAAE,OAAO,gBAAgB,GAAG,WAAW,KAAG,CAAuC,CAAC;AAE5G;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/tokens/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAM3C;;;;GAIG;AACH,eAAO,MAAM,OAAO,GAAI,OAAO,gBAAgB,WAAkD,CAAC;AAElG;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,GAAI,CAAC,EAAE,OAAO,gBAAgB,GAAG,WAAW,KAAG,CAAuC,CAAC;AAE5G;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,KAAK,EAAE,gBAAgB,KAAK,OAQ/E,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,gBAAgB,KAAK,OAW/E,CAAC;AAEF,wBAAgB,eAAe,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAEhE;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAEpF;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAEnE;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,gBAAgB,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAKpG;AAED,eAAO,MAAM,OAAO,GAAI,GAAG,MAAM,YAAoB,CAAC;AAEtD;2HAC2H;AAC3H,wBAAgB,WAAW,CACzB,GAAG,EAAE,MAAM,GAAG,QAAQ,EACtB,EAAE,EAAE,CAAC,GAAG,EAAE,QAAQ,GAAG,MAAM,GAAG,WAAW,EAAE,GAAG,EAAE,MAAM,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,WAAW,GAAG,MAAM,KAAK,IAAI,4DAYrH;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,YAAY,CAAC,YAAY,EAAE,CAAC,CAAC,EAAE,gBAAgB,KAAK,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,sBAetG"}
|
package/dist/src/tokens/utils.js
CHANGED
|
@@ -4,20 +4,24 @@ var mapToLowerCase = R.map(R.toLower);
|
|
|
4
4
|
var hasAnyTruth = R.any(R.equals(true));
|
|
5
5
|
var getType = (token) => (token.$type ?? token.type) || "";
|
|
6
6
|
var getValue = (token) => token.$value ?? token.value;
|
|
7
|
-
var typeEquals = R.curry(
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
var typeEquals = R.curry(
|
|
8
|
+
(types, token) => {
|
|
9
|
+
if (R.isNil(token)) {
|
|
10
|
+
return false;
|
|
11
|
+
}
|
|
12
|
+
return R.includes(R.toLower(getType(token)), R.map(R.toLower, Array.isArray(types) ? types : [types]));
|
|
10
13
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
);
|
|
15
|
+
var pathStartsWithOneOf = R.curry(
|
|
16
|
+
(paths, token) => {
|
|
17
|
+
if (R.isNil(token)) {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
const tokenPath = mapToLowerCase(token.path);
|
|
21
|
+
const matchPathsStartingWith = R.map((path) => R.startsWith([path], tokenPath), mapToLowerCase(paths));
|
|
22
|
+
return hasAnyTruth(matchPathsStartingWith);
|
|
16
23
|
}
|
|
17
|
-
|
|
18
|
-
const matchPathsStartingWith = R.map((path) => R.startsWith([path], tokenPath), mapToLowerCase(paths));
|
|
19
|
-
return hasAnyTruth(matchPathsStartingWith);
|
|
20
|
-
});
|
|
24
|
+
);
|
|
21
25
|
function isSemanticToken(token) {
|
|
22
26
|
return token.filePath.includes("semantic/");
|
|
23
27
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digdir/designsystemet",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "CLI for Designsystemet",
|
|
5
5
|
"author": "Designsystemet team",
|
|
6
6
|
"engines": {
|
|
7
|
-
"node": ">=22.
|
|
7
|
+
"node": ">=22.15.0"
|
|
8
8
|
},
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -32,58 +32,60 @@
|
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
|
-
"scripts": {
|
|
36
|
-
"designsystemet": "tsx ./bin/designsystemet.ts",
|
|
37
|
-
"build:tokens": "yarn designsystemet tokens build -p -t ../../design-tokens -o ../../packages/theme/brand --clean",
|
|
38
|
-
"build:tokens:debug": "tsx --inspect-brk ./bin/designsystemet.ts tokens build -p -t ../../design-tokens -o ../../packages/theme/brand --clean",
|
|
39
|
-
"build": "tsup && yarn build:types && yarn build:json-schema",
|
|
40
|
-
"build:types": "tsc --emitDeclarationOnly --declaration",
|
|
41
|
-
"build:json-schema": "tsx ./src/scripts/createJsonSchema.ts",
|
|
42
|
-
"types": "tsc --noEmit",
|
|
43
|
-
"test:tokens-create-options": "yarn designsystemet tokens create -m dominant:#007682 -n #003333 -b 99 -o ./test-tokens/options --theme options --clean",
|
|
44
|
-
"test:tokens-create-config": "yarn designsystemet tokens create --config ./test/test-tokens.config.json",
|
|
45
|
-
"test:tokens-build": "yarn designsystemet tokens build -t ./test-tokens/options -o ./test-tokens/options-build --clean",
|
|
46
|
-
"test:tokens-build-config": "yarn designsystemet tokens build -t ./test-tokens/config -o ./test-tokens/config-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-config",
|
|
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",
|
|
51
|
-
"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"
|
|
54
|
-
},
|
|
55
35
|
"dependencies": {
|
|
56
36
|
"@commander-js/extra-typings": "^13.1.0",
|
|
57
|
-
"@tokens-studio/sd-transforms": "1.
|
|
37
|
+
"@tokens-studio/sd-transforms": "1.3.0",
|
|
58
38
|
"apca-w3": "^0.1.9",
|
|
59
39
|
"chalk": "^5.4.1",
|
|
60
40
|
"change-case": "^5.4.4",
|
|
61
41
|
"chroma-js": "^3.1.2",
|
|
42
|
+
"colorjs.io": "^0.6.0-alpha.1",
|
|
62
43
|
"commander": "^13.1.0",
|
|
63
44
|
"fast-glob": "^3.3.3",
|
|
64
45
|
"hsluv": "^1.0.1",
|
|
65
46
|
"object-hash": "^3.0.0",
|
|
66
47
|
"postcss": "^8.5.3",
|
|
67
48
|
"ramda": "^0.30.1",
|
|
68
|
-
"style-dictionary": "^4.
|
|
69
|
-
"zod": "^3.24.
|
|
49
|
+
"style-dictionary": "^4.4.0",
|
|
50
|
+
"zod": "^3.24.4",
|
|
70
51
|
"zod-validation-error": "^3.4.0"
|
|
71
52
|
},
|
|
72
53
|
"devDependencies": {
|
|
54
|
+
"@tokens-studio/types": "0.5.2",
|
|
73
55
|
"@types/apca-w3": "^0.1.3",
|
|
74
56
|
"@types/chroma-js": "^3.1.1",
|
|
75
57
|
"@types/fs-extra": "^11.0.4",
|
|
76
58
|
"@types/glob": "^8.1.0",
|
|
77
59
|
"@types/jscodeshift": "^0.12.0",
|
|
78
|
-
"@types/node": "^22.
|
|
60
|
+
"@types/node": "^22.15.3",
|
|
79
61
|
"@types/object-hash": "^3.0.6",
|
|
80
62
|
"@types/ramda": "^0.30.2",
|
|
81
63
|
"fs-extra": "^11.3.0",
|
|
82
64
|
"ts-toolbelt": "^9.6.0",
|
|
83
65
|
"tslib": "^2.8.1",
|
|
84
66
|
"tsup": "^8.4.0",
|
|
85
|
-
"tsx": "^4.19.
|
|
86
|
-
"typescript": "^5.8.
|
|
67
|
+
"tsx": "^4.19.4",
|
|
68
|
+
"typescript": "^5.8.3",
|
|
87
69
|
"zod-to-json-schema": "^3.24.5"
|
|
70
|
+
},
|
|
71
|
+
"scripts": {
|
|
72
|
+
"designsystemet": "tsx ./bin/designsystemet.ts",
|
|
73
|
+
"build:tokens": "pnpm run designsystemet tokens build -p -t ../../design-tokens -o ../../packages/theme/brand --clean",
|
|
74
|
+
"build:tokens:debug": "tsx --inspect-brk ./bin/designsystemet.ts tokens build -p -t ../../design-tokens -o ../../packages/theme/brand --clean",
|
|
75
|
+
"build": "tsup && pnpm build:types && pnpm build:json-schema",
|
|
76
|
+
"build:types": "tsc --emitDeclarationOnly --declaration",
|
|
77
|
+
"build:json-schema": "tsx ./src/scripts/createJsonSchema.ts",
|
|
78
|
+
"types": "tsc --noEmit",
|
|
79
|
+
"test:tokens-create-options": "pnpm run designsystemet tokens create -m dominant:\"#007682\" -n \"#003333\" -b 99 -o ./test-tokens/options --theme options --clean",
|
|
80
|
+
"test:tokens-create-config": "pnpm run designsystemet tokens create --config ./test/test-tokens.config.json",
|
|
81
|
+
"test:tokens-build": "pnpm run designsystemet tokens build -t ./test-tokens/options -o ./test-tokens/options-build --clean",
|
|
82
|
+
"test:tokens-build-config": "pnpm run designsystemet tokens build -t ./test-tokens/config -o ./test-tokens/config-build --clean",
|
|
83
|
+
"test:tokens-create-and-build-options": "pnpm test:tokens-create-options && pnpm test:tokens-build",
|
|
84
|
+
"test:tokens-create-and-build-config": "pnpm test:tokens-create-config && pnpm test:tokens-build-config",
|
|
85
|
+
"test": "pnpm test:tokens-create-and-build-options && pnpm test:tokens-create-and-build-config",
|
|
86
|
+
"internal:tokens-create": "pnpm run designsystemet tokens create --config ./internal.config.json",
|
|
87
|
+
"update:template": "tsx ./src/scripts/update-template.ts",
|
|
88
|
+
"update:design-tokens": "pnpm internal:tokens-create && tsx ./src/scripts/update-design-tokens.ts",
|
|
89
|
+
"verify": "pnpm test && pnpm update:template && pnpm update:design-tokens"
|
|
88
90
|
}
|
|
89
|
-
}
|
|
91
|
+
}
|