Created a application where clicking a color would change theme respectively.
Learned about how to change the css variable property We can use the :root selector, which matches the root element of the document, with document.querySelector() in the following way to get the root element: document.querySelector(':root')
- HTML5
- CSS
- JavaScript