Skip to content

Inlined Tailwind classes not working for components imported from node_modules #7720

Answered by endigo9740
endigo9740 asked this question in Help
Discussion options

You must be logged in to vote

A quick follow up - I was able to get it working by setting the config content path to:

'./node_modules/@org/packageName/**/*.{html,js,svelte,ts}'

I figure I'll leave this post up just to confirm this is the best manner to solve this. Currently this requires one extra step for users consuming the library.

Could I perhaps instead add this content path to the Tailwind plugin I'm already shipping bundled into the component library itself? I had added this to extend the color palette using theme.extend

Replies: 6 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by endigo9740
Comment options

You must be logged in to vote
4 replies
@wongjn
Comment options

@N00nDay
Comment options

@sumanthneerumalla
Comment options

@TJdhyani
Comment options

Comment options

You must be logged in to vote
2 replies
@N00nDay
Comment options

@endigo9740
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
6 participants