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
-
@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