Limited-time sale: up to 39% off all plans.Get the deal
Shadcnadmin.com

Search

Search dashboards, components and blocks

Installation

Documentation

Installation

Install dependencies and run a template locally in any framework.

Prerequisites

  • Node.js 22 LTS (Node 20.19 or newer also works). Check with node -v. Get it from nodejs.org or a version manager such as nvm or fnm.
  • pnpm. Every template ships with a pnpm-lock.yaml, so pnpm installs exactly the versions we tested. The easiest way to get it is Corepack, which comes with Node.
  • Git (optional) if you want to clone the repository and pull updates.
terminal
Loading...

npm or yarn?

They work too, but they ignore the lockfile and may resolve newer package versions. If you use them, delete pnpm-lock.yaml and pnpm-workspace.yaml first and keep the new lockfile they create.

Run it locally

  1. Get the code

    Download the zip from your account or clone the repository. See Downloads & GitHub Access.

  2. Install dependencies

    Open a terminal in the project folder (the one with package.json) and run:

    bash
    Loading...
  3. Start the dev server

    bash
    Loading...

    Open http://localhost:3000. Pages reload as you edit files in app/ and components/.

Available scripts

FrameworkScripts
Next.jspnpm dev, pnpm build, pnpm start
Reactpnpm dev, pnpm build (type-checks first), pnpm preview
Vue.jspnpm dev, pnpm build (type-checks first), pnpm preview
Sveltepnpm dev, pnpm build, pnpm preview, pnpm check (svelte-check)

Environment variables

Templates run without any environment variables. The only optional one is a Google Analytics measurement ID. If it is missing, analytics simply stays off.

FrameworkVariableFile
Next.jsNEXT_PUBLIC_GA_KEY.env.local
ReactVITE_GA_KEY.env
Vue.jsVITE_GA_KEY.env
SveltePUBLIC_GA_KEY.env
.env.local (Next.js)
Loading...

When you connect real services (an API, auth, a database), add their variables the same way. Remember that variables with the public prefix (NEXT_PUBLIC_, VITE_, PUBLIC_) end up in the browser, so never put secrets in them.

Production build

bash
Loading...
  • Next.js: run pnpm start to serve the build, or deploy it (see Deployment).
  • React and Vue.js: the static site is written to dist/. Preview it with pnpm preview.
  • Svelte: preview with pnpm preview. The output depends on the SvelteKit adapter you deploy with.
Run a production build before you deploy. It catches type errors that the dev server lets through.

Editor setup

Any editor works. In VS Code (or Cursor), these extensions make the experience better:

  • Tailwind CSS IntelliSense for class name autocomplete and previews.
  • ESLint and Prettier if you use them in your workflow.
  • Vue - Official for Vue.js templates, Svelte for VS Code for Svelte templates.