Skip to content

feat(web): appearance settings — color mode + full-app board themes - #58

Merged
steipete merged 2 commits into
mainfrom
feat/appearance-themes
Jul 12, 2026
Merged

steipete merged 2 commits into
mainfrom
feat/appearance-themes

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Appearance: color mode + board themes

Theme support, but whole-hog: where Slack's single-color themes tint the sidebar, a ClickClack board retunes the entire app — rail, surfaces, ink, accents, auth screen, settings, every keycap — with a proper day and a proper night variant per board.

What you get

  • Color mode: Light / Dark / System, applied instantly, no reload.
  • Boards: four full colorways, each a tuned light+dark pair:
    • Signal — the default porcelain / night board with electric cyan.
    • Ember — the heritage warm identity (paper & espresso, coral signal) back as an option.
    • Moss — sage plate, verdant green.
    • Iris — violet plate, twilight iris.
  • Live swatches: each swatch in Appearance settings renders from its own board's real tokens in the active mode — the preview is the theme, not a picture of it.
  • Semantic colors (amber working-log, indigo delivery, success/warn/danger) stay constant across boards so agent turns read identically everywhere.

How

  • base.css collapses the light + dark palettes into one light-dark() token set; the media-query dark block is gone. Forcing a mode is now just color-scheme: light|dark via data-color-mode on <html> — the classic duplicated-override problem never comes back.
  • Boards are [data-board="…"] token override blocks. Scoping to the attribute (not :root) is what powers the swatch previews for free.
  • lib/appearance.ts owns load/apply/persist (localStorage, clickclack:color-mode:v1 / clickclack:board-theme:v1); an inline boot script in app.html applies stored prefs before first paint, so no flash. The settings section reads/writes the module directly — appearance is device-local, no server state, no prop drilling.
  • New Appearance section in account settings (keycap mode picker + board swatch grid).

Proof

appearance settings ember dark
moss light iris dark

Verification

  • pnpm test:e2e tests/e2e/appearance.spec.ts — 2 passed: forced mode applies instantly (attribute + computed color-scheme) and survives reload via the boot script; board switch retunes --accent, persists, and resets clean.
  • pnpm typecheck, pnpm lint, pnpm fmt:ts:check, pnpm build green; verified interactively in the browser (mode + board switching, swatch previews, no console errors).
  • Autoreview (Codex gpt-5.6-sol, xhigh): clean on first pass.
  • light-dark() is Baseline 2024 (Chrome 123+, Safari 17.5+, Firefox 120+), in line with the repo's use of color-mix().

Embedded web assets refreshed in the final build commit.

steipete added 2 commits July 12, 2026 11:49
Light/dark/system color mode plus four full-app board themes — Signal
(default), the heritage Ember, Moss, and Iris — each a light-dark()
pair, so every board ships tuned day and night variants. base.css moves
to a single light-dark() token set forced via color-scheme; boards are
data-board token overrides that also power the live swatch previews in
the new Appearance settings section. Prefs persist per device and an
app.html boot script applies them before first paint. E2E covers
instant apply, persistence across reload, and reset.
@steipete
steipete merged commit 2df8f32 into main Jul 12, 2026
5 checks passed
@vincentkoc
vincentkoc deleted the feat/appearance-themes branch August 2, 2026 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant