79739758

Date: 2025-08-19 10:12:27
Score: 0.5
Natty:
Report link

For anyone having issues with DaisyUI styles not being applied in a Next.js app, starting from Tailwind v4, the tailwind.config.js file is no longer required. You don’t need to register DaisyUI as a plugin there. Instead, you can simply import DaisyUI in your global CSS file.

Add the following line to your globals.css

@import "tailwindcss";

@plugin "daisyui";

Reasons:
  • No code block (0.5):
  • User mentioned (1): @import
  • User mentioned (0): @plugin
  • High reputation (-1):
Posted by: Charlie