Replies: 1 comment 2 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.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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