Detect/check user color scheme preference

window.matchMedia('(prefers-color-scheme: dark)').matches;