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

Discussion (0)