I don't know what to google so I haven't really found anything but I'm building a website that I would like to have a theme switched. Something like what neowin and other sites have been doing with the light / dark switcher.
I would think JavaScript would be the best way for it to be "on the fly" but how would I store that for the current user? Would it be a cookie? Some kind of session file so if that user comes back it's remember?
I don't know what the best practice would be. Finally getting back into coding websites / web development / app development. It's been awhile.
Question
Sikh
I don't know what to google so I haven't really found anything but I'm building a website that I would like to have a theme switched. Something like what neowin and other sites have been doing with the light / dark switcher.
I would think JavaScript would be the best way for it to be "on the fly" but how would I store that for the current user? Would it be a cookie? Some kind of session file so if that user comes back it's remember?
I don't know what the best practice would be. Finally getting back into coding websites / web development / app development. It's been awhile.
I hope someone out there can help!
Link to comment
Share on other sites
7 answers to this question
Recommended Posts