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.