This is a starter pack for building modern web applications with Vite, React, TypeScript, TailwindCSS, and shadcn/ui.
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 installThen, start the development server:
npm run devOpen http://localhost:5173 in your browser to see the result.
- ⚡️ 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
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
To build the application for production, run the following command:
npm run buildThis will create a dist folder with the production-ready files.
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 inputThis will add the input.tsx file to the src/components/ui directory.
This starter pack is configured with ESLint and Prettier to ensure code quality and consistency.
To lint your code, run:
npm run lintTo format your code, run:
npm run formatContributions are welcome! Please open an issue or submit a pull request if you have any ideas or suggestions.
This project is licensed under the MIT License.