@csszyx/mcp-server 0.15.2 → 0.16.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/llms-full.txt +22 -3
- package/package.json +4 -4
package/llms-full.txt
CHANGED
|
@@ -2691,6 +2691,21 @@ CSS custom properties (`--*`) are passed through unchanged.
|
|
|
2691
2691
|
- Spaces in values are normalised to underscores: `repeat(3, 1fr)` → `repeat(3,_1fr)`.
|
|
2692
2692
|
- Works inside `dynamic()` at runtime — the same compiler logic handles the `css` key.
|
|
2693
2693
|
|
|
2694
|
+
### Custom property as a key
|
|
2695
|
+
|
|
2696
|
+
A CSS custom property may also be written as a key on the `sz` object itself, which is the shorter form when a token sits beside the utilities that read it. It produces the same class as the `css: {}` spelling and nests under a variant like any other key.
|
|
2697
|
+
|
|
2698
|
+
| Concept | Example `sz` Prop | Output Class | Note |
|
|
2699
|
+
| :------------------ | :------------------------------------ | :-------------------------- | :-------------------------------- |
|
|
2700
|
+
| **Key spelling** | `{ '--my-color': 'red' }` | `[--my-color:red]` | same class as `css: {}` |
|
|
2701
|
+
| **Inside variant** | `{ dark: { '--my-color': 'white' } }` | `dark:[--my-color:white]` | works in all variants |
|
|
2702
|
+
| **Numeric value** | `{ '--my-alpha': 0.18 }` | `[--my-alpha:0.18]` | numbers coerced to string |
|
|
2703
|
+
| **Spaced value** | `{ '--my-edge': '1px solid red' }` | `[--my-edge:1px_solid_red]` | spaces → underscores |
|
|
2704
|
+
| **Bracketed value** | `{ '--my-cols': '[a] 1fr [b]' }` | `[--my-cols:[a]_1fr_[b]]` | brackets kept as written |
|
|
2705
|
+
| **Case** | `{ '--MyToken': 1 }` | `[--MyToken:1]` | case kept; `--` is case-sensitive |
|
|
2706
|
+
|
|
2707
|
+
The value is a declaration value, so it is a string or a number; `false` switches the property off like any key. An object body has no declaration to lower and the type rejects it; nest a variant instead. A runtime value is hoisted like any other and read back as `[--my-color:var(--_sz---my-color)]`.
|
|
2708
|
+
|
|
2694
2709
|
|
|
2695
2710
|
# Sizing
|
|
2696
2711
|
|
|
@@ -4087,9 +4102,13 @@ the built HTML carries no executable inline script and a strict CSP
|
|
|
4087
4102
|
If an `sz`-generated utility also appears as a static string or template quasi in a
|
|
4088
4103
|
source-level `class` or `className` attribute/property (including a `clsx(...)`
|
|
4089
4104
|
expression), csszyx keeps that class unmangled. This ensures raw and `sz` consumers
|
|
4090
|
-
continue to reference the same emitted rule.
|
|
4091
|
-
|
|
4092
|
-
|
|
4105
|
+
continue to reference the same emitted rule. When something else depends on the
|
|
4106
|
+
class NAME — a stylesheet matching by attribute (`[class*="bg-tag"]`), a DOM
|
|
4107
|
+
query, a class assembled outside any visible `className` — list it in
|
|
4108
|
+
`production.manglePreserve` (exact name, or a prefix ending in `*`); the
|
|
4109
|
+
hybrid-hazard warning prints a paste-ready value. `production.mangleExclude` is
|
|
4110
|
+
the other switch: it keeps the allocator from producing a token equal to a short
|
|
4111
|
+
class in third-party CSS, and never keeps a csszyx class from being renamed.
|
|
4093
4112
|
|
|
4094
4113
|
Final-output class mangling is available in Vite, Webpack, and Rollup. The esbuild
|
|
4095
4114
|
adapter keeps class names readable (and warns when `production.mangle: true` is
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@csszyx/mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "Model Context Protocol (MCP) server for csszyx — enables AI agents to understand and generate sz props",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"node": "^22.18.0 || >=24.11.0"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@csszyx/cli": "0.
|
|
32
|
-
"@csszyx/compiler": "0.
|
|
33
|
-
"@csszyx/unplugin": "0.
|
|
31
|
+
"@csszyx/cli": "0.16.0",
|
|
32
|
+
"@csszyx/compiler": "0.16.0",
|
|
33
|
+
"@csszyx/unplugin": "0.16.0",
|
|
34
34
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|