🌐Tailwind CSS
Also known as Tailwind, TailwindCSS, Utility-First CSS
A CSS framework of small classes. Each one does a single styling job.
Think of it like
Think of it like a box of Lego bricks. You build each look from small pieces, not from one big moulded toy.
Example
Jack styles a button with class="px-4 py-2 rounded bg-blue-600 text-white". He never opens a CSS file.
Why it matters
It is one of the most used ways to style new web apps. Many starter kits and AI tools write it by default.
Definition
Example code
html
<button class="px-4 py-2 rounded-lg bg-blue-600 text-white">
Buy now
</button>Common mistake
Key takeaways
- 1One class, one job. Small classes build up each look.
- 2Styles in the page. You rarely write a separate CSS file.
- 3Only what you use. The build drops every unused class.