Figma Mockup Builder
A portable method for building UI mockups in Figma that look like they belong in the product — not generic boxes. It is design-system-agnostic: plug in your brand font, colors, and component library (see Configure for your system).
One rule above all: match before you invent. If a real screen or a design system already exists, mirror it exactly before adding anything new.
1. Pull the reference first
Before drawing anything, capture what you're matching:
- If a live app/screen exists: get its exact font family, colors
(text, brand/primary, borders, surfaces), border radius, spacing, and —
critically — every field/section. Don't approximate; read the real values.
- With the Figma MCP + an existing Figma file:
get_variable_defsfor tokens,get_screenshotof a representative screen for layout,get_metadatafor structure. - From a running web app: screenshot it and read the CSS variables / component source for the font and token values.
- With the Figma MCP + an existing Figma file:
- List every field on the reference screen and reproduce all of them. A "create" or "edit" form is only done when it has the same inputs as the real one.
2. Reuse the design system — don't hardcode
- If your team has a published component library, enable it and insert its components (buttons, inputs, dropdowns, rows) and apply its variables (colors, spacing, radii) and styles (type, shadow). Don't rebuild tokens.
- Only build locally what the library lacks; name those consistently and consider contributing them back.
- With the Figma MCP:
get_libraries→search_design_system(scope withincludeLibraryKeys) → import by key and instance; prefer instances over hand-drawn frames.
3. File & page structure
Give each file a predictable spine (add pages as the work grows):
Cover / Thumbnail → Design → Design System → Components → Icons → Moodboard → Playground (scratch) → Archive.
- One primary Design page for finished screens; keep WIP on Playground; retire old work to Archive (don't delete).
- A Cover is a branded title card (brand panel + project name + one-line description); a lightweight alternative is a Thumbnail (brand-color block + project acronym).
4. Tokens & styles
- Tier your tokens:
Brand(raw primitives) →Alias(semantic roles) →Theme(applied). Design against the semantic aliases, not raw values. - Type scale:
Heading 1–3+Body L / M / S / XS(or your own ramp). - Semantic colors:
Primary,Neutral,Success,Error,Warning,Information,White(define Primary first). - Elevation: a
Shadowstyle, or a size scale (xs / sm / md / lg). - Canvas: a light neutral background (e.g.
#F5F5F5) unless the product differs. - Icons: one consistent icon set — don't mix libraries.
5. Layout, lines & naming
- Auto-layout everywhere children relate (stacks, rows, cards, forms). Lay screens left-to-right in flow order.
- Sharp, clearly visible grid/border lines — not faint hairlines that disappear. Panels, dividers and inputs should read as a crisp grid.
- Name screens for what they are (
Create: Carrier,Dashboard); useScreen — Statefor variants (Dashboard — Empty). Domain terms are fine. - Componentize repeats: build a reusable element once, place instances; don't ship a flat tree of near-identical frames.
- No leftovers: no stray
Frame 1,Page N, or AI-prompt text on anything final.
6. Build with the Figma MCP (if available)
create_new_file(or target an existing file) →create_session.- Discover the design system (
get_libraries,search_design_system). - Build incrementally with
use_figma: wrapper → sections → instances + tokens. Return node IDs from each call; take one composition screenshot to verify. - Match the reference's font and tokens exactly; include every field.
No Figma write tools? Deliver a structured spec instead — pages, screen names, the full field list, styles, and which components to use — so a designer can build it.
Configure for your system
Fill these in once and the method produces on-brand output:
| Setting | Your value |
|---|---|
| Brand / primary color | #______ |
| Neutral text / border colors | #______ / #______ |
| Font family | __________ |
| Corner radius | __ px |
| Component library (name/key) | __________ |
| File/page spine (if different) | __________ |
Checklist
- Reference pulled: font, colors, radius, spacing, and every field captured.
- Design-system components/variables reused (not hardcoded) where available.
- Page spine in place; WIP on Playground, old work in Archive.
- Token tiers + type scale + semantic colors applied.
- Auto-layout used; grid/border lines are sharp and visible.
- Screens named descriptively;
Screen — Statefor variants; repeats componentized. - No stray
Frame 1/Page N/ prompt text; one verification screenshot taken.