This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
Certainly! Here's your README content formatted in Markdown:
Setting up Tailwind CSS in a Vite project.
Install tailwindcss
and its peer dependencies, then generate your tailwind.config.js
and postcss.config.js
files.
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
Add the @tailwind
directives for each of Tailwind’s layers to your ./src/index.css
file.
index.css
@tailwind base;
@tailwind components;
@tailwind utilities;
Run your build process with npm run dev
.
Terminal
npm run dev
Reference in Tailwind CSS Docs
Installation (for standard modern project)
npm install react-icons --save
Reference in React-icons Docs
npm install framer-motion
Reference in Framer Motion Docs
index.css
@import url("Respective font");
:root {
font-family: "Inter", sans-serif;
}
This can change to:
- Go to Google Fonts
- Get font
- Get embed code
- Choose the web and
@import
- Copy
Reference in Google Fonts Docs
Feel free to copy this Markdown content and use it in your project's README.md file.