Skip to content

Files

Latest commit

 

History

History
12 lines (10 loc) · 750 Bytes

eb00af56654e01082474c2701b4e680c1c729bbf.md

File metadata and controls

12 lines (10 loc) · 750 Bytes
title date submitter number tags discussion
I want a media query to detect when a device is running in “night mode”
2020-05-18
Kilian Valkhof
eb00af56654e01082474c2701b4e680c1c729bbf
css

With more and more OSes offering “night mode”—where the screen dims and blues are reduced—it would be nice to have a media query to detect that. Maybe even with a way to (request to) deactivate it for a site or a specific part of a website where color accuracy is important.

This would be interesting for media browsing or editing, but also for smaller stuff like adapting the site’s contrast like you might with light-level and prefers-contrast: low media queries.