How to replace Tailwind v4 for v3 in Laravel Starter Kits, useful for Filament v3

This apply the dependencies transformations needed, and add the PostCSS config file needed.
npm remove @tailwindcss/vite
npm remove tailwindcss
npm install tailwindcss@3 @tailwindcss/forms
npm install postcss autoprefixer
cat > postcss.config.js << 'EOF'
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};
EOF
Let me know how it went 😃
Happy coding!



