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

> My main reservation with that is that this allows them to get out of sync, so that you end up having e.g. `--color-green-*` that uses a different shade of green than your `--color-green`.
> Also, it means you cannot style an aspect of a component by passing a single variable to it that contains all the color information it needs.

I think getting out of sync is not a problem. That's a user problem and not this problem. For me, that's perfectly fine.

I also agree with [Crissov](https://github.com/w3c/csswg-drafts/issues/9992#issuecomment-1962419868) on the syntax. It's always better to use some sort of syntax than having a reserved word.


I also believe that if this is accepted, it should be seen as syntax sugar the same way that CSS nesting could have been.

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


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

Received on Sunday, 25 February 2024 18:16:54 UTC