Re: [csswg-drafts] [css-variables?] Higher level custom properties that control multiple declarations (#5624)

With the proposal in #3714 slightly extended for conditionals, a solution could look something like this:

~~~~ css
$pill {
  border-radius: 999px;
}

my-input {
  @include pill if (var(--pill) = "on");
}
~~~~

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


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

Received on Monday, 13 February 2023 05:57:38 UTC