Can't add a plugin to Tailwind
Answered
Cape lion posted this in #help-forum
Cape lionOP
I wanted to add
DaisyUI
to my project however, there is no document called tailwind.config.js
or similar where I can add it. Can anyone help please?Answered by LuisLl
You can add a tailwind.config.js file and it’ll work, but now you have to go to globals.css and add: @config "../../tailwind.config.js";
5 Replies
Tailwind V4 removed the tailwind.config.js file and moved completely to the globals.css file.
To use Daisy UI see if they already support Tailwind 4 in their docs, maybe will take a bit of time for libraries to fully support tailwind v4
To use Daisy UI see if they already support Tailwind 4 in their docs, maybe will take a bit of time for libraries to fully support tailwind v4
You can add a tailwind.config.js file and it’ll work, but now you have to go to globals.css and add: @config "../../tailwind.config.js";
Answer
Best would be to check in Daisy UI docs and see if they already support Tailwind v4, if so follow their recommendations
@Cape lion solved?
Cape lionOP
Yes yes