Skip to content

fix: prevent dark theme flash on navigation#6429

Open
Z1xus wants to merge 1 commit into
plausible:masterfrom
Z1xus:fix/dark-theme-navigation-flash
Open

fix: prevent dark theme flash on navigation#6429
Z1xus wants to merge 1 commit into
plausible:masterfrom
Z1xus:fix/dark-theme-navigation-flash

Conversation

@Z1xus
Copy link
Copy Markdown

@Z1xus Z1xus commented Jun 7, 2026

Changes

sets the initial dark class on the root html element when the saved theme is dark, so navigation does not briefly paint the page in light mode first

also sets the root html background and color-scheme to match the active theme

Tests

  • This PR does not require tests

Changelog

  • This PR does not make a user-facing change

Documentation

  • This change does not need a documentation update

Dark mode

  • The UI has been tested both in dark and light mode

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Jun 7, 2026

CLA assistant check
All committers have signed the CLA.

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