Re: [w3c/manifest] Add a `color_scheme` member to `ImageResource` (#758)

The spec for this is [here](https://drafts.csswg.org/mediaqueries-5/#descdef-media-prefers-color-scheme). In CSS, you'd do something like this (greatly simplified):

```css
/* Default assumes light theme */
body {
  background-color: white;
  color: black;
}

/* For dark mode folk, invert */
@media (prefers-color-scheme: dark) {
  body {
    background-color: black;
    color: white;
  }
}
```

So we could either make the values of `theme_color` and `background_color` more complex by somehow adding alternatives; one idea could be `"theme_color": "black / @media (prefers-color-scheme: dark) white"` (similar to https://drafts.csswg.org/css-content/#alt).

Alternatively, we could add more properties like `theme_color_dark` and `background_color_dark`, which would be backwards compatible and simpler. And while [Media Queries Level 5](https://drafts.csswg.org/mediaqueries-5/#mf-user-preferences) defines more user preference media queries, none of the other ones seem super relevant for Web App Manifest (apart from maybe `inverted-colors`), so we'd probably not have to introduce further properties for them.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/manifest/issues/758#issuecomment-475567695

Received on Friday, 22 March 2019 10:25:34 UTC