Role
Designer & developer
Users
PMs, engineers and senior stakeholders
Timeline
2025
Stack
Figma Plugin API, TypeScript, Claude API
As the sole designer, I’m a bottleneck. PMs need mockups for stakeholder alignment. Engineers need component specs for edge cases. Marketing needs landing page layouts. Every request flows through me.
But what if anyone could generate an on-brand Figma component by describing what they need in plain English? Not a generic AI design tool, but one that knows the exact design system: our tokens, our component library, our visual language.
So I built it.
How It Works
Describe
The user types a plain-language prompt: “Create a booking confirmation card with check-in date, guest name, and a cancel button.”
Generate
Claude processes the prompt against the component registry. It matches existing patterns, applies the correct tokens, and generates Figma-native output.
Render
The component appears directly on the Figma canvas with the correct colors, typography, spacing, and auto-layout. It’s editable like any native Figma element.
Claude does the composing. The design system decides
The plugin calls the Claude API to turn a prompt into native Figma components. The coded design system decides what Claude is allowed to use. Four steps, from prompt to canvas:
-
01 · Prompt
Describe it
“A booking confirmation card with check-in date, guest name and a cancel button.”
-
02 · Claude API
Compose it
Claude reads the prompt with the 90+ component registry as context and picks which components to compose and how to configure them.
-
03 · Validate
Check it
Claude’s structured JSON is checked against the registry before anything renders, which prevents it from making up components or colors.
-
04 · Figma
Build it
Plugin API calls draw native layers with the right colors, type, spacing and auto-layout. Editable like any other component built in Figma.
The 1:1 sync comes from where the registry lives. It’s derived from the same Tailwind config that powers production, so when the coded system changes, the next generation changes with it. The brain behind it is the existing design system, and the plugin is just the tool that builds with it.
Component registry
The plugin’s intelligence comes from a comprehensive registry of over 90 components. Each component is documented with properties, variants, color mappings, spacing rules, and usage context. When Claude receives a prompt, it matches against this registry to determine which components to compose and how to configure them.
Claude API integration
Prompts are sent to Claude’s API with the full component registry as context. The response is structured JSON that maps directly to Figma’s plugin API calls, such as createFrame, createText, and setFills. This allows for semantic generation of native Figma objects.
1:1 code sync
Because the registry is derived from the same Tailwind config that powers production, generated components use the exact same tokens. What you see in Figma is what gets built. No translation layer, no drift.
Why build instead of buy
There are plenty of AI design tools, but none of them knew our design system. They produce generic interfaces that look plausible but don’t match ours. To actually use their designs, we’d have to redraw them in Figma with our own components and patterns anyway. The value comes from being able to generate with our system’s existing specifications.
Building it myself also meant the tool could evolve alongside the system. With continued maintenance, the more our engineering team and I built out the design system, the more components we could keep adding.
Designing the prompt experience
For anyone using the plugin, a blank prompt box is intimidating, especially since not everyone knows terms like ‘toast’, ‘drawer’ or ‘slider’. I designed the plugin to include examples and starter prompts for common needs, and it suggests prompts based on the current selection. If a result is close but not right, people can iterate in plain language instead of starting over.
Teaching AI to stay on-system
- Invented components. Early versions occasionally made up components or colors that didn’t exist. Constraining generation to the registry, and validating each response against it before rendering, solved most of this.
- Figma’s API realities. Fonts have to load before text can render, and auto-layout behaves differently when built programmatically. Much of the engineering time went into making output feel hand-built rather than generated.
- Keeping the registry current. A stale registry produces stale designs. Deriving it from the same Tailwind config that powers production means the plugin updates when the system does.
Getting the team to actually use it
Rolling it out
I introduced the plugin through short live demos, using real requests, so the first thing the team saw was a component they needed.
Most of the people using it were product managers and engineers, but there were also senior stakeholders, some of whom were less fluent with technical tools. Previewing components in Pick mode, or describing one in plain English, was easier for them.
What we learned
For the first few weeks, I collected feedback through Slack and informal office hours, and kept a running list of prompts that failed. Those failed prompts were the most valuable feedback in the whole project.
We also agreed that anything generated with the plugin that was going to production still came through design review. The plugin removed the waiting, not the judgment, which made it much easier for the team to trust it and adopt it.
What came next
Each failed prompt pointed to a gap in the registry, a missing variant, or an instruction that needed to be more explicit. Fixing them improved the plugin and the design system at the same time.
What I learned
The project changed how I think about my role. As the only designer, my leverage comes less from the screens I make and more from the systems that let other people make good decisions without me. A design system documents the good decisions, and a tool like this puts that system in everyone’s hands.
Impact
Scaling design beyond the designer
This plugin doesn’t replace the designer. It scales design thinking to the whole team. PMs can mock up ideas before requesting design time. Engineers can generate specs for edge cases. The design system stops being a reference doc and becomes a generative tool.
−50%
Design-to-dev handoff time
90+
Components in the registry with full metadata
3
Modes: Pick, Quick Create and Variants