name: figma-to-production-ui description: Use when translating Figma designs into production UI code while preserving visual fidelity, responsive behavior, accessibility, and the conventions of the existing frontend codebase.
Figma To Production UI
Goal
Implement a Figma design as production UI, not as a static screenshot. Preserve the intended layout, interaction states, and project conventions.
Workflow
- Gather design context.
- Inspect frame size, component hierarchy, typography, colors, spacing, and states.
- Export only the assets that must be real bitmaps.
- Map to the codebase.
- Reuse existing components, tokens, icons, and layout primitives.
- Avoid adding a new design system unless the project already has one.
- Implement responsively.
- Define stable dimensions for fixed-format controls.
- Prevent text overlap and layout shifts.
- Keep mobile and desktop behavior explicit.
- Verify visually.
- Open the local app in a browser.
- Capture desktop and mobile screenshots.
- Compare important spacing, alignment, typography, and asset rendering.
- Finalize.
- Run relevant tests, linting, or build checks.
- Document any intentional differences from Figma.
Quality Bar
- no overlapping text or controls
- no blank image or canvas regions
- no broken responsive states
- accessible labels for icon-only controls
- real user workflow visible on the first screen
Common Failure Modes
- copying Figma dimensions without adapting to the existing layout system
- using decorative cards where the product needs a dense tool interface
- implementing only the default state and missing hover, disabled, empty, or error states
- using screenshots as UI instead of real controls