DEV Community

Cover image for How Use Dark Theme In Any Web App.
Mafee7
Mafee7

Posted on

How Use Dark Theme In Any Web App.

Code

var divs = document.querySelectorAll("*")
for (var i = 0; i < divs.length; i++){
    divs[i].style.backgroundColor = "rgb(34,34,34)";
divs[i].style.color = "white";
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)