Skip to content
Discussion options

You must be logged in to vote

To create a component library that can be reused across multiple apps, you could bundle the components and Tailwind CSS into a single package. This way, the app can either import the bundled CSS or extend the Tailwind config to customise it. Another approach is to expose your theme variables so the consuming app can adjust the styles as needed.

If you’re using Tailwind, it’s generally cleaner to bundle the library’s CSS separately rather than running the Tailwind CLI for each app.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@nareshbhatia
Comment options

@georgeeburt
Comment options

@nareshbhatia
Comment options

Answer selected by nareshbhatia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants