A modern, production-ready boilerplate for building React applications with speed and precision. This template comes pre-configured with the latest tools and best practices to help you jumpstart your next project.
- Vite: Lightning-fast development server and optimized builds.
- React: The library for web and native user interfaces.
- TypeScript: Strongly typed JavaScript for better developer experience and fewer bugs.
- Tailwind CSS v4: A utility-first CSS framework for rapidly building custom designs.
- shadcn/ui: Beautifully designed components built with Radix UI and Tailwind CSS.
- TanStack Query: Powerful asynchronous state management.
- React Router: Declarative routing for React web applications.
- Dark Mode: Fully integrated theme switching with
next-themes. - Linting & Formatting: Pre-configured ESLint and Prettier for consistent code style.
- Path Aliases: Clean imports using
@/alias.
- Framework: React 18
- Build Tool: Vite 5
- Language: TypeScript 5
- Styling: Tailwind CSS 4 + tailwindcss-animate
- UI Components: shadcn/ui (Radix UI)
- Routing: React Router DOM 6
- State Management: TanStack Query v5
- Forms: React Hook Form + Zod
- Icons: Lucide React
Ensure you have the following installed on your machine:
-
Clone the repository:
git clone https://github.com/saminyasar004/react-ts-tailwind-boilerplate.git cd react-ts-tailwind-boilerplate -
Install dependencies:
yarn install # or npm install -
Start the development server:
yarn dev # or npm run devOpen http://localhost:8080 (or the port shown in your terminal) to view it in the browser.
react-ts-tailwind-boilerplate/
├── src/
│ ├── components/ # Reusable UI components
│ │ ├── ui/ # shadcn/ui primitives
│ │ ├── mode-toggle.tsx # Theme switcher
│ │ └── ...
│ ├── lib/ # Utility functions (cn, utils)
│ ├── pages/ # Page components (routed)
│ ├── hooks/ # Custom React hooks
│ ├── App.tsx # Main application component
│ ├── main.tsx # Entry point
│ └── index.css # Global styles and Tailwind directives
├── public/ # Static assets
├── .eslintrc.cjs # ESLint configuration
├── tailwind.config.ts # Tailwind CSS configuration
├── tsconfig.json # TypeScript configuration
├── vite.config.ts # Vite configuration
└── package.json # Project dependencies and scripts
The Tailwind configuration is located in tailwind.config.ts. You can customize colors, fonts, and other theme values here.
This project uses shadcn/ui. You can add more components by running:
npx shadcn-ui@latest add [component-name]Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Samin Yasar
- GitHub: @saminyasar004
- Email: [email protected]
This project is open source and available under the MIT License.