Skip to content

πŸƒ React+Vite boilerplate with TailwindCSS, ShadCN UI, Luicde & Simple Icons, ESLint & OG Support.

License

Notifications You must be signed in to change notification settings

mxpanf/shadcn-vite-starter

Β 
Β 

Repository files navigation

Shadcn Vite Boilerplate

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.

Deploy to Vercel Deploy to Netlify

Preview

πŸš€ Features

  • 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.

πŸ“‚ Project Structure

.
β”œβ”€β”€ 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

πŸ› οΈ Installation & Setup

1. Clone the repository

git clone https://github.com/mxpanf/shadcn-vite-starter.git
cd shadcn-vite-starter

2. Install dependencies

yarn install

3. Run the development server

yarn dev

4. Open the project

Open your browser and navigate to http://localhost:3000.

🎨 Customization

Update Meta Tags

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 Components

Add new UI components to the src/components folder and reference them in App.tsx.

πŸ”§ Configuration

TailwindCSS

Tailwind is pre-configured with Vite. You can customize your Tailwind setup by modifying the tailwind.config.ts file.

ESLint & Prettier

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

πŸ“œ License

This project is licensed under the MIT License. You are free to use, modify, and distribute this code with proper attribution.

🀝 Contributing

Contributions are welcome! Feel free to submit a pull request or open an issue.

πŸ’‘ Acknowledgments

Built with ❀️ using React, TailwindCSS, ShadCN UI, and Vite.

About

πŸƒ React+Vite boilerplate with TailwindCSS, ShadCN UI, Luicde & Simple Icons, ESLint & OG Support.

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • TypeScript 49.0%
  • CSS 31.4%
  • JavaScript 15.7%
  • HTML 3.9%