I am following along this tutorial and got it working, however it only modifies the body and not the containers.
I’ve added this to Hooks but not sure what the containerElement variable should equal to target the background and font colors of .site-content .inside-article and header:
<script>function myFunction() {
var bodyElement = document.body;
var containerElement = ?
bodyElement.classList.toggle("dark-mode");
containerElement.classList.toggle("dark-mode");
}</script>
I am also open to a more elegant method of dark mode if you have suggestions.