{"slug": "responsive-figma-code-layer-capture-a-page-at-desktop-ipad-and-phone-widths-then", "title": "Responsive Figma Code Layer: Capture a Page at Desktop, iPad and Phone Widths, Then Brief the AI", "summary": "A developer published a workflow for building responsive Figma code layers by capturing the same page at Desktop 1440, iPad 820 and a phone width with the WebCapture to Figma plugin, then briefing Claude, ChatGPT or a code layer's AI with all three captures plus a written change log of breakpoint differences. The method instructs the AI to write mobile-first CSS, add breakpoints between captured widths, and avoid inventing layouts, with each breakpoint verified against a pass/fail checklist covering layout, navigation and typography.", "body_md": "*Originally published on [Crafttor](https://crafttor.com/blog/responsive-code-layer-figma).*\n\n**TL;DR:** An AI can only follow a responsive layout it has seen. To build a responsive Figma code layer, capture the same page at Desktop 1440, iPad 820 and a phone width with WebCapture to Figma. Compare the three captures, write down what changes at each size, and brief Claude, ChatGPT or the code layer's AI with all three. Then check each breakpoint with the checklist below.\n\nA single desktop capture says nothing about how the nav collapses or the grid reflows. So the model invents a mobile layout. The cure is simple: show it every width that matters.\n\nResponsive behaviour is a set of decisions made at breakpoints. A three column grid becomes two, then one. A horizontal nav becomes a menu button. A hero image moves below the headline. Font sizes step down.\n\nNone of that is visible in a desktop capture. Each Copy for LLM brief and each import describes the page at the width you captured. To pass on the decisions, you need a capture per layout.\n\n[WebCapture to Figma](https://www.figma.com/community/plugin/1688943241214350584/webcapture-to-figma) offers these widths: Desktop 1440, iPad 820, Pixel 7, iPhone 14 Pro, iPhone SE, or a 360px Android phone.\n\nA good default set:\n\n| Capture | Width option | Why | \n|---|---|---|\n| Desktop | Desktop 1440 | Full layout, all columns | \n| Tablet | iPad 820 | Where most grids and navs change | \n| Phone | iPhone 14 Pro, Pixel 7 or 360px Android | Single column layout | \n\nIf your audience skews to small Android phones, pick the 360px option for the phone capture. If you care about very small iPhones, add iPhone SE as a fourth.\n\nImport each capture as editable frames and lay them out in a row, left to right, from widest to narrowest. Name them \"Desktop 1440\", \"iPad 820\" and \"Phone\". For more on phone and tablet capture, see [capturing tablet and phone layouts as editable layers](https://crafttor.com/blog/mobile-and-tablet-website-to-figma).\n\nCapture or rebuild only designs you own or have permission to use.\n\nBefore you brief any AI, spend ten minutes comparing the three frames. Write down every difference, section by section. This short document is the most valuable part of the whole process.\n\nAn example:\n\nBecause the imports carry real type and layout, you can read exact sizes from the frames instead of guessing.\n\nThe extension captures the page as you see it, so set the browser to each layout first. Chrome DevTools device mode makes that easy. Capture once per width and press Copy for LLM for each one. Each brief carries the layout, colours with real gradient stops, border and shadow values, fonts, icons as inline SVG and every interaction for that width.\n\nPaste them into one message to Claude, ChatGPT or a Figma code layer's AI, in order, each with a clear label. Then add your change log and the instruction:\n\n\"Below are three captures of the same page: DESKTOP 1440, TABLET 820, PHONE. Build one responsive HTML and CSS page that matches each capture at its width. Write mobile first CSS. Add breakpoints between the captured widths. Follow the CHANGE LOG exactly. Do not invent layouts for widths that differ from the captures. Keep colours, fonts and icons exactly as given.\"\n\nIf the combined text is long, split the work. Ask for the phone layout first, then \"now add the tablet breakpoint\", then \"now add desktop\". Each step is easier to check.\n\nCreate a code layer in Figma and let its AI build from the brief, or paste the code from Claude or ChatGPT into it. Then duplicate the layer and set each copy to one of the captured widths by hand. Place each copy under the matching frame.\n\nNow you have a grid: captured frames on top, running code layers below.\n\nHover states, transitions and keyframe animations play in the code layers too. That matters on touch layouts, where some hover effects should be replaced by tap states.\n\nRun through this at each width. Mark pass or fail.\n\n**Layout**\n\n**Navigation**\n\n**Type**\n\n**Media**\n\n**In between widths**\n\nThat last group is where most AI built pages fail. The captures pin three points. The space between them is where you have to look.\n\nThe captures tell you which layouts exist. They do not tell you the exact pixel where the live site switches. You have three reasonable options:\n\n`min-width: 821px` for desktop rules.\nWrite breakpoints as `min-width` queries on top of mobile first defaults. It keeps the CSS easier to read:\n\n```\n.features { display: grid; grid-template-columns: 1fr; gap: 16px; }\n\n@media (min-width: 640px) {\n  .features { grid-template-columns: repeat(2, 1fr); }\n}\n\n@media (min-width: 1024px) {\n  .features { grid-template-columns: repeat(3, 1fr); gap: 24px; }\n}\n```\n\nIf you are starting from screenshots rather than live captures, our guide to [screenshot to responsive HTML](https://crafttor.com/blog/screenshot-to-responsive-html) covers that route.\n\nSometimes you do not need a rebuild. You need the captured page running as it was, at each width. After an import, the plugin's Download HTML saves a ready to run HTML, CSS and JS project. Copy prompt gives Claude, with the Figma MCP connected, what it needs to add it as a code layer beside your frame. Figma plugins cannot create code layers themselves, so Claude does the last step. Code layers cannot be resized from the API, so set it to the size the prompt names.\n\nThat route reproduces one capture faithfully. The three capture brief is the route for one responsive build.\n\nURL captures send only the URL to Apify, rendered with your own Apify token. A free Apify account is enough to start. Extension captures stay on your machine and need no token. Nothing from your Figma file is uploaded, and the plugin never sends anything to an AI.\n\nThree captures and a short change log turn \"make it responsive\" from a guess into a spec. Set up the grid once and every later change can be checked at every width.\n\n[WebCapture to Figma](https://www.figma.com/community/plugin/1688943241214350584/webcapture-to-figma) is free. Capture your page at Desktop 1440, iPad 820 and a phone width, and brief your next responsive Figma code layer properly.\n\nEach capture describes one width. Without the tablet and phone captures, the model has to invent how the layout changes.\n\nYes, by hand in Figma. Code layers cannot be resized from the API, so set each copy's width yourself.\n\nNo. It shows the layout at each captured width. Use your own code's values if you have them, or place breakpoints between the captured widths and test.\n\nYes. Hover states, transitions and keyframe animations play in a code layer. Check whether phone layouts need tap states instead.", "url": "https://wpnews.pro/news/responsive-figma-code-layer-capture-a-page-at-desktop-ipad-and-phone-widths-then", "canonical_source": "https://dev.to/sandeep_virk_31621a43cb7c/responsive-figma-code-layer-capture-a-page-at-desktop-ipad-and-phone-widths-then-brief-the-ai-4a5", "published_at": "2026-11-21 08:04:50+00:00", "updated_at": "2026-11-21 08:12:04.587312+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools", "generative-ai"], "entities": ["Figma", "WebCapture to Figma", "Claude", "ChatGPT", "Crafttor", "Google Chrome"], "also_reported_by": [], "takeaway": "Feeding an AI three labeled captures (Desktop 1440, iPad 820, phone) plus a written change log and a mobile-first instruction prevents it from inventing breakpoints it never saw.", "recommendation": {"advice": "Capture every breakpoint you care about and brief the coding agent with all of them plus a change log, then split the work phone-first and verify each width against a checklist.", "playbook": "coding-agents", "playbook_url": "https://wpnews.pro/playbooks/coding-agents"}, "alternates": {"html": "https://wpnews.pro/news/responsive-figma-code-layer-capture-a-page-at-desktop-ipad-and-phone-widths-then", "markdown": "https://wpnews.pro/news/responsive-figma-code-layer-capture-a-page-at-desktop-ipad-and-phone-widths-then.md", "text": "https://wpnews.pro/news/responsive-figma-code-layer-capture-a-page-at-desktop-ipad-and-phone-widths-then.txt", "jsonld": "https://wpnews.pro/news/responsive-figma-code-layer-capture-a-page-at-desktop-ipad-and-phone-widths-then.jsonld"}}