Open travisk-codes opened 4 years ago
The issue seems to happen on every layout, part of the layout doesn't take account the localStorage value:
I am able to reproduce on prod, but not on develop master
. Are you?
prod steps: light mode -> refresh -> switches to dark mode with black text dev steps: light mode -> refresh -> stays in light mode
I'm feeling like it's related to statically generated generated Gatsby assets
yes 100%: https://joshwcomeau.com/gatsby/dark-mode/ improved solution from what we have
I'll look into it--does it look like a major overhaul?
No we have the majority of the groundwork already for it, it's mainly injecting some JS at runtime before Gatsby runs which is covered by the article.
Description: When light mode is enabled, refreshing the title page will revert it back to dark mode.
To Reproduce:
Expected Behavior: Light mode to persist after refresh
Environment: