Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix: Respect user's browser theme preference on initial load#2733

Open
milinddethe15 wants to merge 1 commit intoprometheus:main from
milinddethe15:feat/auto-theme
Open

Fix: Respect user's browser theme preference on initial load #2733
milinddethe15 wants to merge 1 commit intoprometheus:main from
milinddethe15:feat/auto-theme

Conversation

@milinddethe15
Copy link

@milinddethe15 milinddethe15 commented Sep 23, 2025

What

Set the default color scheme to "auto" to respect the user's browser/system theme preference when first loading the site.

Changes

  • Updated MantineProvider to use defaultColorScheme="auto"
  • Updated ColorSchemeScript to use defaultColorScheme="auto"

Before

Site always loaded in light mode regardless of user's browser preference.

After

Site now loads with the user's preferred theme (dark/light) based on their browser/system settings, while maintaining the ability to manually override via the theme selector.

Signed-off-by: milinddethe15 <milinddethe15@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /