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

Basically, this:
```css
@color-scheme --ancestry, --arc, --arc-grey;

:root {
  --color-link: schemed-value(
    --ancestry yellow,
    --arc red,
    --arc-grey lime
  )
}

a { color: var(--color-link) }
```
would be equivalent to this:
```css
:root.ancestry {
  --color-link: yellow;
}

:root.arc {
  --color-link: red;
}

:root.arc-grey {
  --color-link: lime;
}

a { color: var(--color-link) }
```
Not sure if this is what Bramus had in mind lol.

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


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

Received on Monday, 4 December 2023 19:43:22 UTC