CoolFace
Datasetpublic

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.

sourceHugging Facemitupdated 6mo agoView on Hugging Face
0likes39downloads
Dataset Card

# 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

Tasks37 real Figma community designs
Agents testedClaude Code (Opus 4.6), Codex (GPT-5.2), Gemini CLI (3.1 Pro)
Total runs96 autonomous agent executions
Human evaluations135 pairwise preference votes
Primary metricHuman Preference ELO (Bradley-Terry)
Task duration6–40 expert-hours equivalent per task

## Leaderboard (Human Preference ELO)

RankAgentModelELO95% CIWin %
1CodexGPT-5.21054[1005, 1114]56.8%
2Claude CodeOpus 4.61039[987, 1093]55.1%
3Gemini CLI3.1 Pro907[842, 965]31.1%

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:

ColumnTypeDescription
idstringUnique task identifier
figma_data.figma_file_keystringFigma file ID for API access
figma_data.figma_file_urlstringFull Figma URL
figma_data.figma_file_namestringDesign name/title
figma_data.is_siteboolWhether design is a Figma Site
descriptionstringDesign context and task description

## Task Scenarios

Tasks span 7 complexity levels, from single-component extraction to full multi-page applications:

  1. 1.E-commerce Product Page (12 hrs) — PDP with image gallery, variant selectors, inventory states, cart integration
  2. 2.Mobile Onboarding Flow (16 hrs) — Multi-step flow with transitions, conditional branching, state management
  3. 3.Component Set with States (6 hrs) — Variant matrix extraction, typed props, conditional rendering
  4. 4.Design Tokens to Theme (8 hrs) — Variables, typography, effects → Tailwind config + CSS custom properties
  5. 5.Multi-Page Webapp (40 hrs) — 5+ pages with routing, shared components, consistent theming
  6. 6.Animation-Heavy Interface (20 hrs) — Smart Animate → Framer Motion with precise timing choreography
  7. 7.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

VerifierTypeMethod
Human PreferenceSubjectivePairwise comparison → Bradley-Terry ELO
Visual JudgeSubjectiveVLM screenshot comparison (design vs. output)
Skill VerifierSubjectiveTask-specific rubrics (build, tokens, components, fidelity)
Behavior VerifierSubjectiveAgent trajectory analysis (error recovery, tool usage)

## Agent Error Recovery

Across 96 runs, agents encountered 590 errors with a 70.3% autonomous recovery rate:

Error TypeCountRecovery
Tool call failure41966.3%
Git error6475.0%
Syntax error3390.9%
Build error11100.0%

## Usage

python
  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