Figma to Pixel-Perfect Code
Connect the Figma MCP and let Devin extract design tokens, build components, and visually verify the result against your mockups.Connect the Figma MCP
Before Devin can read your designs, it needs access to your Figma files via the Figma MCP. Once connected, the MCP is available to everyone in your organization — any team member can link Figma files in their Devin sessions.
- In Figma, click your profile icon > Settings > Security
- Under Personal access tokens, click Generate new token
- Give it at least read permissions on File content and Dev resources
- Copy the token
- In Devin, go to Settings > MCP Marketplace, find Figma, and click Enable
- Paste your token when prompted
Share a design link and prompt Devin
Paste a Figma file URL into your prompt along with what you want implemented. Be specific about which frames to build and which parts of your codebase to use.What makes a good Figma prompt:
- Link the specific Figma file (not just the project)
- Name the exact frame or page within the file — large files can have dozens of pages
- Reference your existing component library and CSS framework
- Mention where design tokens live (e.g.,
tailwind.config.ts,src/tokens/) - Specify the target file path for new components
src/app/” or “we use Radix UI primitives”), give Devin that feedback and it will propose saving it as Knowledge automatically — so you don’t have to repeat it next time.Devin extracts, builds, and verifies
Devin reads the Figma file through the MCP, maps design properties to your codebase, implements the components, and then opens the browser to visually check the result.
- Reads the Figma file — Pulls the component tree, design tokens (colors like
#6366F1, spacing like24px), typography (Inter, 18px/28px, 500 weight), and auto-layout properties from the specified frame - Maps tokens to your system — Matches Figma colors to your closest Tailwind tokens (e.g.,
#6366F1→indigo-500) and uses your spacing scale instead of hardcoding pixel values - Builds the components — Creates React components that follow your existing patterns, reusing shared components like
<Card>and<Button>where the design matches - Checks it in the browser — Starts your dev server, navigates to
localhost:3000/pricing, and visually compares the result against the Figma design at multiple viewports - Captures screenshots and screen recordings — Devin takes full-page screenshots at desktop, tablet, and mobile breakpoints, and records a screen recording scrolling through the page and interacting with hover states. It shares these directly in the session so you can verify the result visually — no need to pull the branch and run it yourself.
- Shares proof everywhere — Devin attaches the screenshots and recordings to the PR so reviewers can see the visual result without checking out the code. If you have Slack connected, Devin can also post them to a channel so your design team can review without leaving Slack.
- Opens a PR — Submits the implementation with visual proof attached alongside the code changes
Review the PR with Devin Review
Once Devin opens the PR, use Devin Review to review the implementation. Devin Review can catch visual mismatches, missing responsive breakpoints, and components that don’t follow your design system.If anything needs adjusting — spacing is off, a hover state is missing, colors don’t match — leave a comment directly on the PR and Devin will address it. No need to open a new session or write a separate prompt.
