
Solution retrospective
apart from the toggle button for themes, i have faced an issue where upon reloading the window, the overall color scheme goes blank. fortunately a classic if-else statement does the trick whenever localstorage isnt stored, it gets overwritten with default theme which in this case it goes by the name of theme-1 stored into the classname.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on vintech05's solution.
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord