Design responsive strategy

From Intense-Visions/harness-engineering · View interactive version

Design responsive strategy is an AI agent skill from the GitHub repository Intense-Visions/harness-engineering. > Responsive as a design decision — content-first breakpoints, progressive disclosure, and treating every viewport as a first-class design target

How to use this skill

Skill file

Responsive Strategy

Responsive as a design decision — content-first breakpoints, progressive disclosure, and treating every viewport as a first-class design target

When to Use

Instructions

  1. Set breakpoints where the content breaks, not at device widths. Device-based breakpoints (320px for iPhone, 768px for iPad, 1024px for laptop) create designs that work on today's devices and break on tomorrow's. Content-first breakpoints are future-proof:
  1. Design mobile-first as a constraint exercise. Mobile-first is not about mobile users — it is about forcing prioritization:
  1. Apply the five responsive patterns. Every responsive layout change falls into one of these patterns:
  1. Define what changes and what stays constant across breakpoints. Not everything should respond:

Changes across breakpoints:

Stays constant across breakpoints:

  1. Avoid layout cliffs. A layout cliff is a dramatic, jarring change at a single pixel boundary:
  1. Test at the edges, not the centers. Common mistake: designing for 375px (iPhone), 768px (iPad), 1440px (laptop). These are the centers of each range. Problems appear at the edges:

Details

Content Priority Matrix

Before responsive design decisions, fill out this matrix for every page:

| Element | Priority | Mobile | Tablet | Desktop |

| ---------------- | -------- | ---------------- | ---------------- | ---------------- |

| Hero headline | 1 | Full-width, 32px | Full-width, 40px | Contained, 56px |

| Primary CTA | 2 | Sticky bottom | Below hero | Inline with hero |

| Feature overview | 3 | Stacked cards | 2-column grid | 3-column grid |

| Social proof | 4 | Hidden (tap) | Below fold | Sidebar or below |

| Secondary nav | 5 | Hamburger | Icon rail | Full sidebar |

| Footer links | 6 | Accordion | 2-column | 4-column |

This matrix replaces guesswork. Every responsive decision traces back to a prioritized content need.

Responsive vs. Adaptive

Breakpoint Naming Convention

Avoid device names. Use size categories:

| Name | Range | Column Count | Use Case |

| -------- | ----------- | ------------ | ----------------------------------- |

| compact | 0-599px | 4 | Single-column, stacked layout |

| medium | 600-839px | 8 | Two-column, side panels possible |

| expanded | 840-1199px | 12 | Full layout, sidebars, multi-column |

| large | 1200-1599px | 12 | Generous spacing, wider content |

| xlarge | 1600px+ | 12 | Max-width container, ultrawide |

Material Design 3 uses this exact naming. Tailwind uses sm/md/lg/xl/2xl at 640/768/1024/1280/1536px.

Anti-Patterns

  1. Device-width breakpoints. Designing for "iPhone 14" (390px) and "iPad" (768px) instead of for content needs. New devices launch every year at new widths. Content-first breakpoints (set where the layout breaks, not where a device is) remain stable across device generations. Material Design has used the same breakpoint ranges since 2018 despite dozens of new Android devices.
  1. Hiding critical content on mobile. Removing features, navigation items, or information on mobile because "the screen is too small." Mobile users have the same goals as desktop users — often with more urgency (on the go, one-handed). Airbnb does not hide any booking functionality on mobile; it reorganizes it. The map, filters, reviews, and host info are all accessible — just through different interaction patterns (bottom sheet, drawer, expandable sections).
  1. Responsive as afterthought. Designing a complete desktop layout, then "making it responsive" by squeezing everything into a narrower column. This produces layouts where mobile feels like a broken desktop rather than a designed experience. Symptom: horizontal scrolling, text running off-screen, touch targets too small, images larger than the viewport. Fix: design mobile first, then enhance for desktop.
  1. Breakpoint cliffs. A single media query that changes 5+ properties at once, creating a jarring visual jump. At 767px the page looks one way; at 768px it looks completely different. Users on resizable windows (split-screen, desktop browsers) experience this as broken behavior. Fix: distribute changes across multiple breakpoints, use fluid values between breakpoints, and animate transitions.
  1. Ignoring touch at non-mobile sizes. Assuming that large viewports mean mouse input. iPad Pro is 1024px wide — a "desktop" width with touch input. Surface tablets, touch laptops, and Chromebooks exist at every viewport size. Minimum touch target (44x44px / 48x48dp) applies to ALL viewports, not just mobile.

Real-World Examples

Stripe Documentation:

Material Design 3 Responsive Scaffolding:

Apple Product Pages:

Source

Process

  1. Prioritize content with a numbered list before opening any design tool — mobile forces the ranking
  2. Set breakpoints by widening from 320px until the layout breaks, placing breakpoints at the break points
  3. Validate by testing at range edges (320px, 480px, 768px, 1024px, 1920px) and on at least one touch device at a "desktop" width

Harness Integration

This is a knowledge skill. When activated, its content is injected into the system prompt to guide responsive layout decisions. It does not execute code or modify files. Use alongside design-grid-systems for column count at each breakpoint, design-responsive-type for fluid typography, and design-content-density for density adjustments across viewports.

Success Criteria

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.