Replies: 2 comments 5 replies
-
No CSS API for this yet I'm afraid, still trying to crack the syntax. Any suggestions? |
Beta Was this translation helpful? Give feedback.
2 replies
-
What about this? Just like Functional utilities: @theme {
--lang-en: en;
--lang-ar: ar;
}
@custom-variant lang-* (&:lang(--value(--lang-*, [*]))); |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The documentation is missing a section about the matchVariant from plugin.
Is it possible to use an equivalent of matchVariant function from plugin in the new CSS syntax?
@variant
is not dynamic nor@custom-variant
(or missing documentation about it).I'm building something to support
slot-[loader]:text-red-400
for example. As a bonus, is it possible to remove the brackets and tailwind to understand to useloader
here likeslot-loader:text-red-400
? V4 now supports to drop those brackets forgrid-cols-xxx
orw-xxx
for example.Thanks for your help.
Beta Was this translation helpful? Give feedback.
All reactions