> ## Documentation index
> Fetch the complete documentation index at: https://create-shadcn-js.docs.hyperdyn.in/llms.txt
> Ask it with GET https://create-shadcn-js.docs.hyperdyn.in/ask?q=<keywords or question>. Short keywords rank best.
> Use these to discover all available pages before exploring further.

# Tailwind v3

> Use the legacy Tailwind CSS v3 and shadcn 2.x path.

## 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

```bash
npx create-shadcn-js@latest my-app -t v3
```

With a package manager:

```bash
npx create-shadcn-js@latest my-app --pm pnpm -t v3 -y
```

## 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.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

```bash
npx shadcn@2.3.0 add dialog dropdown-menu input card avatar table
```

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.
