Tailwind CSS
A CSS framework made of small single-purpose utility classes, such as bg-blue-600 or px-4, that you combine in markup.
In more detail
Tailwind scans your files for class names and generates only the CSS you use. Version 4 moved configuration into CSS itself with the @theme directive, where each design token also becomes a CSS custom property that the utilities reference. That makes runtime theming work by simply overriding variables.
Related terms
- utility class — A CSS class that does one small job, such as p-4 for padding or text-white for text colour.
- @theme — The Tailwind CSS version 4 directive where you declare design tokens in CSS, which become both CSS variables and utility classes.
- tailwind-merge — A JavaScript library that removes Tailwind classes overridden by later ones in the same list, such as dropping p-4 when px-6 follows.
- CSS custom property — A value you name yourself in CSS, such as --color-primary: #2563eb, and use elsewhere with var(--color-primary).
- CSS — The language that describes how web pages look: colours, fonts, spacing, layout and animation.
- Flexbox — A CSS layout mode that arranges a container's children in a row or column and distributes space between them.
Taught in
- CSS Custom Properties & Dynamic Theming Architecture — Design Systems & Component Engineering
- Tailwind CSS v4 Engine: CSS Variables & Theme Extensions — Design Systems & Component Engineering
- Class Variance Authority: Type-Safe Variant & Prop Orchestration — Design Systems & Component Engineering
- Metadata API: Dynamic OpenGraph & Head Management — Next.js 15 & Modern App Router Architecture