Hacker News new | ask | show | jobs
by romellem 932 days ago
prefers-color-scheme only [accepts two values][0] at the moment: light and dark. However, they acknowledge this may not be fixed to this enum forever

> The values for this feature might be expanded in the future (to express a more active preference for light color schemes, or preferences for other types of color schemes like "sepia"). As such, the most future-friendly way to use this media feature is by negation such as (prefers-color-scheme: dark) and (not (prefers-color-scheme: dark)), which ensures that new values fall into at least one of the styling blocks.

[0]: https://drafts.csswg.org/mediaqueries-5/#prefers-color-schem...

1 comments

That's what I was getting at, thanks for the reference!