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

This looks so nice! And yes, I need that not just yesterday, but 5 years ago.

A question I have is that it's not clear how to get the root property name from a specific one, i.e. from `--color-primary-dark-75` to `--color-primary` with `dark` and `75` specifiers. (What that mean some kind of string manipulation in CSS?)

I'm not sure if there could be much of a use case... Maybe if I want to use another variant with a different specifier, i.e. using `--color-primary-darker-75` for another part of the component.

-- 
GitHub Notification of comment by MaxArt2501
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9992#issuecomment-1962270225 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 06:06:54 UTC