for my website, I have two different CSS files. One for showing the website in a dark theme and the other one in a light theme.
Now I would like to let the user switch between the two themes. But I don't know how I could implement this. I would prefer not to create two HTML files, where the only difference is that one has a link tag to the light theme and the other one to the dark theme.
The best solution would be that the user simply clicks on a button and the theme changes without reloading.
Is this possible?
Thanks!
Edit
Decided to go with this answer. Thanks @void