Skip to content
landingpageprompts

UI design · CC BY 4.0

Turn a Figma component into a handoff spec

Document component states, tokens, layout, interactions and edge cases for implementation.

By ai-prompt-library-team

Download prompt

Copies include creator credit and license links.

The prompt

Write a developer handoff spec for this Figma component.

Component: {component_name_and_purpose}
Variants/states: {variants_and_states_description, e.g. "default, hover,
pressed, disabled, and an error state with a red border and helper text"}
Auto layout settings: {auto_layout_details, e.g. "horizontal, 12px gap,
16px/24px padding, hug contents width, fixed height"}
Design tokens used: {tokens_used, e.g. "color-action-default for
background, spacing-3 for gap, type-scale-sm for label text"}
Responsive behavior (if any): {responsive_behavior_description}

Produce a handoff document with these sections:

1. Overview — one sentence on what the component is and where it's used.
2. States/variants table — every state listed, with what visually changes
   in each (color, border, opacity, icon) referencing TOKENS where one
   exists, not raw hex/px values duplicated from the design tool.
3. Layout & spacing — exact padding, gap, and sizing behavior (fixed vs.
   hug vs. fill), described precisely enough to implement without opening
   Figma.
4. Interaction behavior — what triggers each state transition (hover,
   focus, click, disabled condition), and any transition/animation timing
   if specified.
5. Edge cases — how the component behaves with unusually long text
   content, in an empty/loading state if applicable, and at minimum/
   maximum size constraints — these are the details most often left
   undocumented and discovered only during implementation.

If any of the requested information wasn't provided, state what's missing
rather than inventing a plausible-sounding value — a developer relying on
a fabricated spacing value is worse off than one told to go check Figma
directly for that one detail.

Source & permission

Original prompt in Awesome AI Prompt Library ↗

ai-prompt-library-team. Licensed under Creative Commons Attribution 4.0. Read the source license.

Changes: Prompt text unchanged. Extracted from the source document; title and usage guidance added by LandingPagePrompts.

You may share and adapt this prompt, including commercially, under its license. Retain the creator credit, source and license links, and identify your changes. No creator endorsement is implied.

Browse all community prompts →