Skip to main content

Tailwind CSS Breakpoints

Complete Tailwind v4 responsive breakpoints reference.
Mobile-first design with 5 breakpoint prefixes.

Breakpoint Scale

0px
Default (no prefix)
640px
sm:
768px
md:
1024px
lg:
1280px
xl:
1536px
2xl:

Quick Reference

PrefixMin WidthPixelsCSS Media Query
sm:40rem640px@media (width >= 40rem)
md:48rem768px@media (width >= 48rem)
lg:64rem1024px@media (width >= 64rem)
xl:80rem1280px@media (width >= 80rem)
2xl:96rem1536px@media (width >= 96rem)

Usage Examples

Responsive Width

<div class="w-full md:w-1/2 lg:w-1/3">
  Full on mobile, half on tablet,
  third on desktop
</div>

Responsive Grid

<div class="grid grid-cols-1
            md:grid-cols-2
            lg:grid-cols-4">
</div>

Hide/Show

<div class="hidden md:block">
  Hidden on mobile, visible on tablet+
</div>
<div class="md:hidden">
  Mobile only
</div>

Responsive Spacing

<section class="p-4 md:p-8 lg:p-12">
  Padding increases with screen size
</section>

About Tailwind Breakpoints

Tailwind uses a mobile-first approach. Unprefixed utilities apply to all screen sizes, while prefixed utilities apply at that breakpoint and above.

md:flex means "apply flex at 768px and wider" - not "only at 768px".

For custom breakpoints, define them in your CSS: @custom-media --tablet (width >= 900px);

See these breakpoints in action with real layout patterns: Tailwind Responsive Patterns →