I believe some work was done here to support dark mode. The default should be the mode specified by the browser.
Most browsers supply this media query https://caniuse.com/#search=prefers-color-scheme
This can also be read in javascript. This article has the best practice ways to support this: https://web.dev/prefers-color-scheme/#finding-out-if-dark-mode-is-supported-by-the-browser