Change theme with toggle, buttons or select using css custom properties and localStorage
A Pen created on CodePen.io. Original URL: https://codepen.io/uvacoder/pen/ZEoXVXq.
Change CSS theme with toggle, buttons or select using CSS custom properties and localStorage.
It saves the chosen theme in brower localStorage and loads it again when page loads.
You only need to define your theme in CSS
https://github.com/saadeghi/theme-changer