Light / dark / auto theme toggle (default: light) #7

Closed
opened 2026-10-13 18:53:05 +00:00 by ben · 1 comment
Owner

Add a theme switcher.

Scope

  • Options: Light (default), Dark, Auto (follows OS prefers-color-scheme).
  • Persist per user (per device until accounts exist); apply before first paint to avoid a flash.
  • Note: today the app follows the OS automatically; the default must change to light.

Acceptance

  • All screens, including Summary/print, readable in both themes; the print view always uses light.

Handoff context: the app is being prepared so a counselling practice can self-host it (see README and docs/self-hosting.md). Today the app has no auth by design, two hard-coded decks in shared/cards.json, three fixed columns, and Fastify + SQLite + SSE sync (docs/api.md).

Add a theme switcher. **Scope** - Options: Light (default), Dark, Auto (follows OS `prefers-color-scheme`). - Persist per user (per device until accounts exist); apply before first paint to avoid a flash. - Note: today the app follows the OS automatically; the default must change to light. **Acceptance** - All screens, including Summary/print, readable in both themes; the print view always uses light. --- Handoff context: the app is being prepared so a counselling practice can self-host it (see README and docs/self-hosting.md). Today the app has no auth by design, two hard-coded decks in `shared/cards.json`, three fixed columns, and Fastify + SQLite + SSE sync (docs/api.md).
Author
Owner

Done in ffbc08e and deployed:

  • light, dark and auto themes, applied before first paint by a same-origin script (CSP unchanged);
  • saved per device;
  • printing always uses the light theme.

Acceptance met, so I'm closing this.

Done in ffbc08e and deployed: - light, dark and auto themes, applied before first paint by a same-origin script (CSP unchanged); - saved per device; - printing always uses the light theme. Acceptance met, so I'm closing this.
ben closed this issue 2026-10-15 02:10:18 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ben/career-values-cards#7
No description provided.