You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, firstly, thank you so much for your work on this incredible theme. Here is something I know notice during using the theme.
Describe the bug
When the page is in dark mode, changing to another page of the website could cause a brief flash of light theme before it set back to dark. It's like the flash light of a camera.
To Reproduce
Steps to reproduce the behavior:
Without the theme settings in config.toml, go to the website.
Set the theme to dark if it's not in dark mode already.
Click to access other pages like "Posts", "Portfolio", "About",...
See error
Expected behavior
The transition should be smooth and not flash a light theme appearance.
Screenshots
Desktop (please complete the following information):
OS: macOS
Browser: Chrome, Safari
Version of the Theme: v1.8.0
Version of Hugo (run a hugo version if unsure): v0.94.2
Additional context
The text was updated successfully, but these errors were encountered:
I had the same issue and I resolved it with the following post. Instead of applying the theme class to the body of the document, apply it to the HTML tag directly. This way the theme can be set before the initial render and there is no white flash. If I have time, I'll refactor my code and open a PR the next days.
Hi, firstly, thank you so much for your work on this incredible theme. Here is something I know notice during using the theme.
Describe the bug
When the page is in dark mode, changing to another page of the website could cause a brief flash of light theme before it set back to dark. It's like the flash light of a camera.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The transition should be smooth and not flash a light theme appearance.
Screenshots
![Screen Shot 2022-03-20 at 6 52 03 PM](https://user-images.githubusercontent.com/75784849/159161117-67ddc82e-e2ee-42df-a58c-667165cc0105.png)
Desktop (please complete the following information):
hugo version
if unsure): v0.94.2Additional context
The text was updated successfully, but these errors were encountered: