Default theme doesn't work #1077
|
Hello. The default theme doesn't work but TailwindCSS classes work.
Did I miss something? |
Replies: 5 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: |
|
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 |
|
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? |
|
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 |

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_modulesin my Next project.