@netlify/spark-ui 2.0.0-alpha.1 → 2.0.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/README.md
CHANGED
|
@@ -79,7 +79,9 @@ Tokens are converted into CSS variables using the [terrazzo](https://terrazzo.ap
|
|
|
79
79
|
|
|
80
80
|
### App tokens
|
|
81
81
|
|
|
82
|
-
`@netlify/spark-ui/styles/app
|
|
82
|
+
`@netlify/spark-ui/styles/app/*.css` and `@netlify/spark-ui/tokens/app` publish app.netlify.com's tokens under the names and file layout it has always read from `@netlify/netlify-design-tokens`: `color.rgb.css` has the `--colorRgbFacets*` RGB channels (with a `[data-brand="hues"]` block), `shadow.css` has `--effectShadow*`, and `tokens/app` has JS exports of hex colors, font sizes, weights, families and radii. `scripts/app-tokens-plugin.mjs` writes them during `build:tokens`.
|
|
83
|
+
|
|
84
|
+
To publish another CSS file, add it to `cssFiles` in `terrazzo.config.mjs` with the tokens it holds (`'palette'`, or a token ID prefix such as `'app.effect.shadow'`) and, optionally, a `format` (`'rgb'` writes a color's channels). Tokens the hues brand changes get a `[data-brand="hues"]` block automatically.
|
|
83
85
|
|
|
84
86
|
### Themes and brands
|
|
85
87
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/spark-ui",
|
|
3
3
|
"description": "Assets, design tokens, components, and utilities",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/components/preact/index.js",
|
|
7
7
|
"types": "dist/components/preact/index.d.ts",
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"@zachleat/details-utils": "^2.0.2",
|
|
59
59
|
"@zachleat/filter-container": "^4.0.0",
|
|
60
60
|
"astro-eslint-parser": "^1.2.1",
|
|
61
|
+
"conventional-changelog-conventionalcommits": "^9.3.1",
|
|
61
62
|
"eslint": "^10.0.0",
|
|
62
63
|
"eslint-config-prettier": "^10.1.1",
|
|
63
64
|
"eslint-plugin-astro": "^1.3.1",
|
|
@@ -90,10 +90,6 @@
|
|
|
90
90
|
--colorRgbFacetsTeal700: 1 105 104;
|
|
91
91
|
--colorRgbFacetsTeal800: 1 72 71;
|
|
92
92
|
--colorRgbFacetsTeal900: 12 42 42;
|
|
93
|
-
--effectShadowDarkDeep: 0 16px 24px 0 rgb(6 11 16 / 20%), 0 6px 30px 0 rgb(6 11 16 / 30%), 0 8px 10px 0 rgb(6 11 16 / 40%);
|
|
94
|
-
--effectShadowDarkShallow: 0 1px 10px 0 rgb(18 24 31 / 60%), 0 2px 4px 0 rgb(18 24 31 / 40%);
|
|
95
|
-
--effectShadowLightDeep: 0 16px 24px 0 rgb(24 26 28 / 7%), 0 6px 30px 0 rgb(24 26 28 / 6%), 0 8px 10px 0 rgb(24 26 28 / 10%);
|
|
96
|
-
--effectShadowLightShallow: 0 1px 10px 0 rgb(53 58 62 / 6%), 0 2px 4px 0 rgb(53 58 62 / 8%);
|
|
97
93
|
}
|
|
98
94
|
|
|
99
95
|
[data-brand="hues"] {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* Autogenerated by scripts/app-tokens-plugin.mjs. DO NOT EDIT! */
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--effectShadowDarkDeep: 0 16px 24px 0 rgb(6 11 16 / 20%), 0 6px 30px 0 rgb(6 11 16 / 30%), 0 8px 10px 0 rgb(6 11 16 / 40%);
|
|
5
|
+
--effectShadowDarkShallow: 0 1px 10px 0 rgb(18 24 31 / 60%), 0 2px 4px 0 rgb(18 24 31 / 40%);
|
|
6
|
+
--effectShadowLightDeep: 0 16px 24px 0 rgb(24 26 28 / 7%), 0 6px 30px 0 rgb(24 26 28 / 6%), 0 8px 10px 0 rgb(24 26 28 / 10%);
|
|
7
|
+
--effectShadowLightShallow: 0 1px 10px 0 rgb(53 58 62 / 6%), 0 2px 4px 0 rgb(53 58 62 / 8%);
|
|
8
|
+
}
|