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

> @Afif13 I think property groups are here to handle custom properties managing complexity. Groups do not have any value for its own sake. Otherwise it would be mentioned in the proposal.

They do based on the [whole proposal](https://lea.verou.me/docs/var-groups/) as we can do something like

```css
:root {
 --color-green: {
  100: oklch(95% 13% 135);
  900: oklch(25% 20% 135);
 }
}

my-component {
 --color-primary: var(--color-green);
}
```

So if I define ```--color-green-100``` and ```--color-green-900``` manually, does it mean we also have an implicit access to ```--color-green``` 

-- 
GitHub Notification of comment by Afif13
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9992#issuecomment-1962313499 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 09:47:18 UTC