Skip to content
Admin Dashboards Tailwind CSS 4 next.jsreacttypescriptshadcn/ui

Next.js Tailwind Admin Dashboard with Dark Mode - Shadcn Dashboard

A starter admin dashboard built with Next.js, shadcn/ui and Tailwind CSS, featuring dark mode and authentication.

By Kiranism kiranism/next-shadcn-dashboard-starter 7,345 stars

Introduction

Shadcn Dashboard is an open‑source starter template for building admin panels. It uses Next.js 16, Tailwind CSS v4, shadcn/ui components and TypeScript. The template includes dark mode, authentication with Clerk, data tables, charts, drag‑and‑drop, keyboard shortcuts and a responsive layout.

What this project offers

  • A ready‑made dashboard layout with sidebar, header and content area.
  • Dark‑mode support that follows the system preference.
  • Authentication and user management powered by Clerk.
  • Real‑working data tables with sorting, filtering, pagination and React Query caching.
  • Charts built with Recharts.
  • Drag‑and‑drop UI built with dnd‑kit.
  • Keyboard command palette via kbar.
  • Theme switcher with several built‑in themes.

Main features

  • Dark Mode
  • Clerk authentication (including organizations)
  • React Table with server pre‑fetch and client cache
  • Recharts visualisations
  • dnd‑kit drag‑and‑drop
  • kbar command palette
  • Responsive design for desktop and mobile
  • Server‑side rendering is disabled (client‑only)
  • Full TypeScript support

Technology stack

  • Framework: Next.js 16
  • Language: TypeScript 5.7
  • Styling: Tailwind CSS v4, Tailwind‑merge, tailwindcss‑animate
  • UI components: shadcn/ui on Base UI primitives
  • State & data: React 19, React Query 5, TanStack Table, TanStack Form, Zod, Zustand (via dependencies)
  • Auth: Clerk
  • Charts: Recharts
  • Drag‑and‑drop: dnd‑kit
  • Command palette: kbar
  • Build tools: oxlint, oxfmt, Husky (pre‑commit)

Requirements

  • Node.js 18 or newer
  • npm or bun (both are supported by the scripts)

Installation

  1. Download the starter
# The ZIP file is provided at /download/shadcn-dashboard.zip
# Save it to a convenient folder and unzip
unzip shadcn-dashboard.zip -d shadcn-dashboard
cd shadcn-dashboard
  1. Install dependencies
# Using npm
npm install
# Or, if you prefer bun
bun install
  1. Run the post‑install script and start development server
# This runs a small setup script and then starts Next.js in dev mode
npm run dev
# or with bun
bun run dev
  1. Build the production version
npm run build
# or
bun run build

The build creates a .next directory that contains the compiled server and static assets.

  1. Start the production server
npm start
# or
bun start

The app will be available at http://localhost:3000.

Configuration

  • Environment variables are defined in env.example.txt. Copy it to .env.local and fill in the required values (Clerk keys, Sentry settings, etc.).
  • The Tailwind configuration lives in tailwind.config.ts (generated by the framework).
  • Next.js settings are in next.config.ts; you can adjust output mode, image domains, or enable/disable Sentry here.

Customizing the project

  • Themes: Edit files under src/components/themes/ or add new theme files in src/styles/themes/.
  • Navigation: Menu items are defined in src/config/nav-config.ts. Modify this file to add or remove pages.
  • Features: The src/features/ folder contains feature‑based modules (auth, chat, kanban, etc.). Remove a folder you do not need, then run the cleanup script (node scripts/cleanup.js) to strip related code.
  • Styling: Global styles are in src/styles/globals.css. Tailwind utility classes can be used throughout the JSX/TSX files.

Project structure

.
├─ public/
│  └─ shadcn-dashboard.png
├─ src/
│  ├─ app/                # Next.js route handlers and pages
│  ├─ components/         # UI components (nav, modal, icons, etc.)
│  ├─ config/             # Table, navigation and other config objects
│  ├─ features/           # Feature modules (auth, chat, kanban, …)
│  ├─ hooks/              # Custom React hooks
│  ├─ lib/                # Utility libraries (api client, query client, …)
│  └─ styles/             # Tailwind CSS files
├─ scripts/
│  └─ postinstall.js      # Runs after npm install
├─ next.config.ts
├─ tailwind.config.ts
├─ package.json
└─ tsconfig.json

Tips

  • Development: The dev script runs next dev after the post‑install step, giving hot‑module reloading.
  • Linting & formatting: Use npm run lint and npm run format to keep code consistent.
  • Cleaning unused code: The repository includes a cleanup script (scripts/cleanup.js) that can remove entire feature folders you don’t need.
  • Deploying: After building, you can deploy the .next folder with a Node.js runtime (Vercel, Render, Railway, etc.). The template is not a static HTML site; it requires a server to run the Next.js runtime.

License and attribution

The project is licensed under the MIT License. See the LICENSE file in the repository.
Original repository: https://github.com/kiranism/next-shadcn-dashboard-starter
When redistributing, keep the license file and credit the author as required by the MIT terms.