Replies: 1 comment
-
Adam Wathan (creator of Tailwind) does seem to advocate avoiding
Instead, consider utilizing your templating system. |
Beta Was this translation helpful? Give feedback.
0 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.
-
Hi Tailwind team 👋,
I'm trying to create a tab indicator (like an animated underline for active tab) using Tailwind CSS only. Right now, I'm relying on custom CSS variables like this:
I want to avoid using custom CSS variables or inline styles — instead, I’d like to do it entirely with Tailwind classes, if possible.
Is there a recommended way in Tailwind to dynamically set width and translateX values without falling back to custom properties or inline style?
Would love any ideas, plugins, or patterns that fit well with Tailwind's philosophy.
Thanks in advance! 🙏
Beta Was this translation helpful? Give feedback.
All reactions