@csszyx/mcp-server 0.15.3 → 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 +15 -0
- 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
|
|
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
|
},
|