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

Happy to see Tab covered this one, as I wasn’t able to attend the F2F this morning _(things here got hectic pretty quickly …)_.

To reply to some specific things from the discussion:

- `light-dark()`: This function was the result of https://github.com/w3c/csswg-drafts/issues/7561. However, it is not the end goal of that issue. The more broader `schemed-value()` _(and `schemed-color()` as an intermediate step)_ is. Those functions _are_ able to respond to various color-scheme values, including the custom ones.

- Design Tokens / Use Case: Initially [I had the idea](https://github.com/w3c/csswg-drafts/issues/9660#issuecomment-1833875432) to be able to put any (color) declaration in there which would act as [globals](https://github.com/w3c/csswg-drafts/issues/9206)/constants _(i.e. variables that don’t cascade nor can be changed but that you can access from anywhere)_. The current proposal doesn’t encompass this, but I still think it would unlock the true power of custom schemes.

/ping @svgeesus, @LeaVerou, @fantasai, @emilio, and @kizu who all joined the discussion this morning.

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


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

Received on Wednesday, 12 June 2024 12:28:11 UTC