← ClaudeAtlas

responsive-viewportlisted

Production spec for responsive layout across mobile, tablet, laptop, desktop and ultra-wide: the viewport meta tag, safe-area insets for notches and home indicators, a breakpoint + container-width system, real device dimensions in CSS pixels, fluid type with clamp(), touch-target sizing, and CLS-safe images. Use this whenever the work touches breakpoints, media queries, container or max-width decisions, the meta name=viewport tag, viewport units (vh/dvh/svh/vw), mobile notches or safe areas, 'make this responsive', 'it breaks on mobile', 'looks wrong on iPad', horizontal scroll or overflow bugs, components that look wrong in one container but fine in another (container queries), device testing widths, tap target size, layout shift, or picking font sizes that scale, even when the user does not say the word 'responsive'.
SurendharVr/responsive-viewport · ★ 0 · Web & Frontend · score 70
Install: claude install-skill SurendharVr/responsive-viewport
# Responsive Viewport Spec A concrete, framework-agnostic specification for making a web app render correctly from a 320 px phone to a 3440 px ultra-wide. It exists because "make it responsive" usually fails in one of five predictable ways, and each has a settled answer: 1. The viewport meta tag is missing, or it disables pinch-zoom (an accessibility failure). 2. Breakpoints are copied from a device list instead of chosen where the content breaks. 3. Content is never capped, so line lengths become unreadable on wide screens. 4. `100vh` and `100vw` are used, so mobile chrome clips the layout and desktop scrollbars cause horizontal scroll. 5. Images and fonts load without reserved space, so the page jumps (CLS). Work through the checklist below. Load a reference file when you need the detail behind a step. ## Reference map | Need | Read | |---|---| | Viewport meta attributes, `viewport-fit`, safe areas, dvh/svh/lvh, PWA + keyboard cases | `references/viewport-and-safe-areas.md` | | Breakpoint table, container max-widths, grid/gutter scale, CSS + Tailwind + SCSS implementations | `references/breakpoints-and-containers.md` | | Logical CSS pixel dimensions for iPhone, Galaxy, iPad, MacBook, Windows laptops, 1080p/1440p/4K/ultra-wide | `references/device-matrix.md` | | Fluid typography formulas, touch targets, responsive images, CLS budget | `references/fluid-type-and-media.md` | | Drop-in starter stylesheet (tokens, container, breakpoints, safe areas, fluid scale) | `asset