Mobile-First Patterns — Frontend
Breakpoints
Layout Transformations
| Pattern |
Desktop |
Mobile |
| Hero with image |
2-column grid |
Stack, image below |
| Feature grid |
3-4 columns |
Single column |
| Sidebar + content |
Side-by-side |
Sheet/drawer |
| Data tables |
Full table |
Card view |
| Multi-column forms |
Side-by-side |
Stack vertically |
Touch Targets
- Minimum 44x44px for all interactive elements
- 8px minimum spacing between targets
- Swipe actions need visual hints
Font Scaling
Common Fixes
| Issue |
Fix |
| Hero grid breaks |
Use flex instead of grid on mobile |
| Horizontal scroll |
Set overflow-x: hidden on body |
| Tiny touch targets |
Add padding, not just visual size |
| Text overflow |
Use break-words and fluid typography |