Build a homepage from Figma designs via MCP

In Part 27 of my project to build the biggest online archive of the Rotis font, I try integrating Figma directly with Cursor with great results. Task: The author integrated Figma MCP with Cursor to convert design elements into HTML/CSS code. The workflow involved setting up a local Git repository synced with GitHub, selecting design content in Figma Dev Mode, and pasting the URL into a Cursor prompt. The human role included verifying the generated code, which Cursor highlights for traceability, and deciding whether to keep or regenerate it.; tools: Cursor. Human role: The original post does not say how a person stayed involved.; limitations: The initial attempt with Claude Code was rejected due to a $17/month pro plan requirement, leading to the use of Cursor's free trial. The workflow depends on the availability of web fonts; proprietary fonts like Rotis may not render correctly without proper licensing or web font support. Integration requires setting up Git repositories and configuring MCP connections..

Tools

Cursor

Published on Agent Work Atlas:

Overview

In Part 27 of my project to build the biggest online archive of the Rotis font, I try integrating Figma directly with Cursor with great results

Workflow

The author integrated Figma MCP with Cursor to convert design elements into HTML/CSS code. The workflow involved setting up a local Git repository synced with GitHub, selecting design content in Figma Dev Mode, and pasting the URL into a Cursor prompt. The human role included verifying the generated code, which Cursor highlights for traceability, and deciding whether to keep or regenerate it.

Reported result

The generated code accurately captured colors, layout, and button hover states, outperforming previous attempts with static images. However, it failed to render the specific Rotis font and weights, likely due to the font not being available as a free web font. The author noted that further tweaking was required despite the promising initial output.

Human role

The original post does not say how a person stayed involved.

Limitations

The initial attempt with Claude Code was rejected due to a $17/month pro plan requirement, leading to the use of Cursor's free trial. The workflow depends on the availability of web fonts; proprietary fonts like Rotis may not render correctly without proper licensing or web font support. Integration requires setting up Git repositories and configuring MCP connections.

Try it

Act as a frontend developer integrating Figma designs with Cursor via MCP. 1. **Setup**: Ensure a local Git repository is initialized and synced with GitHub. Open this repository in Cursor. 2. **Input**: In Figma, switch to 'Dev Mode'. Select the specific design component [replaceable: e.g., 'Homepage Hero Section']. Copy the component URL. 3. **Generation**: Paste the URL into Cursor with the prompt: 'Convert this Figma design into responsive HTML and CSS. Ensure hover states are included.' 4. **Verification**: Review the code highlighted by Cursor. Check for accurate color, layout, and interaction states. 5. **Font Check**: Verify if the specified font [replaceable: e.g., 'Rotis'] renders correctly. If not, note the issue and suggest a fallback or web font alternative. 6. **Dry Run**: Before finalizing, run a local server to preview the HTML/CSS. 7. **Human Approval**: Do not commit or deploy until I explicitly confirm the visual output matches the design. If errors occur, regenerate the code with specific feedback. Deliverables: A single HTML file and a CSS file. Success metric: Visual fidelity to the Figma design, excluding font issues if the font is not web-available.

Original source

Source reports are not independently verified. Publication date is the catalog publication date, not the original article date.

More cases · Software & development