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
<h1class="text-[color:var(--my-var)]">This is my first h1</h1><h1class="p-[var(--only-3-words)]">This is second h1</h1><h1class="text-[color:var(--my-var-with-more-than-3-words)]">And this is my third h1</h1><h1class="leading-[var(--my-var-for-leading)]">This does not work neither :(</h1>
But only works as expected --my-var. If I use 3 or more words, it breaks. This is the generated CSS (only classes with variables):
What version of Tailwind CSS are you using?
v3.0.23
What build tool (or framework if it abstracts the build tool) are you using?
Tailwind Playground
What version of Node.js are you using?
Tailwind Playground
What browser are you using?
All browsers
What operating system are you using?
All OS
Reproduction URL
https://play.tailwindcss.com/bE29J27Nvf
Describe your issue
I declare my CSS variables in
:root
like:Then I want to use them as arbitrary values like:
But only works as expected
--my-var
. If I use 3 or more words, it breaks. This is the generated CSS (only classes with variables):The text was updated successfully, but these errors were encountered: