Upstream: crates/rune-kit/README.md § The split (PLAN.md §7) at
65f8eb43f710, MIT © Anomaly. Bundled by build-rune-apps; links point at this snapshot or at GitHub at that rev.
The split (PLAN.md §7)
| Crate | Holds | Knows about OpenCode? |
|---|---|---|
crates/rune |
Elements, layout, renderer, Theme::from_json (themes as data). Gained only generic primitives for this: CSS box shadows (offset, spread, inset), vertical gradients, outlines, El::anchored overlays, a few layout helpers. |
No |
crates/rune-kit |
The token schema (Kit: Palette, Elevation, Type, Radius, Motion, Glyphs), the components, a box-shadow parser for web theme data, and Kit::neutral, a plain theme from rune::tok. |
No |
themes/opencode (rune-theme-opencode) |
OpenCode's theme as data (assets/theme.json: every @opencode/ui token as the browser resolves it, both appearances, computed shadows), its fonts, its icon catalog subset, and the mapping onto Kit. |
Yes, and only here |
examples/kit-gallery |
One scene per Storybook story, by story id. --kit neutral renders the same stories on the neutral theme. |
Uses the theme |
Why the token schema lives in the kit, not the core: the core already has themes as data
(rune::Theme, any named tokens). The kit is the layer that decides which semantic roles
components need (button elevation, overlay hover, depth sheen, …); a theme crate fills them.
Another brand writes another theme crate; no component changes.