TailwindCSS has just released its new v4 version, so all the older v3 documentation has become outdated.
Follow these docs : https://tailwindcss.com/docs/installation/using-vite