You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah this is tough because of naming conflicts. Tailwind has classes like text-sm but also text-black, so when you say text-[var(--foo)] we don't know if that is a color or a font-size.
I think one way we could solve this is having a dedicated plugin for handling arbitrary text values that generates this:
As an alternative, adding fluid text sizes would also work for me. That does not address the fact, that variables will still not work, but will fix my root cause. Did you consider adding fluid designs to tailwind yet? I really like the idea, but you have more experience in css than me: https://www.smashingmagazine.com/2021/04/designing-developing-fluid-type-space-scales/
What version of Tailwind CSS are you using?
2.1.0
What build tool (or framework if it abstracts the build tool) are you using?
postcss8
What version of Node.js are you using?
15.14.0
What browser are you using?
Firefox
What operating system are you using?
Arch Linux
Reproduction repository
See comment
Describe your issue
Hey guys!
I try to implement fluid font sizes according to https://www.smashingmagazine.com/2021/04/designing-developing-fluid-type-space-scales/
I have generated the following pattern:
But the syntax
text-[var(--step-5)]
does not work. Using a fixed pixel size works, and using the style inline also works.The text was updated successfully, but these errors were encountered: