How to fix Google fonts not loading in Nuxt static sites deployed on Netlify
Is Nobody Gonna Talk About How Coding AI Agents Is Failing Because of TailwindCSS v4?
Benjamin Looi / October 10, 2025
tailwind.config.js, add a PostCSS pipeline, or run deprecated commands like:npx tailwindcss init -p
tailwind.config.js, it often makes the setup worse because Tailwind no longer needs those files in most projects.@tailwindcss/cli. The old workflow of creating a config file, defining content paths, and building through PostCSS no longer applies to the common setup.Where AI Agents Fall Apart
AI agents fall apart here because their training data includes years of pre-v4 examples. When you ask them to "set up Tailwind," they return steps that worked last year and fail today.
The issue goes beyond Tailwind. Web tools change faster than model training cycles. Developers update packages every week, while model knowledge can lag behind framework releases. Tailwind exposed the gap because the setup command changed in a way agents cannot paper over.
You see the same pattern with other tools. Next.js changed its routing system. Vite added first-class CSS nesting support. Agents still suggest older patterns unless they have live documentation access or tool-specific instructions.
Why This Happens
Blaming Tailwind or the model misses the point. Tailwind changed its compiler and setup flow. The model predicts from examples it already knows. Documentation updates in days; model knowledge often trails behind. Until agents use current docs, they will keep breaking modern setups.
Real-time documentation lookup helps. So do smaller models or retrieval systems tuned to current framework versions. For now, if you want to use Tailwind v4, skip AI-generated setup steps unless the agent has checked the current docs.
Setting Up TailwindCSS v4
1. Using Vite
Install TailwindCSS and the Vite plugin:
npm install tailwindcss @tailwindcss/vite
vite.config.ts
import { defineConfig } from "vite";
import tailwindcss from "@tailwindcss/vite";
export default defineConfig({
plugins: [tailwindcss()],
});
Import Tailwind in your CSS
@import "tailwindcss";
2. Using Tailwind CLI
Install TailwindCSS:
npm install @tailwindcss/cli
Import Tailwind in your CSS
@import "tailwindcss";
Start the Tailwind CLI build process
npx @tailwindcss/cli -i ./src/input.css -o ./src/output.css --watch
Other framework guides
That is the setup: no PostCSS config, no generated Tailwind config, no guessing.
The Bigger Picture
Tailwind v4 shows where automated coding still breaks. An agent can scaffold a React app, then fail because one library changed its setup flow. Developers still need to verify commands against current docs.
For now, trust the docs before you trust the generated setup.
Thanks for reading! 😁Comments
Related Posts
A guide to asynchronously load Google Fonts in Gatsby using gatsby-plugin-web-font-loader
This article describes how to upgrade Gatsby starter blog (or any other gatsby starter template)
Related Projects
Open Resume
A resume builder with AI coaching, server-side rendering, local state persistence, and Cloudflare Workers deployment.
The Eco Garden Cat Project
A bilingual cat welfare platform for a real colony in Cambodia, with TNVR tracking, KHQR donations, public ledgers, adoption inquiries, volunteer sign-ups, and an admin CMS.


