Skip to main content
Tailwind uses a mobile-first breakpoint system that makes it easy to build responsive interfaces without leaving your HTML.

Breakpoint System

Tailwind includes five responsive breakpoints by default, inspired by common device resolutions:
These breakpoints use the modern width >= syntax instead of the older min-width: syntax, providing cleaner and more intuitive media queries.

Mobile-First Approach

Every utility in Tailwind can be applied conditionally at different breakpoints. By default, unprefixed utilities apply to all screen sizes, while prefixed utilities only apply at the specified breakpoint and above.
This means you typically design for mobile first, then layer on changes for larger screens:

How Breakpoints Work

Under the hood, Tailwind generates CSS media queries for each breakpoint variant:
From the Tailwind source code, breakpoint variants are registered as:

Common Responsive Patterns

Responsive Layout

Responsive Typography

Responsive Spacing

Show/Hide Elements

Max-Width Breakpoints

While mobile-first is recommended, you can also use max variants to target smaller screens:
The max variant generates media queries using width <:
Use max-* variants sparingly. They can create confusing overrides and make your CSS harder to maintain. Stick with mobile-first (min-* or unprefixed) whenever possible.

Arbitrary Breakpoints

Use arbitrary values to create one-off breakpoints:

Responsive with Other Variants

Breakpoints can be combined with other variants like hover, focus, and dark mode:

Container Queries

Tailwind also supports container queries using the @ variant:
Container queries use named containers with modifiers:
From the source, container queries work similarly to regular breakpoints:

Orientation

Target landscape and portrait orientations:
Style elements for print media:

Customizing Breakpoints

Define custom breakpoints in your theme configuration:
Now you can use xs: and 3xl: variants throughout your HTML:
Breakpoints are sorted automatically by their pixel values, so you don’t need to worry about the order you define them in.