Breakpoints
The widths at which the layout changes, chosen from where the content breaks rather than from a device list.
Definition
A breakpoint is a viewport or container width at which layout rules change. The durable approach is to add a breakpoint where the content stops working, not where a popular device happens to be.
Craft convention. True because the industry converged on it. Breaking it costs familiarity, not correctness.
A conventional set
These are widely used defaults, useful as a shared vocabulary. Add or remove breakpoints based on where your content actually breaks.
| Name | Min width | Typical shift |
|---|---|---|
| sm | 640px | Small elements move onto one line. |
| md | 768px | Two-column layouts become viable. |
| lg | 1024px | Persistent navigation appears; three panes become possible. |
| xl | 1280px | Wider content and larger media. |
| 2xl | 1536px | Maximum container width reached; extra space becomes margin. |
Practice
- Work mobile first, using min-width queries. Base styles are the small layout and each breakpoint adds.
- Test between breakpoints, not at them. Failures occur in the ranges, not at the boundaries.
- Use em or rem in media queries so they respond to the user's font size setting.
- Prefer container queries for components, and keep media queries for page-level structure.
- Fewer breakpoints is better. Each one multiplies testing and review effort.
In practice
Content-driven breakpoints
Responsive designA navigation bar that fits until 880px should break at 880px, not at 768px because that is the conventional tablet value. The content defines the boundary.
Continue from here
Each link says what the connection is, so you can tell a principle from an alternative from a thing people mix this up with.
Short definition
The one-paragraph version, for when that is all you need.
- BreakpointTerm
- Responsive DesignTerm
- ViewportTerm
Related concept
Connected closely enough to change how you apply this.
- Reflow and ZoomAccessibility
- Adaptive LayoutUI foundation
- CompositionUI foundation
- ContainersUI foundation
- GridsUI foundation
- Responsive LayoutUI foundation
- Responsive TypographyUI foundation