DEV Community

loading...

Discussion on: Add dark mode to your site with this short CSS trick

Collapse
amarok24 profile image
Jan P.

When I change to dark theme in Firefox then this line:
window.matchMedia("(prefers-color-scheme: dark)").matches
still returns false.