npm init -y
npm install -D tailwindcss postcss autoprefixer
npm install vite
"scripts": {"start": "vite"},
npx tailwindcss init -p
@tailwind base; @tailwind components; @tailwind utilities;
content: ["*"],
npm run start
npm install -D tailwindcss postcss-cli postcss autoprefixer
npx tailwind init tailwind.js --full
touch postcss.config.js
yarn add -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
module.exports = {
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {},
},
plugins: [],
}
@tailwind base;
@tailwind components;
@tailwind utilities;