Skip to content
Discussion options

You must be logged in to vote

You're right.... so if I wanted to have specific styles, I could prefix the class in the component. And it could work like this:

I would compile the style in the component package, to /dist/styles.css

And where I have, for example, a button - I would import import '../../dist/styles.css'

I tried it and it behaves exactly as I would expect - in the global style I have everything related to the application, including the tailwindcss class, and where the button is loaded, the extra style is loaded from that package, where I only have specific styles for the button.

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@icyJoseph
Comment options

Comment options

You must be logged in to vote
1 reply
@icyJoseph
Comment options

Comment options

You must be logged in to vote
1 reply
@icyJoseph
Comment options

Answer selected by a-d-w-s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants