Skip to content

Lil-Code30/Vite-React-TypeScript-TailwindCSS-shadcn-ui-_Starter-Pack

Repository files navigation

Vite + React + TypeScript + TailwindCSS + shadcn/ui Starter Pack

This is a starter pack for building modern web applications with Vite, React, TypeScript, TailwindCSS, and shadcn/ui.

🚀 Getting Started

To get started, clone this repository and install the dependencies:

git clone https://github.com/Lil-Code30/Vite-React-TypeScript-TailwindCSS-shadcn-ui-_Starter-Pack.git
cd Vite-React-TypeScript-TailwindCSS-shadcn-ui-_Starter-Pack
npm install

Then, start the development server:

npm run dev

Open http://localhost:5173 in your browser to see the result.

✨ Features

  • ⚡️ Vite for fast development and builds
  • ⚛️ React for building user interfaces
  • 🔵 TypeScript for static typing
  • 💨 TailwindCSS for utility-first styling
  • 🎨 shadcn/ui for accessible and customizable components
  • 📖 ESLint for code linting
  • 💅 Prettier for code formatting

📁 Folder Structure

The folder structure is as follows:

.
├── public
│   └── vite.svg
├── src
│   ├── assets
│   │   └── react.svg
│   ├── components
│   │   └── ui
│   │       └── button.tsx
│   ├── lib
│   │   └── utils.ts
│   ├── App.tsx
│   ├── index.css
│   ├── main.tsx
│   └── vite-env.d.ts
├── .gitignore
├── components.json
├── eslint.config.js
├── index.html
├── package.json
├── README.md
├── tsconfig.json
└── vite.config.ts

📦 Building for Production

To build the application for production, run the following command:

npm run build

This will create a dist folder with the production-ready files.

🎨 Using shadcn/ui

To add new components from shadcn/ui, run the following command:

npx shadcn-ui@latest add [component-name]

For example, to add the input component, run:

npx shadcn-ui@latest add input

This will add the input.tsx file to the src/components/ui directory.

📖 ESLint and Prettier

This starter pack is configured with ESLint and Prettier to ensure code quality and consistency.

To lint your code, run:

npm run lint

To format your code, run:

npm run format

🙌 Contributing

Contributions are welcome! Please open an issue or submit a pull request if you have any ideas or suggestions.

📄 License

This project is licensed under the MIT License.

About

This is a starter pack for building modern web applications with Vite, React, TypeScript, TailwindCSS, and shadcn/ui.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published