A simple React boilerplate with TailwindCSS, ShadCN UI, powered by Vite with a fully configured TypeScript environment, pre-configured tools such as ESLint and Prettier and OpenGraph support.
- TailwindCSS & ShadCN UI - Easily customize and use components from ShadCN UI.
- TypeScript Support - Fully configured TypeScript project.
- Pre-configured ESLint & Prettier - Code quality and formatting tools out of the box.
- Vite-Powered - Lightning-fast build tool for React projects.
- ShadCN UI Components - Rich UI components such as Avatar, Dialog, Slider, Tabs, etc.
- Optimized for Development - Ready to go with fast hot-reload and dev server.
.
├── LICENSE
├── NOTICE
├── README.md
├── components.json
├── eslint.config.js
├── index.html
├── package.json
├── public
│ ├── index.html
│ └── og-image.jpg
├── src
│ ├── App.tsx
│ ├── components
│ │ ├── Button.tsx
│ │ ├── Heading.tsx
│ │ ├── MetaTags.tsx
│ │ └── ThemeToggle.tsx
│ ├── lib
│ │ └── utils.ts
│ ├── main.tsx
│ ├── styles
│ │ └── global.css
│ └── vite-env.d.ts
├── tailwind.config.ts
├── tsconfig.app.json
├── tsconfig.json
├── tsconfig.node.json
├── vite.config.ts
└── yarn.lock
git clone https://github.com/mxpanf/shadcn-vite-starter.git
cd shadcn-vite-starter
yarn install
yarn dev
Open your browser and navigate to http://localhost:3000
.
For better SEO and social media previews, make sure to update the <MetaTags />
component in src/components/MetaTags.tsx
:
<MetaTags
title="Your App Title"
description="A brief description of your project"
image="public/og-image.jpg"
/>
Open Graph Сompatible
Warning
Changes in this section are required for full - fledged integration into final application. Check the markup before publishing, some SEO & OG functions may not work.
Add new UI components to the src/components
folder and reference them in App.tsx
.
Tailwind is pre-configured with Vite. You can customize your Tailwind setup by modifying the tailwind.config.ts
file.
This project comes pre-configured with ESLint and Prettier for code quality and consistency. To run ESLint and Prettier:
yarn lint # Run ESLint
yarn format # Format code with Prettier
You can also automatically fix linting issues:
yarn lint:fix
This project is licensed under the MIT License. You are free to use, modify, and distribute this code with proper attribution.
Contributions are welcome! Feel free to submit a pull request or open an issue.
Built with ❤️ using React, TailwindCSS, ShadCN UI, and Vite.