No one in their right mind is using media queries which aren't widely supported without a fallback.
No one in negating possibility of new values for this query. If they will be added to the spec and impement by browser vendors, people will adjust to it.
Hacky solutions to setting color scheme shouldn't be supported by browsers.
People will name their blog posts whatever they like.
Value for this media query is literally "light | dark" in spec which you queted(!).
In such context it's important to get the api right if we don't want to introduce breaking changes in the future to all lib users.
If you look at libs adding dark mode support you'll notice that they first name the lib like gatsby-dark-mode-plugin and expose the Conf as a boolean. I think this is a mistake, but yeah probably not a big deal.
-2
u/Eggy1337 Jun 18 '20 edited Jun 18 '20
No one in their right mind is using media queries which aren't widely supported without a fallback.
No one in negating possibility of new values for this query. If they will be added to the spec and impement by browser vendors, people will adjust to it.
Hacky solutions to setting color scheme shouldn't be supported by browsers.
People will name their blog posts whatever they like.
Value for this media query is literally "light | dark" in spec which you queted(!).