This project is a starter template for building React applications using Vite and Shadcn UI components. It provides a solid foundation for quickly developing modern, responsive web applications.
Do you like IntelliSense for path aliases with Tailwind? This project does it brilliantly and supports Windows, Mac, and Linux! As the creator, I've tried many other starters and even the official Shadcn installation guide for Vite, but none of them provided proper IntelliSense for path aliases. This project, however, does it flawlessly. I'm not entirely sure why it works, but it does!
- Clone the repository
- Install dependencies:
npm installoryarn install - Start the development server:
npm run devoryarn dev - Open your browser and navigate to
http://localhost:5173
- React 18
- Vite for fast development and building
- Shadcn UI components for a sleek, customizable UI
- TypeScript support
- Tailwind CSS for utility-first styling
This starter project comes pre-configured with several Shadcn UI components and utilities:
- Button
- Card
- Dialog
- Dropdown Menu
- Input
- Label
- Tabs
- Toast
- Form with validation (using
react-hook-formandzod) - Header with responsive navigation
cnutility for conditional className merginguseToasthook for displaying toast notifications
@radix-ui/react-iconsfor a comprehensive icon setlucide-reactfor a comprehensive icon setclass-variance-authorityfor creating flexible component variantsclsxfor constructing className strings conditionallytailwind-mergefor merging Tailwind CSS classes
You can easily customize the appearance of your application by modifying the tailwind.config.js file. The Shadcn UI components are fully customizable and can be adjusted to fit your project's design requirements.
To add more Shadcn UI components to your project, use the Shadcn CLI: