recreate-screenshot

Recreate UI screens from screenshots with pixel-perfect layout, color, and typography fidelity.

Updated Apr 20, 2026
One-click install
npx skills add https://github.com/AmirEmad11/instabot --skill recreate-screenshot-amiremad11
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: recreate-screenshot
Source: https://github.com/AmirEmad11/instabot/tree/main/.local/secondary_skills/recreate-screenshot
Command: npx skills add https://github.com/AmirEmad11/instabot --skill recreate-screenshot-amiremad11

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Turning a screenshot or design mockup into working code usually involves tedious manual measurement of colors, spacing, and typography, often resulting in implementations that only vaguely resemble the original. This Skill provides a structured three-phase workflow (analyze, build, validate) to reproduce a UI from an image with pixel-perfect accuracy. ## Core Features & Use Cases - Systematic Visual Analysis: Extracts exact hex colors, typography scales, spacing systems, and a full component inventory from the reference image before any code is written. - Fidelity-First Construction Rules: Enforces exact layout, color, typography, component, and content matching, including hover, focus, and scroll interaction states. - Validation Checklist & Iteration: Compares the rendered output against the source image with an 11-point visual checklist and guidance for fixing common mismatches. - Use Case: A user pastes a Dribbble shot of a dark-themed dashboard and asks to recreate it. The Skill extracts the layered dark backgrounds, accent colors, and card structure, then builds a matching React component and verifies it against the checklist. ## Quick Start Recreate the UI from this attached screenshot as a pixel-perfect component in my project.

Frequently Asked Questions about recreate-screenshot

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I recreate a UI from a screenshot in code?

Analyze the screenshot first by extracting exact hex colors, font sizes and weights, spacing values, and a component inventory. Then build the component matching layout, colors, and content exactly, and validate the result against a visual checklist before presenting it.

How to convert a design mockup image into a React component?

Match the project's existing stack, such as React with Vite, and build a self-contained screen component. Define extracted colors as CSS custom properties, use Google Fonts or the closest typeface match, and use lucide-react icons for the closest icon equivalents.

When should I not use screenshot-based UI recreation?

Avoid it when you want a functional app merely inspired by a design, when cloning a live website by URL, when redesigning an existing component, or when the UI is described only in words without any reference image.

Why does my recreated UI not match the screenshot colors?

Color mismatches usually come from approximating instead of extracting exact hex values from the image. Re-examine the source, record every background, text, border, and accent color as hex, and avoid substituting visually similar values.

How do I handle dark mode UI recreation from an image?

Dark UIs use layered backgrounds rather than pure black, subtle 1px borders at low white opacity, muted text colors instead of pure white, and low-opacity accent glows. Extract each layer's hex value separately and note the dark theme explicitly.