Recreate a UI from a screenshot or image reference with pixel-perfect accuracy. Covers layout, color extraction, typography matching, component fidelity, and validation.
Recreate a UI screen from a screenshot or image reference. The goal is pixel-perfect accuracy — the rendered output should be visually indistinguishable from the source image.
Before writing any code, study the image systematically. Extract every visual detail.
Extract exact colors from the image — do not approximate.
Record all colors as hex values. If the image shows a dark theme, note that explicitly.
Catalog every visible component:
Build the component using the project's existing framework. If the project uses React + Vite, build a React component. If Expo, build a React Native component. Match the stack.
If there is no existing project context, or the user wants a standalone prototype, use the mockup sandbox (see the mockup-sandbox skill). Create the component as a self-contained mockup that can be embedded on the canvas.
Follow these rules with zero exceptions:
Layout fidelity:
Color fidelity:
#1A1A2E is not #1B1B30Typography fidelity:
Component fidelity:
Content fidelity:
Interaction states:
Build a complete, self-contained screen:
After building, compare your output against the source image.
Go through each category and verify:
If any item on the checklist is off, fix it before presenting to the user. Common issues:
For complex screenshots with many components, delegate to a DESIGN subagent:
For multiple screenshots (e.g., recreating several screens of an app), fan out with one DESIGN subagent per screen and coordinate via the canvas.
Dark UIs are not just "white on black." Look for:
#0A0A0F page, #12121A cards, #1A1A26 hover)#A0A0B0 or similar)backdrop-filter: blur(12-24px) with a semi-transparent background