WebnD Inventory
Tailwind CSS logo

Tailwind CSS

Style fast with utility classes: responsive design, dark mode, animations, and custom themes with Tailwind CSS v4.

All Concepts15 concepts

Introduction & Setup

4 min

Tailwind CSS is a utility-first CSS framework: instead of writing custom CSS classes, you compose small single-purpose classes like flex, p-4, and text-center directly in your H...

tailwind·#tailwind·#introduction
Read

Utility-First Fundamentals

4 min

The utility-first workflow means styling by combining many small classes, each doing one job. It keeps styles next to the markup, removes the need to invent class names, and kee...

tailwind·#tailwind·#utility
Read

Spacing & Sizing

4 min

Tailwind uses one spacing scale for padding, margin, gap, width, height and more. Learning that scale and a handful of sizing helpers lets you build consistent layouts quickly.

tailwind·#tailwind·#spacing
Read

Typography

3 min

Tailwind gives you utilities for font size, weight, line height, spacing, alignment and decoration, so you can set up a complete type system without writing CSS.

tailwind·#tailwind·#typography
Read

Colors & Backgrounds

3 min

Tailwind ships with a carefully designed color palette (each color has shades from 50 to 950) and utilities for text, background, border and gradient colors, plus opacity modifi...

tailwind·#tailwind·#colors
Read

Borders, Shadows & Effects

3 min

Borders, rounded corners, shadows, rings, blur and opacity add depth and polish to a design. Tailwind exposes all of them as short utilities that can be combined and animated.

tailwind·#tailwind·#borders,
Read

Layout & Positioning

3 min

Before reaching for flexbox or grid, you need Tailwind's core layout utilities: display, position, z-index, overflow and visibility. They decide how elements flow, stack and ove...

tailwind·#tailwind·#layout
Read

Flexbox

3 min

Flexbox in Tailwind is a handful of intuitive classes that arrange items in a row or column, align them, space them out and let them grow or shrink. It is the go-to tool for nav...

tailwind·#tailwind·#flexbox
Read

Grid

3 min

Tailwind's grid utilities let you build two-dimensional layouts with a single line: define columns with grid-cols-*, space them with gap-*, and make items span multiple tracks w...

tailwind·#tailwind·#grid
Read

Responsive Design

3 min

Tailwind is mobile-first: unprefixed utilities apply to every screen size, and breakpoint prefixes like md: apply from that width and up. This makes responsive design a matter o...

tailwind·#tailwind·#responsive
Read

State Variants

3 min

Variants are prefixes that apply a utility only in a certain state — hover:, focus:, active:, disabled:, group-hover: and many more. They let you build interactive UI entirely i...

tailwind·#tailwind·#state
Read

Dark Mode

4 min

Tailwind's dark: variant applies styles when dark mode is active. By default it follows the operating system preference, and you can switch to a manual toggle (class or data att...

tailwind·#tailwind·#dark
Read

Transitions & Animations

3 min

Tailwind makes motion easy: transition utilities smooth state changes, transform utilities move, scale and rotate elements, and built-in animate-* classes provide spinners, puls...

tailwind·#tailwind·#transitions
Read

Customization with @theme

4 min

Tailwind v4 is configured in CSS. The @theme directive defines design tokens — colors, fonts, spacing, breakpoints, shadows, animations — as CSS variables, and Tailwind automati...

tailwind·#tailwind·#customization
Read

Reusing Styles & Components

5 min

Long class lists are fine when they live in one place. This lesson covers the right ways to avoid repetition in Tailwind: components first, then @apply, @utility and @layer, plu...

tailwind·#tailwind·#reusing
Read