docs icon indicating copy to clipboard operation
docs copied to clipboard

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

Open milinddethe15 opened this issue 3 months ago • 0 comments

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.

milinddethe15 avatar Sep 23 '25 12:09 milinddethe15