nextui-org / tailwind-variants

🦄 Tailwindcss first-class variant API
https://tailwind-variants.org
MIT License
2.42k stars 68 forks source link

feat: support for css variables and function syntax to the tv transformer #122

Closed PatrykWalach closed 10 months ago

PatrykWalach commented 1 year ago

Description

Fixes regex for any classes containing ")"

107

Additional context

This only supports one pair of parenthesis, optimal solutions would be to write a loop and track number of parenthesis or use recursive regex


What is the purpose of this pull request?

Before submitting the PR, please make sure you do the following

tianenpang commented 10 months ago

Adding support for css variables, css function and tailwind arbitrary values syntax to the transformer. (Nesting is supported)