@kerf-js/cli 0.1.0 → 0.1.1-nightly.20261112.42

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/docs/fonts.md CHANGED
@@ -45,7 +45,8 @@ face sets `preload: false`, others only with `preload: true`. Other options: `di
45
45
  to the font's default if the source never sets it. An axis set to two values stays. A value kerf can't read from the
46
46
  source (`var()`, a template, an expression) keeps every axis. `wght`, `wdth`, `opsz`, `slnt` and `ital` are never
47
47
  pinned: CSS drives them. A pinned value applies to every use of the face, so a face used both with and without the
48
- setting needs the axis declared.
48
+ setting needs the axis declared. An axis named in `axes` is cut to that range, or to one value when the range is a
49
+ point, so `axes: { wght: [500, 700] }` drops the rest of the weight axis.
49
50
  - **Characters.** `latin` becomes two files. The core is preloaded: ASCII, common punctuation, and every other latin
50
51
  character in your source. The rest is fetched through `unicode-range` only by a page that shows one of those
51
52
  characters, so text from a database still gets the face, after a fallback-matched swap.
package/docs/theme.md CHANGED
@@ -120,13 +120,22 @@ veneer({
120
120
  })
121
121
  ```
122
122
 
123
- The properties are `size weight leading tracking case font`. A number is px for `size` and `tracking`. A role's name is
124
- lowercase. veneer's own roles take only the tokens veneer has for them.
123
+ The properties are `size weight leading tracking case font opsz`. A number is px for `size` and `tracking`. A role's
124
+ name is lowercase. veneer's own roles take only the tokens veneer has for them, and `opsz`. `opsz` is the face's optical
125
+ size, set as `font-variation-settings: "opsz" <n>`, so a face without the axis ignores it; `'auto'` leaves it to the
126
+ font size, as `font-optical-sizing` does.
127
+
128
+ A pseudo-element can't take `data-role`, so a role with `firstLetter: true` also sets the first letter of any element
129
+ that names it in `data-first-letter`: a script initial on a serif paragraph is
130
+ `initial: { size: 70, leading: 0, font: '"Mea Culpa", Georgia, serif', firstLetter: true }` and
131
+ `<Text role="narrative" data-first-letter="initial">`.
125
132
 
126
133
  Any property can change with the viewport: `base` holds below the first breakpoint, and each other key is a min-width
127
134
  in px. `size` and `tracking` can also be fluid, `{ min, max, from, to }` in px: `min` at the `from` width, `max` at
128
135
  `to`, held outside them. Inside a breakpoint, `from` is the breakpoint. Each breakpoint is a media query that sets the
129
- tokens, so there is no script; a fluid line runs on `vw` to meet them, in the user's rem.
136
+ tokens, so there is no script; a fluid line runs on `vw` to meet them, in the user's rem (`--veneer-rem`). A page that
137
+ imports `kerf:tokens/veneer` without veneer's stylesheet gets `--veneer-rem: 1rem` from the tokens, so its fluid sizes
138
+ hold, and `<Heading>` and `<Text>` bring only their role rules there, not veneer's sheet.
130
139
 
131
140
  ```ts
132
141
  veneer({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kerf-js/cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1-nightly.20261112.42",
4
4
  "description": "The kerf command: dev, build, check, the agent layer and the MCP server",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -24,14 +24,14 @@
24
24
  "node": ">=24"
25
25
  },
26
26
  "dependencies": {
27
- "create-kerf": "0.1.0",
27
+ "create-kerf": "0.1.1-nightly.20261112.42",
28
28
  "axe-core": "4.14.0",
29
29
  "typescript": "6.0.3",
30
30
  "yaml": "2.9.1",
31
31
  "zod": "4.6.7"
32
32
  },
33
33
  "peerDependencies": {
34
- "@kerf-js/core": "^0.1.0"
34
+ "@kerf-js/core": "^0.1.1-nightly.20261112.42"
35
35
  },
36
36
  "publishConfig": {
37
37
  "access": "public"