A modern, production-ready React template built with Vite, TypeScript, and Shadcn UI. Features a complete dashboard with dark mode, responsive design, and comprehensive component library.
- β‘οΈ Lightning Fast - Built with Vite 7 for instant HMR
- π¨ Beautiful UI - Pre-configured Shadcn UI components
- π Dark Mode - Full dark mode support with theme persistence
- π± Responsive - Mobile-first responsive design
- π― TypeScript - Strict mode enabled for type safety
- π Accessible - ARIA-compliant components from Radix UI
- π Dashboard - Complete dashboard with charts, tables, and stats
- π§ Customizable - Easy to customize with CSS variables
- π¦ Monorepo Ready - Easy integration into monorepo projects
- π€ AI Ready - Includes AGENTS.md for AI coding assistants
- Node.js 18+ (or 20+ recommended)
- pnpm 8+ (recommended) or npm/yarn
# Clone the template
git clone <repository-url> my-project
cd my-project
# Install dependencies
pnpm install
# Start development server
pnpm devThe app will be available at http://localhost:5173
βββ src/
β βββ components/ # React components
β β βββ ui/ # Shadcn UI components (auto-generated)
β β βββ dashboard-layout.tsx
β β βββ stats-cards.tsx
β β βββ recent-activity.tsx
β β βββ analytics-chart.tsx
β β βββ quick-actions.tsx
β β βββ recent-transactions.tsx
β β βββ mode-toggle.tsx
β β βββ theme-provider.tsx
β βββ lib/ # Utilities and helpers
β β βββ utils.ts
β β βββ mock-data.ts
β βββ hooks/ # Custom React hooks
β βββ App.tsx # Main app component
β βββ main.tsx # Entry point
β βββ index.css # Global styles
βββ resources/ # Shadcn UI documentation
β βββ 01-installation.md
β βββ 02-components.md
β βββ 03-theming.md
β βββ ...
βββ public/ # Static assets
βββ AGENTS.md # AI agent instructions
βββ components.json # Shadcn UI config
βββ package.json
βββ tsconfig.json
βββ vite.config.ts
βββ README.md
# Development
pnpm dev # Start dev server
pnpm build # Build for production
pnpm preview # Preview production build
# Code Quality
pnpm lint # Lint code with ESLint
pnpm type-check # Check TypeScript types
pnpm format # Format code with PrettierThe template includes a comprehensive dashboard with:
- Total Revenue
- Subscriptions
- Sales
- Active Users
- Interactive charts with Recharts
- Bar charts for desktop/mobile data
- Responsive data visualization
- Sales list with customer details
- Avatar components
- Transaction amounts
- Invoice tracking
- Status badges
- Payment methods
- Sortable columns
- Create new project
- Add team members
- Generate reports
- Settings access
- Sidebar navigation
- Breadcrumbs
- Tabs for content organization
- Dropdown menus
- Avatars and badges
- Progress indicators
- Tooltips and dialogs
Full dark mode support with:
- System preference detection
- Manual theme toggle
- Theme persistence in localStorage
- Smooth transitions
- All components dark mode compatible
Toggle dark mode using the button in the header (top right).
The template has Shadcn UI configured and ready to use.
# Add a single component
pnpm dlx shadcn@latest add button
# Add multiple components
pnpm dlx shadcn@latest add card table dialogOver 50+ components available including:
- Forms: Input, Select, Textarea, Checkbox, Radio
- Data Display: Table, Card, Badge, Avatar
- Navigation: Tabs, Breadcrumb, Sidebar, Menu
- Feedback: Dialog, Toast, Alert, Progress
- And many more...
See components documentation for the full list.
Edit CSS variables in src/index.css:
:root {
--background: oklch(1 0 0);
--foreground: oklch(0.145 0 0);
--primary: oklch(0.205 0 0);
/* ... more variables */
}
.dark {
--background: oklch(0.145 0 0);
--foreground: oklch(0.985 0 0);
/* ... dark theme variables */
}All components use Tailwind CSS. Customize by:
- Modifying utility classes directly
- Editing component variants
- Overriding CSS variables
See theming documentation for details.
This template is designed for easy monorepo integration.
# From monorepo root
cp -r path/to/react-shadcn-ui apps/my-app
cd apps/my-app
pnpm install- Copy to
apps/orpackages/ - Update
package.json:{ "name": "@workspace/my-app" } - Run
pnpm installfrom monorepo root
See monorepo documentation for detailed setup.
This template includes an AGENTS.md file following the agents.md standard, providing:
- Project overview and setup instructions
- Code style guidelines
- Testing procedures
- Common tasks and troubleshooting
- Environment configuration
- Security considerations
AI coding agents can use this file for context-aware assistance.
Comprehensive documentation is available in the /resources folder:
- Installation Guide - Setup and configuration
- Components Reference - All available components
- Theming Guide - Customize colors and styles
- CLI Reference - Command-line tools
- Dark Mode Setup - Theme configuration
- Monorepo Integration - Workspace setup
- Custom Registry - Create component registries
- React 19.2.4 - Latest React with concurrent features
- Vite 7.3.1 - Next generation frontend tooling
- TypeScript 5.9.3 - JavaScript with syntax for types
- Tailwind CSS 4.2.1 - Utility-first CSS framework
- Shadcn UI - Re-usable components built with Radix UI
- Recharts - Composable charting library
- Lucide React - Beautiful & consistent icon toolkit
- next-themes - Perfect dark mode in React apps
- TypeScript strict mode enabled
- ESLint with security rules
- Environment variables for sensitive data
- XSS protection via React JSX
- Regular dependency updates recommended
Contributions are welcome! This is a template project, so:
- Fork the repository
- Create your feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
MIT License - feel free to use this template for any project, commercial or personal.
Built with these amazing open source projects:
- Shadcn UI - Component library
- Radix UI - Unstyled, accessible components
- Tailwind CSS - CSS framework
- Vite - Build tool
- React - UI library
For issues and questions:
- Shadcn UI: Documentation
- Vite: Documentation
- React: Documentation
- Tailwind CSS: Documentation
After setup, you can:
- Customize the dashboard - Modify components in
src/components/ - Add new pages - Create new components and routes
- Connect to API - Replace mock data with real API calls
- Deploy - Build and deploy to your favorite platform
- Extend - Add more Shadcn UI components as needed
- Use
pnpm devfor fast development with HMR - Add components with
pnpm dlx shadcn@latest add [component] - Customize themes in
src/index.css - Check
AGENTS.mdfor AI assistant guidance - Read the documentation in
/resourcesfor detailed guides
Happy coding! π
If you find this template helpful, please give it a β