Tailwind CSS 4 · Installation
Upgrade a Tailwind 3 project
Run the official upgrade tool, which updates dependencies and migrates your config and templates. Needs Node.js 20 or later.
npx @tailwindcss/upgrade
Caution: Run it on a clean git branch and review the diff afterwards.
Official Tailwind CSS 4 documentation