AI coding agents ship UI fast — but fast isn't correct. Wrong tokens, missing states, off-by-4px padding. DesignDiff verifies that AI-generated interfaces match your design system before they reach production.
When you ask Claude Code or Cursor to build a component from Figma, the agent reads the spec and writes code that looks correct. But it typically hardcodes a color value (#2563EB) instead of referencing the token (var(--brand-blue)), gets padding off by a few pixels, and skips interactive states in Figma variants it didn't fully parse.
The component looks fine visually. That's what makes this dangerous. Errors only surface when a brand refresh doesn't propagate, a keyboard user can't navigate, or an accessibility audit fails.
The same drift happens when developers implement manually, when designs change after code ships, and when tokens get renamed. It compounds silently across every PR.
DesignDiff is an MCP server — a verification tool that runs inside your AI agent. After the agent generates a component, it calls DesignDiff to check the output before the code lands in a PR.
brand-blue to color-primary. Components using old names fall back to hardcoded values — until the next brand refresh.Today DesignDiff scores rendered parity. The goal is a single score across five verification dimensions — one number CI gates, managers, and developers all understand without translation.
&:hover { background: var(--brand-blue-700) }
Runs inside your existing AI agent. No new dashboard, no browser extension. Human review focuses on product decisions, not token drift.
node_id. Extracts exact pixel values, token references, and every interactive state variant. URL-encodes node IDs correctly — a common agent mistake that causes silent 404s.One config entry. Your agent verifies every component it generates or modifies. Works best with Storybook, local preview routes, or any stable component URL your agent can reach.
The core engine ships now. Each new tool adds another dimension to the quality score — another check AI-generated code passes before it ships.
It reads Figma, renders the live component, compares computed browser output, and returns patch-ready fixes inside your coding agent.