Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Flashbang 馃挜 FOUC 馃 #204

Open
PickleNik opened this issue Jul 25, 2023 · 0 comments
Open

[BUG] Flashbang 馃挜 FOUC 馃 #204

PickleNik opened this issue Jul 25, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@PickleNik
Copy link

there's a split-second light mode flash before the dark mode is applied

one possible solution could be to set background color based on @media(prefers-color-scheme: dark) in CSS by default and then let JS take over the theming

Reproduction Link

(demo from Readme, unmodified)

Screen.Recording.2023-07-25.at.2.17.51.AM.mov

Steps to reproduce

see above

What is Expected?

seamless page load

What is actually happening?

@PickleNik PickleNik added the bug Something isn't working label Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant