Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

figma-ui

Skill by mercurjs

Converts a Figma design into React code for the Mercur admin or vendor dashboard. It is for developers in the mercurjs repo who want new pages to match the existing design system.

  • Score 87
  • 1.9k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install figma-ui

Built from the published package, never by AI.

git clone --depth 1 https://github.com/mercurjs/mercur /tmp/mercur && mkdir -p ~/.claude/skills && cp -r /tmp/mercur/.claude/skills/figma-ui ~/.claude/skills/figma-ui

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install figma-ui in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

figma-ui is an agent skill that turns a Figma design into dashboard UI code for the Mercur admin (packages/admin) or vendor (packages/vendor) panel. It reads the design through the Figma MCP, mainly from a screenshot, and maps each region onto the shared component inventory, spacing scale and structural patterns before writing JSX. The skill asks for the surface and page type when the design does not make them clear.

The skill is aimed at developers working in the mercurjs repository who need new list, detail, create or edit pages that look like the existing ones. Its references cover components, spacing and color tokens, and recurring patterns. It also says what not to do, such as using raw inputs, foreign UI libraries or hardcoded colors.

Written from the project's SKILL.md and checked against it.

What it can do

  • get_screenshotReads the rendered Figma frame to get visible text, component variants, density and spacing.
  • get_metadataGives a structural outline of layers to confirm the page archetype and reading order.
  • Component mappingMaps Figma elements to @mercurjs/dashboard-shared and @medusajs/ui primitives using the component inventory.
  • Spacing and token mappingTranslates Figma spacing and colors onto the project's spacing scale and Medusa UI tokens.
  • Pattern rulesApplies structural rules for section shells, create and edit hosts, forms, delete actions and i18n keys.
  • Surface and archetype checkAsks whether the page is admin or vendor and whether it is a list, detail, create or edit page.

What you need

  • Figma MCP access
  • A checkout of the mercurjs repository with packages/admin or packages/vendor
  • bun to run lint and build

Try asking

  • Convert this Figma frame into a vendor list page
  • Implement this design in packages/admin as a create form
  • Turn this mockup into a detail page using the existing section shells

Good to know

  • It does not lint code itself and relies on bun run lint and bun run build.
  • It does not invent backend endpoints or data models.
  • It is design-to-code only and does not write back to Figma.
  • It does not add new UI or icon libraries.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/figma-ui/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md8 KB
  • references/components.md9 KB
  • references/patterns.md6 KB
  • references/spacing.md4 KB

Alternatives to figma-ui

All alternatives →
paperbananadwzhu-pku
94

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.

AAA Skill 7.7k
technical-wireframe-info-layoutMengTo
94

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.

AAA Skill 8.5k
spline-3d-integrationsickn33
94

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.

AAA Skill 50k
code-slice-heroheygen-com
94

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.

AAA Skill 92k
patentfigdavila7
94

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.

AAA Skill 34k
framed-tech-dark-border-gradientMengTo
94

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.

AAA Skill 8.5k

Compare with paperbanana, technical-wireframe-info-layout or spline-3d-integration

figma-ui: common questions

Which Figma tools does figma-ui use?

It uses get_screenshot as the main source and get_metadata for structure. It says it does not depend on get_variable_defs or get_design_context.

Which dashboards does figma-ui generate code for?

It generates code for the Mercur admin panel in packages/admin and the vendor panel in packages/vendor.

What does figma-ui do when the Figma frame name does not match the screen?

It trusts the screenshot over the frame name and tells the user about the mismatch.

How do I install figma-ui?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is figma-ui free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is figma-ui safe to use?

It scores 87 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to figma-ui?

Similar skills: paperbanana, technical-wireframe-info-layout, spline-3d-integration, code-slice-hero.

figma-ui Install

Add to stack

Loading.