hyperhive/frontend/packages
Repository files (latest commit first)
Filename Latest commit message Latest commit date
iris afe627e0a9 swarm-ui: derive theme override from colors.css instead of duplicating hex values
mara's review: the theme override read as a hand-copied duplicate of
colors.css's hex values instead of deriving from it. Restructured
colors.css to declare each palette's 16 hex values exactly once
(--mocha-baseNN, --latte-baseNN) and have every activation block
(the default, the prefers-color-scheme media query, and two new
:root[data-theme='light'|'dark'] blocks) just re-point the active
--baseNN slot at one of those two raw palettes via var() - never a
second copy of a hex value.

theme-apply.ts simplifies to match: it now only toggles a data-theme
attribute on <html>, same shape motion-apply.ts already had. No
palette values live in JS at all anymore.

Re-verified the override still genuinely outranks the media query
with the new mechanism: same seed-localStorage-while-forcing-the-
opposite-OS-preference test as before, both directions still render
the stored override correctly.
2026-08-18 23:58:48 +02:00
..
agent agent: drop dead .header-pill-loose CSS 2026-08-12 19:33:07 +02:00
dashboard frontend: shared ApiErrorPanel component, promote readApiError from credentials.js 2026-08-17 23:11:11 +02:00
shared swarm-ui: derive theme override from colors.css instead of duplicating hex values 2026-08-18 23:58:48 +02:00
swarm-ui swarm-ui: derive theme override from colors.css instead of duplicating hex values 2026-08-18 23:58:48 +02:00