metaphilabs/frontend-figma-to-code
CREW: Figma to Code A benchmark for evaluating AI coding agents on Figma-to-code generation — converting real-world Figma community designs into production-ready React + Tailwind CSS applications. Each task gives an agent full access to a Figma file via MCP tools. The agent must extract the design system, generate components, build successfully, and deploy a live preview. Outputs are evaluated through human preference (ELO) and automated verifiers.… See the full description on the dataset page: https://huggingface.co/datasets/metaphilabs/frontend-figma-to-code.
# CREW: Figma to Code
A benchmark for evaluating AI coding agents on Figma-to-code generation — converting real-world Figma community designs into production-ready React + Tailwind CSS applications.
Each task gives an agent full access to a Figma file via MCP tools. The agent must extract the design system, generate components, build successfully, and deploy a live preview. Outputs are evaluated through human preference (ELO) and automated verifiers.
## Benchmark at a Glance
## Leaderboard (Human Preference ELO)
Top two agents are statistically indistinguishable (p=0.67, Cohen's h=0.08); both significantly outperform Gemini CLI (p<0.05).
Live leaderboard: evals.metaphi.ai
## Dataset Schema
Each row represents one Figma design task:
## Task Scenarios
Tasks span 7 complexity levels, from single-component extraction to full multi-page applications:
- E-commerce Product Page (12 hrs) — PDP with image gallery, variant selectors, inventory states, cart integration
- Mobile Onboarding Flow (16 hrs) — Multi-step flow with transitions, conditional branching, state management
- Component Set with States (6 hrs) — Variant matrix extraction, typed props, conditional rendering
- Design Tokens to Theme (8 hrs) — Variables, typography, effects → Tailwind config + CSS custom properties
- Multi-Page Webapp (40 hrs) — 5+ pages with routing, shared components, consistent theming
- Animation-Heavy Interface (20 hrs) — Smart Animate → Framer Motion with precise timing choreography
- Messy Enterprise File (24 hrs) — Real-world chaos: inconsistent naming, duplicates, orphaned components
## Data Curation
Sourced from licensing partnerships with enterprises, domain-experts and community dataset curation.
## Evaluation Framework
## Agent Error Recovery
Across 96 runs, agents encountered 590 errors with a 70.3% autonomous recovery rate:
## Usage
from datasets import load_dataset
ds = load_dataset("metaphilabs/figma", split="train")
# Each row contains a Figma file key for API access
for task in ds:
print(task["id"], task["figma_data"]["figma_file_name"])
Citation
@misc{metaphi2026crew,
title={CREW: Enterprise Agent Benchmarks},
author={Metaphi Labs},
year={2026},
url={https://evals.metaphi.ai}
}
Links
- Leaderboard: https://evals.metaphi.ai
- Website: https://metaphi.ai
- Collection: https://huggingface.co/collections/metaphilabs/crew