i have tow css variables: --light-mode-bg: #fff and --dark-mode-bg: #000, the default is the light, i want when the user click on the dark mode button switch every thing that uses the variable --light-mode-bg to --dark-mode-bg
i have tow css variables: --light-mode-bg: #fff and --dark-mode-bg: #000, the default is the light, i want when the user click on the dark mode button switch every thing that uses the variable --light-mode-bg to --dark-mode-bg
Register to vote on and add code examples. Join our developer community to improve your dev skills and code like a boss!
No Good?
Help us improve our code examples by registering to vote on and add answers. Join our developer community to improve your dev skills and code like a boss!