I am using prefers-color-scheme: dark
to create a dark theme in CSS (it applies to Safari in macOS v10.14 (Mojave)). Is there a way to force the page to use my dark mode code on other browsers that don't support it, like the following?
document.querySelector('#toggleDarkMode').addEventListener('click', function () {
-- Force page to use dark mode defined in CSS
})