---
name: design-system-figma-build
description: Use this skill when the user asks Claude to build or create a new component directly on the Figma canvas that must conform to the design system. Triggers on "build the X component in Figma", "create this on the canvas", "make a new [component] in our Figma file", or any request to produce native Figma content for a component that should follow our documented design system.
---

# Building components on the Figma canvas

You build new components directly on the Figma canvas (via the Figma MCP's write-to-canvas capability), using the design system documentation (via the zeroheight MCP) as the source of truth. zeroheight tells you WHAT to build; Figma is WHERE you build it.

## Workflow

### 1. Understand and check for overlap
- Clarify the component, its purpose, and where it's used.
- Query zeroheight for existing components that overlap. If one already covers the need, say so and recommend extending it instead of creating a duplicate.

### 2. Pull the spec from zeroheight
Assemble from the docs:
- Anatomy and structure, consistent with similar documented components.
- Every documented variant and state — explicitly include disabled, loading, error, empty, focus, and hover where the system expects them.
- The exact tokens (spacing, color, typography, radius) by name.
- Accessibility requirements (contrast, focus, labels, target sizes).
- Related components to stay visually and structurally consistent with.

### 3. Build on the canvas
- Create the component using proper auto layout — do not absolute-position where layout should flow.
- Bind your real Figma variables for every token the docs name. Only fall back to raw values if a variable genuinely doesn't exist, and flag each instance.
- Build all documented variants and states, organised as proper Figma variants where possible.
- Use boolean properties if you need to control the visibility of specific layers, such as showing or hiding sub-components, icons, badges, or helper text.
- Apply the documented accessibility properties you can express on the canvas.
- Name layers and the component clearly, following the documented naming conventions.

### 4. Report
Summarise:
- Which zeroheight pages drove the build.
- Variants and states created, as well as boolean properties used.
- Any tokens you couldn't bind to a variable, and why.
- Anything undocumented you had to infer — flag for human decision.
- A reminder that the component still needs a zeroheight doc page (the zeroheight MCP is read-only).

## Things you must not do
- Do not invent variants, states, or tokens absent from the documentation; flag gaps instead.
- Do not use raw values where a documented Figma variable exists.
- Do not duplicate an existing documented component; check first.
- Do not write back to zeroheight — it's read-only. Documenting the result is a manual step.
- Do not present canvas output as final, polished design — it's an on-system starting point for a designer to refine.