Replies: 1 comment
-
This was brought back some time ago. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Named opacity values were previously supported as color alpha modifiers. They have been removed by #14278, but the rationale is - i humbly think - questionable and there remains a case for the relevance of reusable named alpha values.
Supporting some form of theme values for alpha modifiers through a set of variables other than
opacity
could prevent the confusion risks mentioned in the linked PR all while enabling a better DX with named vars that can be customized independently of their underlying value and prove relevant when designing systems with that expect standardized background or text fading independent of colors.For example:
Sure, one currently could resort to passing the full var function as an arbitrary value (
...-my-color/[var(--opacity-foo)]
), but this is somewhat cumbersome compared to the syntax that comes with supported theme values (...-my-color/foo
).Beta Was this translation helpful? Give feedback.
All reactions