How to Integrate Plugins like 'DaisyUI' with Tailwind CSS v4 #15828
Replies: 6 comments 8 replies
|
The main topic of discussion for v4 + Daisy UI can be found at saadeghi/daisyui#3246. It mentions v4 beta but I believe the documentation there is still relevant. |
|
actually Daisy UI does have good docs on it, they're just in the beta since that's where the tailwind 4 support will come https://v5.daisyui.com/docs/v5-beta/ |
|
The new version of daisyui(still beta version) supports tailwindcss v4.0. |
|
did so, the warning went away |
|
In Tailwind CSS v4, the configuration has shifted from JavaScript to CSS-first. Installation: npm i daisyui@latest Implementation: Add @plugin "daisyui"; directly into your main CSS file. Example: CSS CSS |

Uh oh!
There was an error while loading. Please reload this page.
As we all know, in previous versions, we simply installed the plugin with
npm i daisyuiand required it in thetailwind.config.jsfile. However, in version 4, this has changed and it's no longer needed.My question is: How do we use plugins like DaisyUI with Tailwind CSS in the new version? I've searched through the documentation but couldn't find any information on this topic. Even DaisyUI's documentation hasn't addressed this change yet.
All reactions