Skip to main content

When to use it#

Choose Tailwind v3 if your project or component library still depends on:

  • tailwind.config.js
  • the PostCSS pipeline
  • the HSL hsl(var(--token)) theme convention
  • React 18-compatible shadcn components

Scaffold#

With a package manager:

What is pinned#

PackageVersion
tailwindcss3.4.17
postcss8
autoprefixer10
tailwindcss-animate1.0.7
react / react-dom18.3.1
shadcn2.3.0
tailwind-merge2.6.0

tailwind-merge is pinned to v2 because v3 targets Tailwind v4. React 18 is pinned because shadcn 2.x can prompt or hang on React 19 during install.

What the scaffold writes#

  • tailwind.config.js with the shadcn color tokens and animations
  • postcss.config.js with Tailwind and Autoprefixer
  • components.json in JavaScript mode
  • src/lib/utils.js using clsx and tailwind-merge
  • src/index.css with HSL light and dark themes

Add components#

For pnpm, yarn, or bun, use the matching dlx/bunx runner. The CLI prints the correct command after scaffolding.

Limitations#

The v3 path uses the last shadcn CLI release that emits v3 components. It does not support the v4 interactive library and preset selection. --base and --preset are ignored for v3.