We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With Tailwind 4 (4.0.9 currently); modifiers only seem to work with utilities that do have an argument, this works:
@utility text-* { --alpha: calc(--modifier(integer) * 1%); color: --alpha(--value(--*, [color]) / var(--alpha, 100%)); }
With text-default, text-default/50, text-blue, text-blue/50, etc.
text-default
text-default/50
text-blue
text-blue/50
This doesn't work:
@utility text { --alpha: calc(--modifier(integer) * 1%); color: --alpha(red / var(--alpha, 100%)); }
With just text, text/50, etc. as the modifier isn't parsed.
text
text/50
Demo: https://play.tailwindcss.com/ECphsE1vzA?file=css
Related discussion: #15775
The text was updated successfully, but these errors were encountered:
No branches or pull requests
With Tailwind 4 (4.0.9 currently); modifiers only seem to work with utilities that do have an argument, this works:
With
text-default
,text-default/50
,text-blue
,text-blue/50
, etc.This doesn't work:
With just
text
,text/50
, etc. as the modifier isn't parsed.Demo: https://play.tailwindcss.com/ECphsE1vzA?file=css
Related discussion: #15775
The text was updated successfully, but these errors were encountered: