Re: [csswg-drafts] [css-mixins] custom mixins & functions should have some access to custom properties on the calling element. How much? (#9938)

>  I really hope mixins can have access to those without every mixin having to explicitly define dozens or even hundreds of properties in a using clause, which would render them practically unusable.

Totally agree that without this, at least for the design system use case, I struggle to see how mixins would be practically useful.

> Also, I do think there is a fundamental difference between incidental variables that happen to be defined somewhere in a subtree, and a website’s design system (typically defined in the :root)

I think I disagree with this since it seems relatively common to set design system custom properties for given subtrees. Couple examples: I need this right bar to always be darker or this dialog to always have explicit error button states.

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


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

Received on Friday, 23 February 2024 19:37:22 UTC