Re: [w3c/manifest] Add support for defining a theme color for both light & dark modes (prefers color scheme) (#975)

I don't think we can touch `"theme_color"` as that will break older browsers.

We may want to create a `"theme_colors"` (plural) property that is an array of objects (so that it's extensible if needed in the future) that would take precedence over `"theme_color"`
```
"theme_color": "red",
"theme_colors": [
    { "color": "red" },
    { "color": "darkred", "media": "(prefers-color-scheme: dark)" }
]
```
I don't have a strong preference, but I think using the last item in the list that matches (i.e. last pass) is generally easier to understand/follow (it also more closely matches the way it would be written in CSS).

If this is an approach we like, perhaps we could/should do it for `"background_color"` (i.e. `"background_colors"`) too?

-- 
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/975#issuecomment-832220101

Received on Tuesday, 4 May 2021 20:26:52 UTC