npm create vite@latest
npm install
Install Tailwind CSS with Vite:
3.1 npm install -D tailwindcss postcss autoprefixer
3.2 npx tailwindcss init -p
3.3 Configuring taliwind.consig.js with this:
``` /** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {},
},
plugins: [],
}
```
Adding Tailwind to the main css file:
4.1:
@tailwind components;
@tailwind utilities; ```
Building and testing with a couple classes to a component.