@velarscript/cli 0.22.1 → 0.23.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/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +8 -8
- package/skill/ai-skill-server.md +1 -1
- package/skill/ai-skill-web.md +23 -0
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@velarscript/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"description": "The VelarScript command-line compiler, dev server, test runner, and language server.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"velar": "./dist/cli.js"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@velarscript/compiler": "0.
|
|
34
|
-
"@velarscript/core": "0.
|
|
35
|
-
"@velarscript/desktop": "0.
|
|
36
|
-
"@velarscript/node": "0.
|
|
37
|
-
"@velarscript/server": "0.
|
|
38
|
-
"@velarscript/web": "0.
|
|
39
|
-
"create-velar": "0.
|
|
33
|
+
"@velarscript/compiler": "0.23.0",
|
|
34
|
+
"@velarscript/core": "0.23.0",
|
|
35
|
+
"@velarscript/desktop": "0.23.0",
|
|
36
|
+
"@velarscript/node": "0.23.0",
|
|
37
|
+
"@velarscript/server": "0.23.0",
|
|
38
|
+
"@velarscript/web": "0.23.0",
|
|
39
|
+
"create-velar": "0.23.0",
|
|
40
40
|
"esbuild": "^0.28.1",
|
|
41
41
|
"playwright": "^1.58.2"
|
|
42
42
|
}
|
package/skill/ai-skill-server.md
CHANGED
package/skill/ai-skill-web.md
CHANGED
|
@@ -156,6 +156,29 @@ or a typed `look:color={...}` binding. Checked motion is a module-level
|
|
|
156
156
|
animation string. Unsupported styling uses explicit `import css unsafe
|
|
157
157
|
"./file.css" before look` or `after look`.
|
|
158
158
|
|
|
159
|
+
A design system's CSS custom property is read with `token("--name")` from
|
|
160
|
+
`velar/look`. It is legal in every Look property — sizes, colours, shadows,
|
|
161
|
+
transitions, fonts — so a design-token codebase stays inside Look rather than
|
|
162
|
+
falling out to `import css unsafe`:
|
|
163
|
+
|
|
164
|
+
```velar fragment
|
|
165
|
+
import {token} from "velar/look"
|
|
166
|
+
|
|
167
|
+
const shellChrome = look:
|
|
168
|
+
width = token("--shell-sidebar-expanded-width")
|
|
169
|
+
borderRadius = token("--ui-radius-panel")
|
|
170
|
+
boxShadow = token("--shell-sidebar-shadow")
|
|
171
|
+
transition = token("--ui-transition-fast")
|
|
172
|
+
color = token("--ui-color-foreground")
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
The name must be a literal starting with `--`; a computed name is refused. There
|
|
176
|
+
is no fallback argument — a missing token is fixed where the design system
|
|
177
|
+
defines it. Do not write `var(--name)` as a string and do not wrap it in
|
|
178
|
+
`color(...)`: both are refused with the `token()` spelling named, and `velar fix`
|
|
179
|
+
migrates them. `animation` is the exception: motion is a `keyframes:` value
|
|
180
|
+
passed to `animate(...)`, never a token.
|
|
181
|
+
|
|
159
182
|
A `look` written on a component invocation composes after the look the
|
|
160
183
|
component applies to its own host, per property and per condition: declare a
|
|
161
184
|
property unconditionally to override the component's outright, and declare it
|