Breakpoints
Responsive design breakpoints for adapting layouts across different screen sizes.
Breakpoint Scale
0640px768px1024px1280px1536px+
Breakpoint Reference
| Name | Token | Min Width | Description |
|---|---|---|---|
| Mobile | sm | 640px | Small devices (phones) |
| Tablet | md | 768px | Medium devices (tablets) |
| Laptop | lg | 1024px | Large devices (laptops) |
| Desktop | xl | 1280px | Extra large devices (desktops) |
| Wide | 2xl | 1536px | Wide screens (large monitors) |
Usage with Tailwind CSS
1<!-- Mobile-first responsive classes -->2<div class="3 grid4 grid-cols-1 /* Mobile: 1 column */5 sm:grid-cols-2 /* 640px+: 2 columns */6 md:grid-cols-3 /* 768px+: 3 columns */7 lg:grid-cols-4 /* 1024px+: 4 columns */8">9 ...10</div>1112<!-- Hide/show at breakpoints -->13<div class="hidden md:block">14 Visible on tablet and up15</div>1617<div class="block md:hidden">18 Visible only on mobile19</div>
Usage with CSS Media Queries
1/* Mobile first approach */2.element {3 padding: 1rem; /* Base: mobile */4}56@media (min-width: 640px) {7 .element {8 padding: 1.5rem; /* sm: tablets */9 }10}1112@media (min-width: 1024px) {13 .element {14 padding: 2rem; /* lg: desktop */15 }16}
Guidelines
- Mobile-first - Start with mobile styles, add complexity for larger screens
- Content-driven - Let content determine when to adjust, not arbitrary widths
- Test thoroughly - Check layouts at various widths, not just breakpoint boundaries
- Limit breakpoints - Most components need 2-3 breakpoints max
Common Patterns
| Pattern | Mobile | Tablet | Desktop |
|---|---|---|---|
| Product Grid | 2 columns | 3 columns | 4 columns |
| Navigation | Hamburger menu | Horizontal links | Full nav with dropdowns |
| Hero Section | Stacked (image above) | Side by side | Side by side (larger) |
| Footer | Stacked accordion | 2 columns | 4 columns |
