Skip to content

feat: add automatic color scheme - #1108

Merged
AlexAndBear merged 1 commit into
mainfrom
issues/1099
Aug 13, 2026
Merged

feat: add automatic color scheme#1108
AlexAndBear merged 1 commit into
mainfrom
issues/1099

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

fixes #1099

image

@AlexAndBear AlexAndBear added the Type:Maintenance E.g. technical debt, packaging, etc. label Aug 12, 2026
@AlexAndBear
AlexAndBear requested review from Heiko-Pohl and Svanvith and a lite review from Copilot August 12, 2026 23:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds automatic light/dark mode selection so the docs site can follow the user’s OS/browser color-scheme preference (fixes #1099), reducing “flashbang” experiences for dark-mode users.

Changes:

  • Enable automatic theme selection by honoring prefers-color-scheme via Docusaurus colorMode configuration.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@AlexAndBear
AlexAndBear requested a review from kulmann August 13, 2026 05:48

@Svanvith Svanvith left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

The automatic theme detection works as expected. If a theme was selected manually before, Docusaurus stores that choice in localStorage, which takes precedence over the system preference. This can make the automatic mode appear not to work, but is expected behavior.

@AlexAndBear
AlexAndBear merged commit 4f3ddec into main Aug 13, 2026
3 of 5 checks passed
@AlexAndBear
AlexAndBear deleted the issues/1099 branch August 13, 2026 08:30
@openclouders openclouders mentioned this pull request Aug 13, 2026
1 task
@AlexAndBear

AlexAndBear commented Aug 13, 2026

Copy link
Copy Markdown
Member Author

This can make the automatic mode appear not to work, but is expected behavior.

I don't think so. Theme switch has now three states: light, dark and automatic. It's totally expected: if I set the docusarus theme to light while my machine is on dark mode, that the light theme gets rendered and persisted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Docs:Build&Tools Type:Maintenance E.g. technical debt, packaging, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automatic light/dark mode based on os/browser settings

3 participants