@coderdannie
Posted
Hi. Congrats on the completion of this project. An extra features you can add is to store the themes state using browser localstorage so that your site can maintain the theme state even if the page was reload. Right now if I switch to light mode and reload the web page its switching back to the default theme. Using browser storage to store the theme and accessing the themes based on user preference will prevent this from happening. https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage
Marked as helpful
@omerturkerweb
Posted
@coderdannie Definitely values such as language and theme should be kept in localStorage. This would be the best option for user experience, I just did it the first way I can think of. thanks for your feedback. :)
@coderdannie
Posted
@omerturkerweb thanks for the likes. I really appreciates. Perhaps we could follow each other as well. Thanks