Open PickleNik opened 1 year ago
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
@media(prefers-color-scheme: dark)
(demo from Readme, unmodified)
https://github.com/nuxt-modules/color-mode/assets/31113245/15bf6dce-1559-4e7a-9b78-e613c1019795
see above
seamless page load
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 themingReproduction Link
(demo from Readme, unmodified)
https://github.com/nuxt-modules/color-mode/assets/31113245/15bf6dce-1559-4e7a-9b78-e613c1019795
Steps to reproduce
see above
What is Expected?
seamless page load
What is actually happening?