A modern starter template for building React applications with TypeScript, Tailwind CSS (v3.4), shadcn/ui, and Vite.
This setup is designed to provide strong defaults, excellent browser compatibility, and a clean foundation for common React project needs.
- β‘ Vite β Fast build tool with lightning-quick dev server.
- π TypeScript β Strict typing for safer, scalable React apps.
- π¨ Tailwind CSS 3.4 β Utility-first styling with improved browser compatibility.
- π§© shadcn/ui β Accessible, headless, and themeable components built with Radix UI + Tailwind.
- π§ Pre-configured Project Structure β Opinionated defaults for a smoother start.
- Node.js (>= 18)
- npm, pnpm, or yarn
# Clone the repository
git clone https://github.com/jack-dev-crypto/react-ts-tailwind-shadcn-starter.git
cd react-ts-tailwind-shadcn-starter
# Install dependencies
npm installnpm run devStarts the local development server at http://localhost:5173/.
npm run buildCreates an optimized production build.
npm run previewServes the production build locally for testing.
βββ src/
β βββ components/ # Reusable UI components
β βββ pages/ # Page-level components
β βββ lib/ # Utilities, helpers
β βββ App.tsx # Root component
β βββ main.tsx # Entry point
βββ public/ # Static assets
βββ tailwind.config.js # Tailwind configuration
βββ vite.config.ts # Vite configuration
This template integrates shadcn/ui for a growing collection of pre-built components styled with Tailwind. You can extend or customize them as needed for your project.
- Adjust Tailwind settings in
tailwind.config.js. - Configure Vite in
vite.config.ts. - Add or remove shadcn/ui components with the CLI or manually.
MIT β feel free to use this starter in your own projects.