Feature Suggestion: @component for Tailwind CSS #17404
phadin2009
started this conversation in
Ideas
Replies: 1 comment
-
You can do this with @utility btn-primary {
@layer components {
…
}
} |
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.
-
@component btn-primary {
@apply text-red-500 bg-blue-500 px-4 py-2 rounded;
}
This would work like @Utility but inside @layer components, ensuring that only used components are compiled.
or you have any idea, let me know
Beta Was this translation helpful? Give feedback.
All reactions