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#
| Package | Version |
|---|---|
tailwindcss | 3.4.17 |
postcss | 8 |
autoprefixer | 10 |
tailwindcss-animate | 1.0.7 |
react / react-dom | 18.3.1 |
shadcn | 2.3.0 |
tailwind-merge | 2.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.jswith the shadcn color tokens and animationspostcss.config.jswith Tailwind and Autoprefixercomponents.jsonin JavaScript modesrc/lib/utils.jsusingclsxandtailwind-mergesrc/index.csswith 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.