A React TypeScript + Tailwind template powered by shadcn/ui.
- React - A JavaScript library for building user interfaces.
- TypeScript - A typed superset of JavaScript that compiles to plain JavaScript.
- Tailwind CSS - A utility-first CSS framework.
- shadcn/ui - Beautifully designed components you can copy and paste into your apps.
- React Router - Declarative routing for React.
Follow these steps to get started:
-
Clone the repository:
git clone https://github.com/heischichou/React-Shadcn-UI-Template
-
Navigate to the project directory:
cd React-Shadcn-UI-Template
-
Install the dependencies:
npm install
-
Start the development server:
npm run start
Runs the app in the development mode at http://localhost:3000.
The page will reload if you make edits. You will also see any lint errors in the console.
npm run start
Builds the app for production to the build
folder. It correctly bundles React in production mode and optimizes the build for the best performance.
npm run build
This command will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject
will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
Note: This is a one-way operation. Once you eject
, you can’t go back!
npm run eject
The project structure follows a standard React application layout:
React-Shadcn-UI-Template/
├── node_modules/ # Project dependencies
├── public/ # Public assets
├── src/ # Application source code
│ ├── components/ # React components
│ │ └── ui/ # Shadcn UI components
│ │ └── button.tsx # Shadcn Button component
│ │ └── input.tsx # Shadcn Input component
│ ├── pages/ # React Router pages
│ │ └── HomePage.tsx # Default route component
│ ├── styles/ # CSS stylesheets for components
│ │ └── App.css # Default stylesheet with shadcn globals declared
│ ├── App.tsx # Application entry point
│ ├── index.css # Application stylesheet
│ └── index.tsx # Main rendering file
├── craco.config.js # CRACO configuration
├── tailwind.config.js # Tailwind CSS configuration
└── tsconfig.json # TypeScript configuration
This project is licensed under the MIT License. See the LICENSE file for details.