Source : https://tailwindcss.com/docs/installation
- create folder project where ever you want
- make sure you already install npm
- use terminal like :
- powershell
- git bash
npm init
npm i -D tailwindcss
npm i -D tailwindcss postcss autoprefixer
npx tailwindcss init
module.exports = {
content: ["./index.html"],
theme: {
extend: {},
},
plugins: [],
};
/* reset to default style and use tailwind style */
@tailwind base;
/* Get Components Tailwind Like Container */
@tailwind components;
/* Get Utilities Tailwind Like Button,Color,Margin,Padding And More */
@tailwind utilities;
npx tailwindcss -i ./input.css -o ./new-file.css --watch