tw-in-js / twind

The smallest, fastest, most feature complete Tailwind-in-JS solution in existence.
https://twind.style
MIT License
3.79k stars 104 forks source link

Is it possible to extract stylesheets relative to components in a react component library? #454

Closed AdsonCicilioti closed 3 months ago

AdsonCicilioti commented 1 year ago

We all know that Tailwind builds a single stylesheet based on the (final) HTML content that its utility classes use.

But in a lib of React UI components, where we will install the package but we will only use a Button and some Form Inputs, for example, the ideak would be for each component to bring its own style sheet. Would it be possible to do this with Twind?🤞

mfissehaye commented 1 year ago

Would it be possible to use twind to style just the library components you are building? Please provide an example

stale[bot] commented 3 months ago

Hey folks. This issue hasn't received any traction for 90 days, so we're going to close this for housekeeping. If this is still an ongoing issue, please do consider contributing a Pull Request to resolve it. Further discussion is always welcome even with the issue closed. If anything actionable is posted in the comments, we'll consider reopening it. ⓘ