Skip to main content

create-shadcn-js is a one-command scaffolder for Vite + React (JavaScript) + Tailwind CSS + shadcn/ui.

It handles the setup the official shadcn CLI assumes you have already done:

  • jsconfig.json with the @/* path alias
  • a Vite @ alias
  • components.json with "tsx": false and "rsc": false
  • src/lib/utils.js with the cn() helper
  • a Tailwind v4 or legacy v3 toolchain

Quick start#

Or pass a project name and options:

Why use it?#

Most shadcn/ui setup guides assume TypeScript. create-shadcn-js gives JavaScript and JSX projects the same first-class experience: correct aliases, a working utils.js, .jsx components, and a toolchain that builds.

  • JavaScript-first — no TypeScript drift.
  • Both Tailwind paths — v4 by default, v3 kept on a compatible pinned toolchain.
  • Package-manager native — npm, pnpm, yarn, and bun.
  • Fails loudly — validates the shadcn output instead of reporting a false success.
  • Safe non-interactive mode — never empties a non-empty directory without --force.

Continue with Quickstart or read the CLI options.