I made a light and dark css for my web. Light css as default and dark css as alternative. It works perfectly with the help of JavaScript. Now the problem is, if a user select dark version and refresh the page or go to next page, it goes back to light css again. I need my web to load dark css as default css if a user select dark css. How will be it made? Is it with the help of JavaScript? If yes please give the codes too.
Thanks