Toggling themes | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Toggling themes

How do I let users toggle between dark and light mode across multiple websites

30th Nov 2020, 4:33 PM
manuel omono
manuel omono - avatar
1 Answer
+ 1
Hmmm you can use local storage to store the theme value the user chose And with every page to page or site to site movement you check first for that value locally stored and adjust the theme depending on it
30th Nov 2020, 4:39 PM
Ali Kh
Ali Kh - avatar