-
The tailwind 4 docs state:
This includes the What I'm failing to understand is how would I in tailwind 4 generate additional classes based off my theme variables. For example, I want to create hover states for my colors. I'm using material 3 as my design guideline and interaction states use 8% of the
Material 3 has like ~15ish standard colors that would have an interaction state, that's a lot of copy and paste to manually create these. I don't see how to use the @Utility directive for something like this and how to do this without javascript and all with css variables. I usually use tailwind-material-colors so trying to imitate the styles it generates. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Wow incredible! Thank you so much! I was trying to do |
Beta Was this translation helpful? Give feedback.
Here's my go at it with
@utility
.