DEV Community

Discussion on: Add dark mode to your website with just a few lines of code

Collapse
 
thomasbnt profile image
Thomas Bnt ☕ • Edited

Nice post !
But an error on example :

document.getElementByID

edit to

document.getElementById

And

<button id="theme-toggle">Switch to dark mode<button>

to

<button id="theme-toggle">Switch to dark mode</button>
Collapse
 
albertomontalesi profile image
AlbertoM

Thanks, I've updated the post