Override an abstracted utility classes #4046
Answered
by
adamwathan
Ali-Hussein-dev
asked this question in
Help
-
.btn {
@apply p-1 font-semibold ...;
} // ...
<button class="btn px-6">Button<button> I am trying to override one of the abstracted utility classes |
Beta Was this translation helpful? Give feedback.
Answered by
adamwathan
Apr 11, 2021
Replies: 1 comment
-
Make sure the btn class is defined within the "components" layer and you should be good: https://tailwindcss.com/docs/extracting-components#extracting-component-classes-with-apply |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Ali-Hussein-dev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Make sure the btn class is defined within the "components" layer and you should be good:
https://tailwindcss.com/docs/extracting-components#extracting-component-classes-with-apply