@aleph-alpha/config-css 0.19.0 → 0.20.0
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/.lintstagedrc.js +2 -4
- package/CHANGELOG.md +7 -0
- package/dist/index.js +84 -81
- package/package.json +3 -3
- package/src/index.ts +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aleph-alpha/config-css",
|
|
3
3
|
"license": "Apache-2.0",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.20.0",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
7
7
|
"prettier": "@aleph-alpha/prettier-config-frontend",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"style-dictionary": "^4.0.1",
|
|
26
26
|
"vite-plugin-dts": "^4.0.0",
|
|
27
|
-
"@aleph-alpha/eslint-config-frontend": "0.
|
|
28
|
-
"@aleph-alpha/prettier-config-frontend": "0.
|
|
27
|
+
"@aleph-alpha/eslint-config-frontend": "0.4.0",
|
|
28
|
+
"@aleph-alpha/prettier-config-frontend": "0.4.0"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"transform:global": "npx token-transformer ./tokens.json ./transformed-tokens/global.json global,\"Spark Border Radius/Mode 1\",\"Spark Spacings/Mode 1\",\"Spark Text/Mode 1\" \"Spark Colors/Light mode/primitives\" --throwErrorWhenNotResolved",
|
package/src/index.ts
CHANGED
|
@@ -127,13 +127,13 @@ const createPresets = (): Preset<Theme>[] => {
|
|
|
127
127
|
// clone the darkModeSet to avoid mutating the original object. the original object is currently being used in the getCSS function.
|
|
128
128
|
dark: { colors: structuredClone(darkModeSet) },
|
|
129
129
|
},
|
|
130
|
-
}) as unknown as Preset<Theme
|
|
130
|
+
}) as unknown as Preset<Theme>,
|
|
131
131
|
);
|
|
132
132
|
|
|
133
133
|
presets.push(
|
|
134
134
|
presetLegacyCompat({
|
|
135
135
|
legacyColorSpace: true,
|
|
136
|
-
}) as unknown as Preset<Theme
|
|
136
|
+
}) as unknown as Preset<Theme>,
|
|
137
137
|
);
|
|
138
138
|
|
|
139
139
|
return presets;
|