@rokkit/cli 1.8.0 → 1.8.2

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.
@@ -58,6 +58,11 @@ don't restate it.
58
58
  hardcoded `font-family:` or arbitrary `font-[...]` in component markup; map it to the right class.
59
59
  - Faces belong in config, not per-component. If a needed face isn't declared, the fix is to add it
60
60
  to `typography:` (a styling-config change — hand off to the styles review), not to inline it.
61
+ - Heading LEVELS come from `[data-heading='1'..'4']` rules in `@rokkit/themes` (face, size,
62
+ weight, line-height and tracking together): a title takes `data-heading="2"`, and prose under
63
+ `data-prose` gets its `h1`–`h4` styled. Flag a hand-built heading (`text-2xl font-semibold`
64
+ on a title, or a per-component `font-size` for a heading) and map it to `data-heading`.
65
+ There are no `--text-*` scale tokens — a `var(--text-…)` read is a bug.
61
66
 
62
67
  ## Procedure
63
68
 
@@ -97,7 +102,7 @@ don't have. A piped/`| tail` exit status reports the pipe, not the command: read
97
102
  tier · the simpler rewrite (when demotable).
98
103
  - **Custom icons** — findings: unloaded collections, snippet-for-an-icon, inline SVG → `i-*` class.
99
104
  - **Typography** — hardcoded `font-family`/`font-[...]` findings → `font-heading/body/mono` (or a
100
- `typography:` config addition to hand off).
105
+ `typography:` config addition to hand off); hand-built headings → `data-heading`.
101
106
  - **Contract hygiene** — off-contract usage (wrong data prop, manual focus, `onclick` on `[data-path]`).
102
107
  - **Verification evidence** — the pasted build output + Playwright snapshot summary (light/dark).
103
108
  - **### Verdict PASS/FAIL** — PASS only when each usage is at the simplest tier that works, icons and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rokkit/cli",
3
- "version": "1.8.0",
3
+ "version": "1.8.2",
4
4
  "description": "Command line utilities for icon bundling and conversion.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@mdi/svg": "^7.4.47",
31
- "@rokkit/unocss": "1.8.0",
31
+ "@rokkit/unocss": "1.8.2",
32
32
  "sade": "^1.8.1",
33
33
  "@iconify/tools": "^5.0.14",
34
34
  "@iconify/types": "^2.0.0",
@@ -62,12 +62,16 @@ Shapes: `BarChart`, `LineChart`, `AreaChart`, `PieChart`, `ScatterPlot`, `Bubble
62
62
  ```svelte
63
63
  <PlotChart {data} spec={{
64
64
  geoms: [
65
- { type: 'bar', channels: { x: 'quarter', y: 'revenue', fill: 'product' }, stat: 'sum' },
66
- { type: 'line', channels: { x: 'quarter', y: 'forecast', color: 'class' } }
65
+ { type: 'bar', x: 'quarter', y: 'revenue', fill: 'product', stat: 'sum' },
66
+ { type: 'line', x: 'quarter', y: 'forecast', color: 'class' }
67
67
  ]
68
68
  }} />
69
69
  ```
70
70
 
71
+ Fields go on the geom itself. There is no `channels: { … }` wrapper, and a geom written with one
72
+ draws nothing. Set `x`/`y`/`color` once on the spec and every geom inherits them. A spec value
73
+ overrides the matching prop, except `orientation`, where the prop wins.
74
+
71
75
  ---
72
76
 
73
77
  ## Aesthetic channels
@@ -351,6 +351,12 @@ aliases. Usage classes: `font-heading` (display face), `font-body` (UI face), `f
351
351
  <code class="font-mono text-xs text-ink-soft">path/to/file.ts</code>
352
352
  ```
353
353
 
354
+ **Heading levels** come from `[data-heading='1'..'4']` rules in `@rokkit/themes` (face, size,
355
+ weight, line-height and tracking together). Give a title its level with `data-heading="2"` —
356
+ or put prose under `data-prose` and its `h1`–`h4` take the levels — rather than hand-picking
357
+ `text-2xl font-semibold`. There are no `--text-*` scale tokens; override a level with the same
358
+ selector.
359
+
354
360
  ---
355
361
 
356
362
  ## Shape / radius configuration