Status: done (2026-11-23) Priority: 2 Size: L Design ref: Kim, 23 November; VB-1530 Goal: A theme with its own shapes is the styling of a few shared pieces, not a rule for each component; the look of Glass and Mural may shift to get there. Acceptance criteria:
src/head.html: panel, head, button (with its pressed and primary states), icon button, row, meter; a piece more only with its reason in the notes. Each is a class (or the element, for button) a component’s markup carries.:root[data-theme="mural"] rules down to 25 or fewer, and Glass’s 14 split-off rules down to its pieces.border-radius that a theme’s tokens should say (the nine radii VB-1530 left literal follow the tokens); circles and pills may stay.tests/themes.js checks the new rule: a theme’s rule names only pieces (or is on the counted list); tests/page.js follows any markup change. npm run verify, node tests/page.js, node tests/smoke.js and the browser tests the change touches green.docs/architecture/modules.md, Adding things: a new theme is its tokens and its styling of the pieces; a new component uses pieces.Kim, 23 November: non-backwards-compatible changes are allowed to make theming simpler; the rule of VB-1529 to VB-1533, no pixel changed, is lifted for this task and VB-1535. The interface only: the map’s art, the icon sets (VB-1533) and the stored choice (vb.theme) stay as they are. Light and dark as a mode of every theme, and a file per theme, are not part of this.
Done (VB-1534). Pieces listed beside the tokens: panel, head, button, icon button, row, meter, and one more, .card (a scenario, story, person or voice among a choice): chosen it takes a row’s accent ring, not a button’s fill, so its picture and small words stay readable. Pressed is one rule, button:not(.row, .card):is([aria-pressed=true], [aria-haspopup][aria-expanded=true], .primary); the openers of a popup (action bar, speed, notifications, a supply’s numbers) carry aria-haspopup so that a panel’s fold, also aria-expanded, is not pressed. Tabs stay underlined in both themes (VB-664, one control one meaning), so Mural’s filled tabs went.
Rules: Mural’s :root[data-theme="mural"] 113 to 0; its section is 12 piece rules (button’s hand, icon button x2, row, meter x8) and 1 counted (the bars over the map stand on it with no band), the key of a meter’s marks counted inside the meter’s rules. Glass’s 14 split-off rules to 0: they are the base again, as nothing undoes them. The band’s room is Mural’s --panel-border: 8px solid transparent with the panel’s background-origin: border-box, in place of seven paddings. Radii now from tokens: row, tabs, person, fcard, offer, work, voice, why, sum-go (r-row), story, scard, phone speed popup (r-small), mini, occ-badge (r-portrait), editor fields (r-field), act bar, dock, stepper, banner, card switch (btn-radius).
For VB-1535, values no token says: a button’s hand (Mural’s scroll), an icon button’s ink (Mural’s red), the panel’s room for its border.
Look, Glass: act bar and dock pressed are pills; act menu’s back and close are ringed round icon buttons; notifications open is filled; chosen story, person, scenario card and voice show an inset ring and tint; mini portraits rounder (7 to 12px), rows and tabs 8px; editor’s section heads in the head face; native boxes and sliders in the accent.
Look, Mural: dock and act bar are leaf buttons on the map (no medallion icons, no tags under the dock); map bar medallions without cast; minimap a band; tabs underlined; rows in the body hand with ink icons; whom-to-play portraits without rings, the chosen one ringed and tinted; stories, scenario cards and inputs lose ink outlines and leaf corners; pins, badges, start island frame, family tree tags, supply cells, loader bar and trait meters (10 beads) take the base look; heads keep their base sizes.