-
@CorbinUX And to find out if the browser understands the media query at all:
js if (window.matchMedia('(prefers-color-scheme)').media !== 'not all') { console.log('🎉 Dark mode is supported'); }web.dev/prefers-color-scheme/#finding-out-if-dark-mode-is-supported-by-the-browser