Default theme doesn't work #1077
-
Hello. The default theme doesn't work but TailwindCSS classes work.
Did I miss something? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
If I add my custom theme then classes are applying:
But the default theme doesn't work even if I import it manually:
|
Beta Was this translation helpful? Give feedback.
-
I found the problem. I have a monorepo and I use https://nx.dev.
must be like this:
or I may need to create a symlink |
Beta Was this translation helpful? Give feedback.
-
Hi! I'm just using Nx too and it seems that this is not working for me too. This is my tailwind.config.js
Even adding this it seems the default theme from flowbite is not being taken and only applying my theme in theme key and in Any ideas what could be happening? |
Beta Was this translation helpful? Give feedback.
-
Finally found what the issue is, it seems tailwind does not take the paths from the tailwind config file, it takes it from the root file so it was not resolving ../../node_modules, so finally the content looks like this
|
Beta Was this translation helpful? Give feedback.
I found the problem. I have a monorepo and I use https://nx.dev.
So the content:
must be like this:
or I may need to create a symlink
node_modules
in my Next project.