Simple demonstration that shows how to add tailwindcss with django project
Here is the details of the rules to add tailwind with django project:
npm install -D tailwindcss npx tailwindcss init
copy this file into your config file!
/** @type {import('tailwindcss').Config} / module.exports = { content: ["./**/.{html,js}", // './home.html',
],
theme: {
extend: {
spacing: {
'some key': {
1.5: '
{ "devDependencies": { "tailwindcss": "^3.3.3" },
"scripts":{
"build": "tailwindcss -i ./static/tw/input.css -o ./static/tw/output.css --watch"
}
}
@tailwind base; @tailwind components; @tailwind utilities;
npm run build