-
Notifications
You must be signed in to change notification settings - Fork 292
Variable colors with <alpha-value> not working with theme function in Typography #360
New issue
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
Comments
Hey good catch, thanks for reporting! It turns out all the tailwindlabs/tailwindcss.com#1868 Instead of https://play.tailwindcss.com/a8JcZfAxdc?file=config Going to close this one as something we don't explicitly intend to fix, but if you just follow the suggestion above everything will work properly. The other good news is that in v4 we handle all this stuff in a totally different way that works even better, so this will be even less of a problem in the next major release. |
@adamwathan Maybe unrelated but is there any hint on v4.0 readiness? The last hint/post about progress was in the blog post on March 6th. |
@macmladen Going to post another blog post this week! But can see what we've done so far in the changelog: https://github.com/tailwindlabs/tailwindcss/blob/next/CHANGELOG.md |
@adamwathan Like I felt it in the air! I'm hardly waiting, especially beta stability and documentation so we can seriously start the research on integration (Drupal, in my case). |
What version of @tailwindcss/typography are you using?
0.5.7
What version of Node.js are you using?
v20.16.0
What browser are you using?
Firefox
What operating system are you using?
macOS
Reproduction repository
https://play.tailwindcss.com/Vy3U1DPfEc
Describe your issue
I found that using variables in
tailwind.config.js
a described in documentation works with Tailwind itself but it does not work in plugin Typography.That is demonstrated in the playground: https://play.tailwindcss.com/Vy3U1DPfEc
The problem
Here, using Tailwind class generated from the custom colors defined by variables work:
text-body/50
using--drupal-red
and 50% opacity:The same is not working with
.prose
at all: when compiled, it retains<alpha-value>
as literalFiles (partial)
style.css
tailwind.config.js
The text was updated successfully, but these errors were encountered: