



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




npm install tailwindcss @tailwindcss/vite
/* v4: main CSS file */ @import "tailwindcss";
/* v4: theme customization in CSS */ @theme { --color-brand: #c9a227; --font-display: "Inter", sans-serif; }
// v3: tailwind.config.js module.exports = { content: ["./src/*/.{js,ts,jsx,tsx,html}"], theme: { extend: { colors: { brand: "#c9a227" } } }, plugins: [], };
/* v3: main CSS file */ @tailwind base; @tailwind components; @tailwind utilities;
Sizing
Layout: Flexbox
justify-start / center / end / between / around / evenly
items-start / center / end / stretch / baseline
Colors
Borders, Radius, Shadow & Rings
Responsive Design (mobile first)
State Variants
...
...
Dark Mode
Transitions & Animation
v3 vs v4 Quick Notes
Common Pitfalls