Skip to content

Issue 4864: Respect User Color Scheme Preference for Website Theme - #4865

Open
SoulofAkuma wants to merge 1 commit into
apache:masterfrom
SoulofAkuma:master
Open

Issue 4864: Respect User Color Scheme Preference for Website Theme#4865
SoulofAkuma wants to merge 1 commit into
apache:masterfrom
SoulofAkuma:master

Conversation

@SoulofAkuma

@SoulofAkuma SoulofAkuma commented Aug 9, 2026

Copy link
Copy Markdown

Descriptions of the changes in this PR:

Fix #4864 4864

Motivation

It's quite convenient when the website theme is auto-adjusted to the user prefernces set on their devise.
This feature is already supported by docosaurus, so it's easy and a minor change to add it here.

This avoids users with dark mode from encountering a light mode when loading the website and manually having to switch to it and vice versa.

Changes

Very minor config change in the website's docosaurus config.
Documentation about the config option I've added can be found here: https://docusaurus.io/docs/api/themes/configuration#respectPrefersColorScheme

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.

Respect Preferred Color Scheme on Website

1 participant