Replies: 3 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.
-
|
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.
-
|
I presume this hasn't changed sine 10th April 2025 (last post)? I was looking to introduce some dynamic custom variants for setting view-transition related properties. For example
To be able to set properties relating to view transitions from Tailwind classes, rather than needing to add some disconnected styling in the CSS files directly when all the other styling is done in the component(s) via classes. We could have done this easily with |
Beta Was this translation helpful? Give feedback.
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?
@variantis not dynamic nor@custom-variant(or missing documentation about it).I'm building something to support
slot-[loader]:text-red-400for example. As a bonus, is it possible to remove the brackets and tailwind to understand to useloaderhere likeslot-loader:text-red-400? V4 now supports to drop those brackets forgrid-cols-xxxorw-xxxfor example.Thanks for your help.
Beta Was this translation helpful? Give feedback.
All reactions