What is Tailwind?
Tailwind is a utility-first CSS framework, which means you style a page by adding lots of small ready-made classes straight to your HTML. Adam Wathan released Tailwind CSS in 2017 as a free and open source project.
Here’s a button styled with Tailwind:
<button class="bg-blue-500 text-white px-4 py-2 rounded">Save</button>
Each class does one small job. bg-blue-500 sets a blue background, px-4 adds padding on the left and right and rounded rounds the corners. Plain CSS would have you give the button a class like button and write the styles for .button in a separate CSS file. Tiny single-purpose classes like these are called utility classes, which is where the “utility-first” name comes from.
People like Tailwind because they don’t have to invent class names or jump between HTML and CSS files. Hand-written classes also tend to multiply over time until a team has .btn, .button-primary and .blue-btn all doing similar things. Nobody dares to delete the old CSS in case something breaks. Tailwind’s build step scans your files and only ships the classes you actually use, so unused styles never pile up. Every style is a single class too, so you rarely fight CSS specificity. Many popular React component libraries like shadcn/ui are built on Tailwind. Tailwind has become incredibly popular and is often the default for vibe coding projects because AI tools like v0 reach for it automatically.
I thought Tailwind defeated the purpose of CSS when I first saw it and I still feel that way. I get that it fixes the class-name mess but to me it’s only a slightly better version of the style attribute, where you write styles directly on an HTML element with style="...". Real components end up with class lists like this one, which handles hover and dark mode and gets hard to read very quickly:
<div class="flex items-center justify-between gap-4 rounded-lg border border-gray-200 bg-white px-6 py-4 shadow-sm hover:bg-gray-50 dark:border-gray-700 dark:bg-gray-900 dark:hover:bg-gray-800">
I prefer UIs built on a design system, where the whole app uses a shared set of reusable components, colors and spacing rules. And I like having layers of abstraction so that by the time I’m building a screen I don’t have to think about styles at all.