This template provides a stater setup to get tailwindCSS working in php website.
git clone https://github.com/purnasth/tailwindcss-starter-kit.git
Run the following commands in your terminal:
npm install -D tailwindcss
npx tailwindcss init
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./**/*.{html,js}"],
theme: {
extend: {},
},
plugins: [],
};
@tailwind base;
@tailwind components;
@tailwind utilities;
npx tailwindcss -i ./css/style.css -o ./dist/output.css --watch
npm install
to install the node_modules on your local repo which has been .gitignore in this github repo.npm run build
for update in dist/output.css
⭐ Star this repo on GitHub — it helps!