Your design file is
source code.
Connect your AI IDE to Figma in two commands. CalibrateDS gives Claude Code, Cursor, and Windsurf 22 live tools to scan, implement, verify, and ship components — without you leaving the chat.
npm install -g @calibrate-ds/cliYour AI IDE, now design-system aware.
One connection. Your assistant gains live access to variant axes, token bindings, state contracts, freshness state, and pixel-diff verification — everything it needs to write production code on the first attempt.
Up and running in three steps
Init your project
Run ptb init — it creates ptb.config.json, prompts for your Figma file key, and stores your access token once for both CLI and MCP.
npm install -g @calibrate-ds/cli
ptb init
ptb token set figd_xxxxxxxxxxxxScan your design file
PTB fetches your Figma file and normalises it into a structured model — component variants, token bindings, state contracts, layout trees.
ptb scan
ptb generate-tokens
ptb generate-componentsLet your AI IDE drive
Run ptb mcp setup, open your AI IDE, and ask it to implement, verify, or diff any component. It has live access to every design decision.
ptb mcp setup
// Then in Claude Code / Cursor:
"Implement the Button component"Design drift, caught before it ships
Every component has a designHash. When Figma changes, CI fails the PR. No more "this button looks different in prod."
22 MCP tools, one connection
Inspect, implement, verify, stamp, diff, and query your design system — all from your AI IDE chat. The terminal is optional.
You own the output
No vendor lock-in. Pure React + TypeScript + CSS Modules. The generated code is yours — PTB just ensures it stays in sync with design.