loading...

re: Create A Dark/Light Mode Switch with CSS Variables VIEW POST

FULL DISCUSSION
 

this doesn't work for me. console says 'toggleSwitch is null'

 

add the code after the switch in tags

 

Add the JS inside DOMContentLoaded method

Code of Conduct Report abuse