How to create custom utility classes using @apply? #803
Replies: 1 comment
-
@AgarwalPragy This is standard behavior for Tailwind. They do not allow component classes to be implemented with <button class="btn btn-ghost-surface hover:btn-filled-primary w-full">Hello</button> This is the approach Tailwind recommends: Additionally we provide some tips for handling global styling here if it helps: |
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.
-
I've the following code to create a custom button style
This works on the dev server, but fails when doing
pnpm build
with the errorBeta Was this translation helpful? Give feedback.
All reactions