This is actually my personal notes when I was migrating to Tailwind CSS v4 in my Next.js project. I thought it would be useful to share it with you too.
My current personal web is using daisyUI and Tailwind CSS as the main CSS utility tool and component library. I have been using Tailwind CSS for a while now, and I really like it. However, I have been using an older version of Tailwind CSS, and I decided to upgrade to the latest version, which is Tailwind CSS v4.
However, there's additional steps that you need to be aware of when migrating to Tailwind CSS v4. In this article, I will share my experience and the steps I took to migrate to Tailwind CSS v4 in my Next.js project along with daisyUI.
That's it. Seems easy but it depends how complex your project is. Especially when you're using additional plugins or custom themes. There's a lot of major changes both in Tailwind 4 and daisyUI. You need to check it by your own one by one even you can just run the upgrade tool in one line terminal command. I hope this article helps you to migrate to Tailwind CSS v4 in your Next.js project along with daisyUI.
If you have any questions or suggestions, feel free to leave a comment below.
You can check my own Tailwind 4 migration here in my Pull Request.