Atomic CSS
ELI5 — The Vibe Check
Atomic CSS is the idea that every CSS class should do exactly one thing. Instead of .card-header, you have .p-4 .font-bold .text-blue-500. Tailwind is the poster child. Your HTML looks like alphabet soup but your CSS file never grows. Tradeoffs, baby.
Real Talk
Atomic CSS (also called utility-first CSS) is a methodology where each CSS class applies a single, specific style property. Frameworks like Tailwind CSS and UnoCSS generate utility classes that compose in HTML, resulting in highly reusable styles with minimal CSS output.
When You'll Hear This
"Atomic CSS means you never write custom CSS again, just compose utilities" / "The HTML looks ugly but the total CSS shipped is tiny"
Related Terms
CSS Modules
CSS Modules are like giving every CSS class a unique ID badge so they never clash with each other.
PostCSS
PostCSS is a CSS processor that does... whatever its plugins tell it to do. It's like an empty pipeline where you plug in transformations. Autoprefixer?
UnoCSS
UnoCSS is like Tailwind on steroids.