@ccreusat
Posted
Really really good job ! So clean :)
You could look about LocalStorage to keep users preferences about dark/light theme. Even give a shot to @prefers-color-scheme
Marked as helpful
@Marufjan
Posted
@ccreusat hi Mate ๐
Umm, I did not get your point here. What is the LocalStorage? where can I find @prefer-color-scheme?
Thanks for your compliment hehe :)
@ccreusat
Posted
@Marufjan localstorage gives you the ability to "save" anything you want in the user's browser . You could save the change about the theme (dark or light) and when the user comes back to your website, he will see the last change he did. If he choose to have the light theme, he will see the light theme next time. here's https://developer.mozilla.org/fr/docs/Web/API/Window/localStorage
@prefer-color-scheme will give you the opportunity to detect if the user's OS is set on the dark or light mode. https://developer.mozilla.org/fr/docs/Web/CSS/@media/prefers-color-scheme
Marked as helpful
@Marufjan
Posted
@ccreusat oh I got it. Appreciate it ๐๐ป