village-builder

VB-1535: Refactor: the themes’ tokens as scales: one of radii, one of shadows, and the quirk tokens gone

Status: done (2026-11-23) Priority: 2 Size: M Design ref: Kim, 23 November; VB-1530 Goal: A theme sets fewer tokens, each with a plain meaning; corners and shadows snap to a scale. Acceptance criteria:

Notes

Kim, 23 November, as VB-1534, which this builds on.

Done (VB-1535). Tokens 40 to 28. Radii: --r-panel, --r-small (a floating piece) to --r-2; --r-small (a story, a scenario card, a theme card, the sample), --r-field, --r-row, --r-tag to --r-1; --r-meter to --r-0; --r-portrait and --btn-radius to round (50%, 999px). --r-0 is the theme’s least corner, not 0 everywhere: Glass 4px, so its meters stay rounded; Mural sets all three to 0. Shadows: --cast to --shadow-0, --panel-shadow and --panel-rise to --shadow-1, --float and two literal shadows (the shown-again toggle, the phone’s speed popup) to --shadow-2. Folded into Mural’s pieces: --panel-side (its panel rule, named also as .panel[data-theme] for the sample, which carries the theme on its panel), --medal, --medal-on (its icon button), --btn-radius’s leaf (its button, with the scroll’s hand). Dropped: --head-style (a head’s slant is its face’s: Alegreya is loaded italic only, Grenze upright only), --btn-on, --btn-on-ink (equal to --accent, --on-accent in both themes, which mean pressed). VB-1534’s three: the button’s hand and the icon button’s ink stay in Mural’s piece rules (only Mural’s pieces read them); the panel’s room is --panel-border with its meaning written beside it. tests/themes.js: its rules unchanged; the floor on the list’s length (40, VB-1530’s count) is now 20, a misread guard. The page’s game name and the loader’s words carry .head, so a head’s slant is the head piece’s alone (italic, Mural upright by its head rule). Look, Glass: panels floating over the map (toasts, banners, popups, minimap, keys) 12 to 16px corners; stories, scenario and theme cards 12 to 8px, fields 10 to 8px; portraits round; a sheet at the bottom of the screen casts its shadow down, not up; the loader’s words bold. Mural: the theme cards’ sample buttons are round, not leaves; name tags on the start’s map square, not leaves; fields square (2px before). Screenshots: scratchpad/shots/VB-1535/before and after.