Skip to main content

Command Palette

Search for a command to run...

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

Updated
1 min read
How to replace Tailwind v4 for v3 in Laravel Starter Kits, useful for Filament v3
P

Full-stack web developer with a taste for Laravel, Docker, and a few more components in the ecosystem

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!