Tailwind 4 does not read classes from third part library #17141
Unanswered
FilipBrannlund
asked this question in
Help
Replies: 1 comment
-
Yes, you'd use the @source "../path/to/node_modules/library"; |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using a next 15 application with postcss and having problem that TW does not fetch/read the TW classes that my third part library uses.
I have a package named Button that uses following TW classes. text-2xl py-2
When I render the component text-2xl and py-2 is not applied.
e.g
<Button size="xl">Test</Button>
But if I make a p-tagg that uses text-2xl and py-2 tailwind loads the classes and they are applied on Both p tag and Button.
postcss.config.mjs
Seems like I have to point to tailwind to look for classes in node_modules?
Beta Was this translation helpful? Give feedback.
All reactions