Re: [csswg-drafts] Proposal: CSS Variable Groups (as a solution to several design systems pain points) (#9992)

My initial response to the green example of group assignment in isolation `--color-primary: var(--color-green);` was discomfort that there is no immediate way to discern a group assignment is occurring. It wouldn’t be quite so beautifully seamless, but `vars()*` in place of `var()` to do this magic would help express what’s happening.

Of course there is always room for naming convention to suggest the “groupness” of a variable. For example, capitalising group names `--color-primary: var(--Color-green)`.

I _very_ much like how the standalone `default` concept levers the power offered by color-mix in your example. 👏

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


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

Received on Saturday, 24 February 2024 13:04:16 UTC