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

I'm trying to optimize this from a web developer's standpoint. Here are my criteria:

- The `(prefers-*: foo)` syntax including the required parentheses is familiar for developers and is used in CSS (`@media ()`), JS (`window.matchMedia()`), and HTML (`<link media>`), so try to stick to it.
- The term things vary on is always `media`, so try to use it.
- The concept of a previous default being overridden (like with [`display_override`](https://wicg.github.io/manifest-incubations/#display_override-member)) is a pattern that at least Chromium has used before, so I'm not against calling it `"*_override(s)"` (maybe `user_preference_overrides`).
- Extensibility is key. It started with dark mode, but more user preference media features were added, so having a generic enough property name seems to make sense. 



-- 
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-865826747

Received on Tuesday, 22 June 2021 09:38:09 UTC