Skip to content

Web: dark mode with a choice of dark themes - #9

Merged
xplosys merged 1 commit into
phase-6/telephonyfrom
claude/project-thread-oeswp0
Nov 27, 2026
Merged

xplosys merged 1 commit into
phase-6/telephonyfrom
claude/project-thread-oeswp0

Conversation

@xplosys

@xplosys xplosys commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Requested by Tausif · project thread

Stacked on phase-6/telephony (#8). Retarget to main once the phase stack merges.

What

  • Appearance menu in every header (workspace, platform admin, public site, sign-in pages): Light, Dark or System mode, plus six dark themes: Violet (default, matches the reference), Indigo, Orchid, Ocean, Ember, Emerald.
  • Every dark theme shares the reference look: near-black to colour gradient cards with a bright diagonal sheen, white text, pill badges, rounded white buttons, DM Sans with 16px semibold titles and 15px body text. Only the hue changes.
  • Choice is stored in the browser (localStorage) and applied by a tiny inline script before first paint, so there's no flash. System mode follows the OS setting live.
  • Light mode is unchanged.

How

  • src/app/theme.css: everything scoped to html[data-mode="dark"]; remaps the Tailwind utilities the app uses, so no page needed per-page dark classes.
  • src/lib/theme.ts: theme list and boot script. src/components/theme-picker.tsx: the menu.
  • ui.tsx: hook classes added to Button, Card, Badge, FormError, Notice (no visual change in light).
  • DM Sans is self-hosted via @fontsource-variable/dm-sans@5.3.0, so the CSP font-src 'self' still holds.

Checks

  • pnpm typecheck and pnpm lint pass.
  • Checked in Chromium against a local API: overview, agents/new, AI providers, team, audit, security, home, sign-in (desktop and 390px phone), all six themes, and light mode.

Generated by Claude Code

Appearance menu in every header: Light, Dark or System, plus six dark themes
(Violet, Indigo, Orchid, Ocean, Ember, Emerald). All share the reference look:
near-black to colour gradient cards with a diagonal sheen, white text, pill
badges, rounded white buttons, DM Sans with 16px titles and 15px body text.
The choice is kept in the browser and applied before first paint. Light mode
is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Gtfjmff2sRHjVTcLRGeaCY
@xplosys xplosys self-assigned this Nov 26, 2026
@xplosys
xplosys merged commit d5ffe11 into phase-6/telephony Nov 27, 2026
7 checks passed
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.

2 participants