Set Up Tailwind In React - The fastest way! | Install Tailwind css In React

Поділитися
Вставка
  • Опубліковано 4 жов 2024
  • Set Up Tailwind In React - The fastest way! | Install Tailwind css In React
    Official Docs : 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 : trtechlesson@gmail.com

КОМЕНТАРІ • 3