village-builder

VB-1529: Refactor: Glass is a theme like any other, and the base stylesheet is neutral

Status: done (2026-11-22) Priority: 2 Size: M Design ref: Kim, 22 November; VB-1161 Goal: No theme has to undo another: the base stylesheet holds what every theme shares, and Glass’s own look sits under its own theme. Acceptance criteria:

Notes

Kim asked on 22 November for theming to be made simple, the interface only: the map’s art is not part of it. Order: VB-1529, then VB-1530, then VB-1531 and VB-1532; VB-1533 beside them. Edit src/head.html and src/page/options.js only where this task needs: VB-1533 works in the icons’ rules (.ico, .i-line, .i-sten) and src/page/icons.js at the same time, so leave those alone.

Done (VB-1529). Glass’s own declarations are split off in place as :where(:root[data-theme="glass"]) X, right after the base rule they left: same specificity, same order, so Glass’s cascade is unchanged by construction. Moved: .panel hairline border, blur and shadow; .pin b blur; the pale grounds of .loader .bar, .supply-nums, .pchip; .roster’s hairline; the ink and gold bars of .meter > b and .mark-key b; the dark palette now under :root[data-theme="glass"]. The light palette stays the root’s default tokens (VB-1530 widens them). Mural, 15 undoing declarations gone: .panel border 0 and backdrop none; .pin b backdrop none; background none on .meter > b (3 rules), .mark-key b (2), .loader .bar, .supply-nums, .pchip; .roster border-top 0; and three that already did nothing (.navigation button border 0, base has it; .person pressed and hover background none, beaten by Mural’s own .person). Kept, as they cancel Mural’s own rules, not Glass’s: :is(.navigation, .map-bar, .act-bar) background, border, shadow (Mural’s band on .panel); background none on .navigation button, .act-row, and .person border 0 and background none (Mural’s scroll on every button). Left shared: shadows and the blur that Mural inherits without undoing (body.ui-hidden #uiToggle, the round map buttons, the mobile sheets’ shadows): moving them would change Mural’s look. Look: 18 screenshots (menu, Options, choice of whom to play, household card, household card with the action menu open, village card; Glass light, Glass dark, Mural; 1440 by 900, the canvases hidden, populous seed 7 small map) identical by pixel before and after; one region of 74 px differed between two runs of the same build and matches the second run exactly.