Re: [csswg-drafts] [css-color-adjust] Allow authors do define custom `color-scheme` values. (#9660)

> The alternative to this is registering them with a JS API?

Would be nice indeed. Simliar to `CSS.registerProperty` you could have something like `CSS.registerColorScheme`.

---

> Also should we require a colour scheme be tied to a base light or dark.

I think custom light and dark themes should be separate versions. Looking at VS Code as an example they offer “Solarized Light” and “Solarized Dark”, which are separate things.

---

The registered custom color schemes should also be observable via the Web Preferences API, so that the choice can be set and persisted via JS.

-- 
GitHub Notification of comment by bramus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9660#issuecomment-1833895120 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 30 November 2023 14:34:37 UTC