Adaptive Layout
Distinct layouts for distinct contexts, justified when the task genuinely differs rather than merely the screen size.
Definition
Adaptive design serves different layouts, and sometimes different content, for different contexts. It differs from responsive design, where one layout flexes. The two are frequently combined.
Craft convention. True because the industry converged on it. Breaking it costs familiarity, not correctness.
On this page
When adaptation is justified
Adaptation is justified when input, context or task differs, not when the screen is merely narrower. Touch versus pointer changes target sizes and removes hover. A phone in a shop is a different situation from a desktop at work, and the primary task may genuinely differ.
It is not justified as a shortcut for a layout that was designed desktop-first and does not reflow. That produces two codebases and a mobile experience that quietly loses features.
Adapt to capability, not to device name
- Use pointer: coarse and hover: none to detect touch, rather than guessing from width.
- Use prefers-reduced-motion, prefers-color-scheme and prefers-contrast to respect stated preferences.
- Use Network Information where available to reduce payload on constrained connections, with a sensible default when it is not.
- Never use user agent sniffing for layout. It is unreliable and it fails for every device you did not anticipate.
In practice
Touch-specific target sizing
Cross-device productsIncreasing target sizes under pointer: coarse addresses the real difference, which is input precision, rather than assuming narrow means touch. Tablets with keyboards and touchscreen laptops both break the width assumption.
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.
Applies when you are designing
Applied through
Where this shows up as a concrete interface decision.
- Mobile Interaction PatternsPattern
Practical example
A worked decision where this was the deciding factor.
- Putting a Data Table on a PhoneCase study
Related concept
Connected closely enough to change how you apply this.
- Reduced MotionAccessibility
- Target SizeAccessibility
- BreakpointsUI foundation
- Responsive LayoutUI foundation