Upstream: crates/rune-kit/README.md § Checking against Storybook at 65f8eb43f710, MIT © Anomaly. Bundled by build-rune-apps; links point at this snapshot or at GitHub at that rev.

Checking against Storybook

OPENCODE=<path to an opencode checkout> scripts/kit-diff.py [--only button,switch] [--schemes light]

Renders every gallery scene and the Storybook story of the same id at 2× (Chromium from the OpenCode checkout's Playwright, Rune headless), and writes perf/kit-diff/<story>/<scheme>/ web.png, rune.png, diff.png, side.png, plus report.md / report.json. See the script's docstring for setup. scripts/kit/rects.mjs <story-id> prints the web layout rects of a story for matching.

Regenerate the theme from the same Storybook build:

OPENCODE=… node themes/opencode/tools/theme.mjs > themes/opencode/assets/theme.json
python3 themes/opencode/tools/icons.py $OPENCODE/packages/ui/src/icons > themes/opencode/src/icons.rs