@aleph-alpha/config-css 1.2.0 → 1.2.1
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/CHANGELOG.md +7 -0
- package/customization.md +9 -3
- package/dist/index.js +684 -642
- package/package.json +3 -3
- package/src/index.ts +6 -0
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": "1.2.
|
|
4
|
+
"version": "1.2.1",
|
|
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/
|
|
28
|
-
"@aleph-alpha/
|
|
27
|
+
"@aleph-alpha/eslint-config-frontend": "0.6.0",
|
|
28
|
+
"@aleph-alpha/prettier-config-frontend": "2.1.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
|
@@ -49,6 +49,12 @@ const tokenPreset: Preset<Theme> = definePreset<Theme>(() => {
|
|
|
49
49
|
* from utility classes. Light/dark switching cascades automatically:
|
|
50
50
|
* any \`var(--<token>)\` under \`html.dark\` resolves to the dark value
|
|
51
51
|
* without needing parallel rules.
|
|
52
|
+
*
|
|
53
|
+
* These \`var(--spacing-*)\` / \`var(--shadow-*)\` outputs are a public
|
|
54
|
+
* contract relied upon by consumers: components whose DOM is portalled
|
|
55
|
+
* out of the Uno-scanned tree (e.g. UiSnackbar's toast list) can only
|
|
56
|
+
* style themselves via these vars, not via utility classes — so they
|
|
57
|
+
* must stay emitted.
|
|
52
58
|
*/
|
|
53
59
|
:root {
|
|
54
60
|
${formatVarBlock(lightModeSet)}
|