figma-design-to-code skill for Codex.
The figma-design-to-code skill teaches Codex to implement a Figma design in your codebase: pull context with get_design_context, then adapt it to your stack, components and tokens. It ships in Figma’s plugin for Codex.
Updated November 12, 2026 · 3 min read
At a glance
| Skill name | figma-design-to-code |
| Comes with | The Figma plugin, by Figma |
| Install | codex plugin add figma@openai-curated, or /plugins in Codex |
| Codex uses it | When you ask it to implement, build or port a Figma design as code, before it calls get_design_context |
| Source | openai/plugins on GitHub |
What it does
The skill covers one direction: reading from Figma into code. For building in Figma from code, it points to a different skill.
Its workflow:
- Context first: call
get_design_contexton the target node before writing code.get_metadataandget_screenshotare only for picking a node or checking the result. - Reference, not final code: the tool returns React and Tailwind with hints. Codex adapts it to your language, framework, component library and styling.
- Reuse: it looks for existing components, layouts and tokens in your project and uses them instead of making new ones.
- Hint priority: Code Connect snippets first, then component docs, designer annotations, design tokens, and last, raw hex values and absolute positions.
- Images and icons: render each from its exported asset, never a hand-written SVG or placeholder. Asset URLs expire in about 7 days, so committed code should save the files.
If a Figma link has no node-id, it asks you for a link to a specific node instead of guessing. On a timeout, it retries with a smaller selection.
When to use it
Use it whenever you hand Codex a Figma frame to build. It stops the usual problem of pasted React and Tailwind that ignores the components and tokens your project already has.
Try it
Use the figma-design-to-code skill. Implement this Figma frame as our checkout page: https://www.figma.com/design/FILE/Checkout?node-id=12-345. Reuse our existing Button and Input components and map the colors to our tokens.
Does it work in Claude Code?
Yes, with the Figma MCP server. The SKILL.md has no other files, so you can copy the folder into ~/.claude/skills. It depends on get_design_context from Figma’s MCP server, so connect that server in Claude Code first.