$ 0 0 Thank you, this is exactly what I wanted! Example: using the console I query matchMedia in dark mode and then switch the browser to light mode: Developers, Chrome’s DEV Tools under Elements → Styles lets you define the browser light/dark mode: