@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 CHANGED
@@ -1,3 +1,3 @@
1
- export declare const VELAR_VERSION = "0.22.1";
1
+ export declare const VELAR_VERSION = "0.23.0";
2
2
  export { VELAR_STANDARD_API_VERSION } from "@velarscript/core";
3
3
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
- export const VELAR_VERSION = "0.22.1";
1
+ export const VELAR_VERSION = "0.23.0";
2
2
  export { VELAR_STANDARD_API_VERSION } from "@velarscript/core";
3
3
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velarscript/cli",
3
- "version": "0.22.1",
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.22.1",
34
- "@velarscript/core": "0.22.1",
35
- "@velarscript/desktop": "0.22.1",
36
- "@velarscript/node": "0.22.1",
37
- "@velarscript/server": "0.22.1",
38
- "@velarscript/web": "0.22.1",
39
- "create-velar": "0.22.1",
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
  }
@@ -13,7 +13,7 @@ browser application activates `@velarscript/web`:
13
13
  ```json
14
14
  {
15
15
  "dependencies": {
16
- "@velarscript/server": "0.22.1"
16
+ "@velarscript/server": "0.23.0"
17
17
  }
18
18
  }
19
19
  ```
@@ -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