[V4] Custom classes not applying based on data attribute value #16862
Answered
by
wongjn
mikeploythai
asked this question in
Help
-
Beta Was this translation helpful? Give feedback.
Answered by
wongjn
Feb 28, 2025
Replies: 1 comment 1 reply
-
You'd need to use @utility btn {
@layer components {
@apply …;
}
}
@utility btn-primary {
@layer components {
@apply …;
}
}
@utility btn-seconday {
@layer components {
@apply …;
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mikeploythai
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You'd need to use
@utility
so that Tailwind "knows" about the class names, like: