hyperhive/frontend/packages/swarm-ui/src
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
..
lib swarm-ui: derive theme override from colors.css instead of duplicating hex values 2026-08-18 23:58:48 +02:00
pages swarm-ui: compact refresh-interval picker, moved into the panel header 2026-08-18 23:28:47 +02:00
shell swarm-ui: client-local settings surface (theme + reduced-motion overrides) 2026-08-18 23:58:48 +02:00
ui swarm-ui: compact refresh-interval picker, moved into the panel header 2026-08-18 23:28:47 +02:00
App.tsx swarm-ui: rename OverviewPage/'overview' to HivesPage/'hives' 2026-08-18 21:26:52 +02:00
colors.css swarm-ui: bootstrap new swarm-level frontend (Preact + wouter + TS + JSX) 2026-08-11 21:31:44 +02:00
css.d.ts swarm-ui: colocate component CSS as JS-side-effect imports 2026-08-12 21:33:44 +02:00
index.html swarm-ui: use absolute asset paths in index.html 2026-08-17 00:24:44 +02:00
main.tsx swarm-ui: bootstrap new swarm-level frontend (Preact + wouter + TS + JSX) 2026-08-11 21:31:44 +02:00
swarm-ui.css swarm-ui: real hive-roster overview page 2026-08-13 11:21:30 +02:00
theme.css swarm-ui: bootstrap new swarm-level frontend (Preact + wouter + TS + JSX) 2026-08-11 21:31:44 +02:00
util.ts swarm-ui: use native Intl.RelativeTimeFormat for fmtAgo, not hand-rolled 2026-08-16 19:05:01 +02:00