Set Up Tailwind In Nextjs - The fastest way! | Install Tailwind css In Nextjs
Official Docs : https://tailwindcss.com/
1. npm install tailwindcss postcss autoprefixer postcss-cli
2. tailwind.css file
@tailwind base;
@tailwind components;
@tailwind utilities;
3. npx tailwindcss init --full
4. npx tailwindcss init tailwindcss-config.js -p
5. package.json file
"start": "npm run watch:css && react-scripts start",
"build": "npm run watch:css && react-scripts build",
"watch:css": "postcss src/styles/tailwind.css -o src/styles/output.css"
▶️ Say "Hello🙋♂️" to me On:
🔸 Instagram : / smurtiranjan_s
🔸 Twitter : / smurtiranjan_s
▪️For Business Enquiry : [email protected]