Replies: 2 comments 8 replies
-
You might need to use As an aside, Adam Wathan (creator of Tailwind) does seem to advocate avoiding |
Beta Was this translation helpful? Give feedback.
8 replies
-
This should have been made explicit in the v4 documentation. My day has been ruined by this secretive thing. |
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.
-
it was updated by tailwindcss v4.
But my code was occured error "Pre-transform error: Cannot apply unknown utility class: text-white".
how to solve it?
i rewrote this code.
in my old version:
@layer components {
.danger-button {
@apply bg-red-500 text-white hover:bg-red-400 shadow-btn border rounded-md disabled:bg-red-400 transition-all;
}
}
in v4 version:
.success-button {
@apply bg-success text-white hover:bg-[#40c88b] border border-success
disabled:bg-[#56836f] disabled:border-[#40c88b] hover:border-[#40c88b] transition-all;
}
Beta Was this translation helpful? Give feedback.
All reactions