Screen Sizes & Responsive Breakpoints
Screen sizes cheat sheet with responsive breakpoints, media queries, device dimensions, and mobile-first CSS design patterns.
12 min read
responsivebreakpointsmobile-firstcssmedia-queriesbootstraptailwind
Other CSS Sheets
Sign in to mark items as known and track your progress.
Sign inStandard Breakpoints & Device Sizes
Industry-standard breakpoints and common device dimensions for responsive design
Common Screen Breakpoints
Standard responsive breakpoints for mobile, tablet, and desktop layouts
css
/* Standard Breakpoints */
/* Mobile First Approach */
@media (min-width: 320px) { /* Mobile Small */ }
@media (min-width: 480px) { /* Mobile Large */ }
@media (min-width: 768px) { /* Tablet */ }
@media (min-width: 1024px) { /* Desktop */ }
@media (min-width: 1200px) { /* Large Desktop */ }
@media (min-width: 1440px) { /* Extra Large */ }
/* Desktop First Approach */
@media (max-width: 1439px) { /* Below XL */ }
@media (max-width: 1199px) { /* Below Large */ }
@media (max-width: 1023px) { /* Below Desktop */ }
@media (max-width: 767px) { /* Below Tablet */ }
@media (max-width: 479px) { /* Below Mobile Large */ }📱 Start with mobile-first design (min-width breakpoints)
💻 Common breakpoints: 768px (tablet), 1024px (desktop)
🖥️ Large screens: 1440px+, Ultra-wide: 1920px+
💡 Use rem/em for breakpoints to respect user zoom
⚡ Test on real devices, not just browser DevTools
✅ Consider content-based breakpoints over device-specific
Framework-Specific Breakpoints
Default breakpoints used by popular CSS frameworks and design systems
css
/* Bootstrap 5 */
$grid-breakpoints: (
xs: 0,
sm: 576px,
md: 768px,
lg: 992px,
xl: 1200px,
xxl: 1400px
);
/* Tailwind CSS */
sm: '640px' // Small devices
md: '768px' // Medium devices
lg: '1024px' // Large devices
xl: '1280px' // Extra large
2xl: '1536px' // 2X Extra large💡 Tailwind uses mobile-first with sm/md/lg/xl/2xl prefixes
📱 Bootstrap 5: xs(<576px), sm(≥576px), md(≥768px), lg(≥992px)
🎯 Material-UI: xs(0px), sm(600px), md(900px), lg(1200px), xl(1536px)
⚡ Customize framework breakpoints to match your design needs
📌 Keep breakpoint consistency across your entire project
✅ Document custom breakpoints for team consistency
Device Dimensions Reference
Actual screen dimensions of popular devices for accurate responsive testing
css
/* Popular Device Viewport Sizes (CSS pixels) */
/* 📱 Mobile Phones */
iPhone SE 320x568
iPhone 12/13 mini 375x812
iPhone 12/13/14/15 390x844
iPhone 12/13/14/15 Pro 393x852
iPhone 12/13/14 Pro Max 428x926
iPhone 15 Pro Max 430x932
Samsung Galaxy S20 360x800
Samsung Galaxy S21 384x854
Google Pixel 5 393x851
/* 📱 Tablets */
iPad Mini 768x1024
iPad Air 820x1180
iPad Pro 11" 834x1194
iPad Pro 12.9" 1024x1366
Surface Pro 7 912x1368
Samsung Galaxy Tab S7 753x1205
/* 💻 Laptops */
MacBook Air 13" 1440x900
MacBook Pro 14" 1512x982
MacBook Pro 16" 1728x1117
Surface Laptop 1504x1003
Dell XPS 13 1920x1080
/* 🖥️ Desktop Monitors */
HD Desktop 1366x768
Full HD 1920x1080
2K/QHD 2560x1440
4K/UHD 3840x2160
5K iMac 5120x2880📱 Test on actual devices when possible, not just browser emulation
💡 Consider logical breakpoints based on content, not just devices
⚡ Use Chrome DevTools device mode for quick responsive testing
🖥️ Don't forget ultra-wide monitors (21:9 aspect ratio)
📌 Account for browser UI that reduces available viewport
✅ Test with both portrait and landscape orientations
Responsive Design Patterns
Best practices and patterns for building responsive, mobile-first layouts
Mobile-First Design Approach
Build layouts starting from mobile, progressively enhancing for larger screens
css
/* Mobile-First CSS */
.container {
width: 100%;
padding: 0 16px;
}
/* Tablet */
@media (min-width: 768px) {
.container {
padding: 0 24px;
max-width: 720px;
margin: 0 auto;
}
}
/* Desktop */
@media (min-width: 1024px) {
.container {
max-width: 960px;
padding: 0 32px;
}
}📱 Start with base mobile styles, add complexity with min-width
💡 Mobile-first results in cleaner, more maintainable CSS
⚡ Better performance on mobile devices (less CSS to override)
Common Responsive Layout Patterns
Proven layout patterns that adapt gracefully across all screen sizes
css
/* Sidebar Layout */
.layout {
display: flex;
flex-direction: column;
}
.sidebar {
background: #f5f5f5;
padding: 1rem;
}
.main-content {
flex: 1;
padding: 1rem;
}
@media (min-width: 768px) {
.layout {
flex-direction: row;
}
.sidebar {
width: 250px;
flex-shrink: 0;
}
}💡 Use CSS Grid and Flexbox for fluid layouts
📱 Stack elements vertically on mobile, horizontally on desktop
✅ Test layouts with dynamic content, not just lorem ipsum