Skip to content

Add dark mode with system detection and manual toggle - #300

Merged
phil-opp merged 1 commit into
mainfrom
dark-mode-toggle
Nov 5, 2026
Merged

phil-opp merged 1 commit into
mainfrom
dark-mode-toggle

Conversation

@phil-opp

@phil-opp phil-opp commented Nov 5, 2026

Copy link
Copy Markdown
Member

The site now follows the system's prefers-color-scheme setting by
default. A toggle button in the header allows overriding it. An override
is stored in the browser's localStorage only (no cookies, nothing sent to
a server); toggling back to the system's theme clears the stored value.

All colors are now defined as CSS variables in theme.css. The utterances
comment widget is themed to match and updated when toggling.

Co-Authored-By: Claude Opus 5.5 [email protected]

The site now follows the system's `prefers-color-scheme` setting by
default. A toggle button in the header allows overriding it. An override
is stored in the browser's localStorage only (no cookies, nothing sent to
a server); toggling back to the system's theme clears the stored value.

All colors are now defined as CSS variables in `theme.css`. The utterances
comment widget is themed to match and updated when toggling.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@phil-opp
phil-opp merged commit ce6ff88 into main Nov 5, 2026
8 checks passed
@phil-opp
phil-opp deleted the dark-mode-toggle branch November 5, 2026 08:54
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