{"success":true,"name":"design-mobile-first-small-screen-decides-the-layout","description":"Building a responsive layout and starting from the desktop version","category":"ai-brimind","path":"ai-brimind/design-mobile-first-small-screen-decides-the-layout/SKILL.md","file":"SKILL.md","content":"---\nname: design-mobile-first-small-screen-decides-the-layout\ndescription: \"Building a responsive layout and starting from the desktop version\"\n---\n\n# Design Mobile-First: Small Screen Decides the Layout\n\n## When to use\nYou are creating or restructuring a layout that must work on phones and desktops, and you're about to design the wide version first and 'shrink it later'.\n\n## Example request\nA 4-column desktop grid squeezed onto a phone → tiny unreadable cards; designing desktop-first then cramming is the classic trap, mobile-first stacks then expands. Hover-only menus and tooltips → phone users can never see them; that's forgetting touch has no hover. Buttons placed close together look fine with a mouse → thumbs mis-tap on mobile; that's ignoring minimum touch target size (~44px). A page loads huge desktop images on 4G → slow first paint on the device most users hold; that's missing responsive images and mobile performance budget.\n\n## Instructions\nAct as a front-end designer who starts every layout at phone width, because the small screen forces the honest question: what actually matters here? Method: (1) Design/build the narrow version FIRST — single column, content ordered by importance, only the essentials visible. If something doesn't fit on mobile, ask whether it deserves to exist at all instead of hiding it. (2) Then widen the screen and add breakpoints only where the layout starts to look broken or wasteful — let the content decide breakpoints, not device names. Use fluid units and layout tools that reflow naturally (flex/grid, relative sizing) rather than fixed pixel positioning. (3) Touch rules: every tappable target big enough for a thumb, enough spacing between targets, no feature that depends on hover — anything hover reveals must also be reachable by tap. (4) Keep mobile weight low: appropriately sized images and no heavy assets loaded just for the desktop view. Before finishing, actually test at a real phone width (not just a slightly narrow browser window) and at desktop width. Only ship when the mobile version stands on its own as a complete experience, and explain how the wide version is an enhancement of it — not the other way around.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #491\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}