-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
The theme()
function does not work in custom properties with square brackets inside
#9631
Comments
Please assign me this issue. |
I have looked into the issue and traced the way back to the regular Expressions in the functions of Apparently, there's some issue in the RegEx patterns wherein these particular types of arbitrary properties are parsed/matched incorrectly but are fine with other properties. For example, <div class='[height:_calc(100vh_-_theme(spacing[2.5]))]'>Lorem ipsum dolor sit amet.</div> it is parsed in the class candidate as Similarly, <div class="[box-shadow:_0_theme(spacing[1.5])_0_theme(colors.green.400)]">Lorem ipsum</div> it is parsed in the class candidate as Probable Workaround to this problem:Use arbitrary values like - Maintainer, Please assign this to me if nobody is working on this issue, I can work on this & the PR will be up soon 🎈 (once I figure out the regular expressions ). |
The PR #9705 for this issue is open now! |
Hey. Many thanks for the quick fix! 👍🏻 |
What version of Tailwind CSS are you using?
v3.2.1
Reproduction URL
https://play.tailwindcss.com/VZWEHQAaG2
Describe your issue
The text was updated successfully, but these errors were encountered: