Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 481 Bytes

File metadata and controls

27 lines (21 loc) · 481 Bytes

How to setup Tailwind CSS

Step 1: Run the following commands

npm install -D tailwindcss
npx tailwindcss init

Step 2: Update tailwind.conf.js file to include this line:

content: ["*.html"],

Step 3: create src/input.css to include:

@tailwind base;
@tailwind components;
@tailwind utilities;

Step 4: Include the src/output.css file to your html

Step 5: Run the following command:

npx tailwindcss -i ./src/input.css -o ./src/output.css --watch