design.figma-to-code
Skill by safe-global
Implements a Figma design from a URL as React code using shadcn/ui components. It is for developers who convert Figma frames into components and Storybook stories in the Safe web project.
Install design.figma-to-code
Built from the published package, never by AI.
git clone --depth 1 https://github.com/safe-global/safe-wallet-monorepo /tmp/safe-wallet-monorepo && mkdir -p ~/.claude/skills && cp -r /tmp/safe-wallet-monorepo/.agents/skills/design.figma-to-code ~/.claude/skills/design-figma-to-codeRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/safe-global/safe-wallet-monorepo /tmp/safe-wallet-monorepo && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/safe-wallet-monorepo/.agents/skills/design.figma-to-code ~/.gemini/antigravity-cli/skills/design-figma-to-codeAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install design.figma-to-code in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
Figma to Code is an agent skill that implements a Figma design at a given URL using shadcn/ui components. It parses the file key and node ID from the Figma URL, then calls Figma remote MCP tools to fetch design context, a screenshot, metadata and variable definitions. The skill maps Figma text styles to Typography variants and checks data-name attributes to pick the right component type, rather than guessing from visuals.
The skill then builds a typed React component that imports from the existing shadcn/ui folder and creates Storybook stories next to each component. It ends with type-check and Storybook commands for the web workspace. The paths and commands are specific to the Safe monorepo, so it is written for developers working in that codebase.
Written from the project's SKILL.md and checked against it.
What it can do
- get_design_contextFetches the design context for a Figma node, requested for TypeScript and React with Next.js.
- get_screenshotGets a screenshot of the Figma node.
- get_variable_defsGets variable definitions, used to map Figma text styles to Typography variants.
- get_metadataGets metadata for the Figma node.
- Component type analysisChecks data-name attributes to identify Tabs, Switch, ToggleGroup or Select components.
- React component buildBuilds a typed React component using installed shadcn/ui components and Typography.
- Storybook storiesCreates story files next to each component, including one per subcomponent on screens.
What you need
- Figma remote MCP server with access to the Figma file
- Yarn workspace of the Safe web app for type-check and Storybook commands
- Storybook for the story files
Try asking
- Implement this Figma design with shadcn/ui: https://figma.com/design/...
- Convert this Figma node to a React component with typed props.
- Create Storybook stories for each subcomponent of this Figma screen.
Good to know
- Uses only the shadcn/ui components already installed in the project.
- Paths and commands are specific to the Safe monorepo layout.
- Ignores pixel values in generated code by design.
Security check
B- Allowed to use Write, Edit, Bash without limitsIn
SKILL.md
Checked automatically: .agents/skills/design.figma-to-code/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: mcp__figma-remote-mcp__get_design_contextmcp__figma-remote-mcp__get_screenshotmcp__figma-remote-mcp__get_variable_defsmcp__figma-remote-mcp__get_metadataReadWriteEditBashGlobGrep
-
SKILL.md6 KB -
reference.md6 KB
Alternatives to design.figma-to-code
All alternatives →PaperBanana generates publication-quality academic diagrams from a paper's methodology text and figure caption. It is aimed at researchers preparing figures for venues such as NeurIPS, ICML, and ACL.
Creates a monochrome technical wireframe design system for dark diagnostic interfaces. It covers layout, typography, info labels, widgets and an exploded wireframe centerpiece. It is for designers and developers building teardown, systems dashboard or specification-style screens.
Guides an AI assistant through embedding interactive Spline.design 3D scenes in web projects. It covers vanilla, React, Next.js, Vue and iframe setups, for developers adding 3D to websites.
Code Slice Hero is a HyperFrames headline block. A tiled surface flips cell by cell to reveal a second headline behind the first, at 1920×1080 and 8 seconds.
Generates patent-office-compliant figures and converts drawings through the PatentFig AI API. Built for patent filers who need USPTO or EPO line art, CAD-ready vectors, or filing-ready TIFF, PDF, or PNG files.
Creates a framed dark technical design system for AI assistants, using border-gradient shells, asymmetrical grid panels, and mono labels. Suited to premium, instrument-like interfaces that need visible boundaries. Published by MengTo.
Compare with paperbanana, technical-wireframe-info-layout or spline-3d-integration
design.figma-to-code: common questions
Which Figma tools does this skill use?
The skill lists get_design_context, get_screenshot, get_variable_defs and get_metadata from the figma-remote-mcp server.
Which UI components can the generated code use?
The source says to import shadcn/ui components from packages/views/src/components/ui/ and to avoid other components.
How does the skill handle text styling?
It requires the Typography component with variants for all text and forbids hardcoded Tailwind text classes.
How do I install design.figma-to-code?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is design.figma-to-code free?
The code is published under the GPL-3.0 licence. The service it connects to may have its own pricing.
Is design.figma-to-code safe to use?
It scores 79 of 100. Grades: maintenance A, licence C, quality A. Security check: grade B (allowed to use write, edit, bash without limits). Review the code before you install. How grades work.
What are alternatives to design.figma-to-code?
Similar skills: paperbanana, technical-wireframe-info-layout, spline-3d-integration, code-slice-hero.
