Tailwind CSS

Write CSS without naming anything. Liberation.

▶ the lesson · ~35s · narrated · tap for sound

the intro

Tailwind is utility-first CSS: instead of writing class names and stylesheets, you compose tiny single-purpose classes directly in your markup. Padding, colors, layouts — all from a consistent scale. It feels weird for a week, then remarkably fast.

the sample

a styled card, no stylesheet

<div class="rounded-xl bg-white p-4
              shadow-md border-2">
  <h2 class="text-xl font-bold">Hi</h2>
  <p class="text-gray-500">Utility CSS.</p>
</div>

fun fact ✦

Tailwind CSS v1 shipped in 2017 and split the frontend internet in half. The halves still argue.

the docs

quick hits about Tailwind CSS

15-second answers · interviews, tips, trivia & hidden gems

🎤 interview

Is utility CSS real CSS?

🎤 interview

Does Tailwind make you worse at CSS?

📚 tutorial

Why p-4 and not padding 16px?

🔧 useful

Dark mode in one prefix?

💎 deep

Style a child when the parent hovers?

💎 deep

Need a real class name?

🔧 useful

Weird one-off value?