Skip to content

Fix color mode ignoring docusaurus-theme URL param - #367

Merged
fxck merged 1 commit into
mainfrom
fix/color-mode-url-theme-override
Aug 25, 2026
Merged

Fix color mode ignoring docusaurus-theme URL param#367
fxck merged 1 commit into
mainfrom
fix/color-mode-url-theme-override

Conversation

@Edward-Deakin

Copy link
Copy Markdown
Collaborator

What Type of Change is this?

  • Minor Fix

Description (required)

The color-mode provider only read the persisted theme from localStorage on mount, so a ?docusaurus-theme= query param was silently ignored and the page always defaulted to light mode. The URL param now takes priority, falling back to localStorage, then light.

Related issues & labels (optional)

  • /closes #

馃 Generated with Claude Code

https://claude.ai/code/session_01KV4vQhfyNV57p28BJMeGoq

@fxck
fxck merged commit a997c78 into main Aug 25, 2026
2 checks passed
@fxck
fxck deleted the fix/color-mode-url-theme-override branch August 25, 2026 14: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.

2 participants