An open API service indexing awesome lists of open source software.

https://github.com/sumonta056/react-vite-tailwind-template-latest

A minimalist React.js template utilizing Vite for lightning-fast development, integrated with Tailwind CSS for sleek styling. Includes basic setup steps and features simple API fetching to display ecommerce products. Perfect for rapid prototyping and building efficient web applications
https://github.com/sumonta056/react-vite-tailwind-template-latest

api-fetching ecommerce-website tailwindcss vitejs-react

Last synced: about 2 months ago
JSON representation

A minimalist React.js template utilizing Vite for lightning-fast development, integrated with Tailwind CSS for sleek styling. Includes basic setup steps and features simple API fetching to display ecommerce products. Perfect for rapid prototyping and building efficient web applications

Awesome Lists containing this project

README

          

## 📚 [Install Tailwind CSS with Vite@React Latest](https://tailwindcss.com/docs/guides/vite)

- 👉 Install React with Vite in "root" folder

```bash
npm create vite@latest . -- --template react
```

- 👉 Install React with Vite in "vite-react" folder

```bash
npm create vite@latest vite-react -- --template react
```

- 👉 Install Tailwind CSS

```bash
npm install -D tailwindcss postcss autoprefixer
```

```bash
npx tailwindcss init -p
```

- 👉 Modify the "tailwind.config.js" file to include the "purge" property

```javascript
/** @type {import('tailwindcss').Config} */
export default {
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
theme: {
extend: {},
},
plugins: [],
};
```

- 👉 Modify the "index.css" file in src Folder

```css
@tailwind base;
@tailwind components;
@tailwind utilities;
```

- 👉 Run the "vite" server

```bash
npm run dev
```