Are you getting errors when trying to use DaisyUI 5 themes with Tailwind CSS v4 and Vite? The official @plugin syntax often fails with "Unknown file extension" or simply doesn't load the themes.
In this video, I show you the easiest way to fix the DaisyUI theme problem by manually importing the theme CSS files. This method is 100% stable for React and Vite projects using the new Tailwind v4 engine.
The Fix:
Install DaisyUI 5.
Add
@import "tailwindcss";
@import "daisyui/daisyui.css";
@import "daisyui/theme/cupcake.css"
to your index.css.
Apply data-theme="cupcake" to your HTML tag.
No more configuration errors! If this helped, please Like and Subscribe!
#daisyui #tailwindcss #reactjs #vite #webdevelopment