OMG
Edit because I had to check how you did the toggle and I have things to say: O M F G that classList.toggle is genius and now I'm so jealous that I didn't come across that when I was working on light mode / dark mode stuff myself because that would've saved me so much headache
Do you mind if I steal that implementation for my own stuff (it's so much better than how I made mine work) (I'll credit you, of course)?