skip to Main Content

How could I make it so that the dark mode switch effects more then just the body, As well as making it change icons to a moon once toggled? – Html

function myFunction () { let element = document.body; element.classList.toggle("dark-mode"); } @import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@1,700&display=swap'); /*Used for Nav */ @import url('https://fonts.googleapis.com/css2?family=Sono:wght@300&display=swap'); /* used for body */ body { background-color: #5465FF; font-family: 'Sono', sans-serif; color: black; } img { width: 30%; height: auto; margin-top:…

VIEW QUESTION
Back To Top
Search