Hacker News new | ask | show | jobs
by infotainment 764 days ago
No need to -- there's a CSS media query, "prefers-color-scheme", which allows a website to apply styles conditionally depending on whether or not the user is in dark mode.