tailwindlabs / tailwindcss

A utility-first CSS framework for rapid UI development.
https://tailwindcss.com/
MIT License
83.27k stars 4.22k forks source link

Upgrade: Error when project is already using Tailwind CSS v4 #15015

Closed philipp-spiess closed 3 days ago

philipp-spiess commented 6 days ago

In some local testing we ran the @tailwindcss/upgrade command twice in a row. It would be great to get some feedback that this is not working, so this PR now checks if it can resolve the installed version of tailwindcss and if it can, it requires it to be < 4 (you can bypass this check with --force).