Where you are

Design handed over a screenshot, but you need code: layout, spacing and responsiveness must be editable.

Why the usual approaches fail

  • model writes the whole page: unmaintainable structure
  • measuring pixels: breaks on other screens
  • visuals only: interactions and states missing

Three paths

PathGood forCost
Manualone-off1–2 hours
Prompt onlyquick fixunstable, needs retries
skillweekly repetitioninstall once, stable after
  1. Use code-to-design to recover structure
  2. Map it onto the existing component library
  3. Record tokens and rules with design-md
  4. Check responsiveness per breakpoint; add hover and empty states

Acceptance criteria

  • structure is readable and editable
  • existing components reused
  • responsive and stateful
  • code-to-design — Turn existing frontend code back into design screens and specs.
  • design-md — Write an actionable DESIGN.md so agents generate consistent interfaces.