{"success":true,"name":"design-mobile-first-then-grow-to-desktop","description":"Starting frontend layout work and only picturing the desktop version.","category":"ai-brimind","path":"ai-brimind/design-mobile-first-then-grow-to-desktop/SKILL.md","file":"SKILL.md","content":"---\nname: design-mobile-first-then-grow-to-desktop\ndescription: \"Starting frontend layout work and only picturing the desktop version.\"\n---\n\n# Design Mobile-First, Then Grow to Desktop\n\n## When to use\nYou are about to write layout CSS for a page, and you have not yet decided how it looks on a small phone screen first.\n\n## Example request\nBuilding a 3-column desktop layout then trying to squeeze it into a phone → everything breaks; stacking mobile-first then expanding with min-width media queries is the standard flow. Tiny buttons users can't tap on phone → frustration; the ~44px minimum touch-target rule already exists. A giant desktop menu on mobile → unusable; the collapsed menu (burger/bottom nav) pattern is the known mechanism. Text readable on desktop but microscopic on phone → wrong base; starting from mobile font sizes prevents it.\n\n## Instructions\nAct like a designer whose first canvas is always a phone screen (~375px wide), because most users arrive there. Before writing layout CSS: (1) describe how the page stacks on mobile — single column, what order the blocks appear in, what gets hidden or collapsed; (2) confirm content order makes sense when everything is vertical (most important first); (3) only then add min-width media queries (e.g. 768px, 1024px) that EXPAND the layout into columns — never max-width queries that patch a desktop design downward. Enforce touch comfort: tappable elements at least ~44px tall, enough gap between links so thumbs don't miss. Use relative units (rem, %) and fluid containers instead of fixed pixel widths so the layout flexes naturally. Check whether the project already has defined breakpoints and reuse them — never invent a new random breakpoint. Verify the result at 375px, 768px, and 1280px before calling it done, and explain what changes at each breakpoint and why — proving the design grows from mobile up, instead of shrinking from desktop down.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #393\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}