For vibe coders who care about the details
Drop in a screenshot of any web or mobile UI. We measure the exact colours, font sizes, borders, radii and layout — in px, pt or dp — then hand your coding agent a prompt and a theme file it can’t misread.
Free · runs in your browser · nothing uploaded
A model looking at a picture rounds everything to the nearest Tailwind class. Close, but never the design. Six guesses later you’re still saying “make it look more like the image.”
Measured from the sample dashboard in the converter. Try it yourself.
Drop a screenshot
Any PNG or JPEG of the UI you want. Dribbble shot, competitor page, your Figma export. It never leaves your browser.
We measure it
Every surface, border, radius, text colour, font size and weight, read from the pixels themselves and nested into a layout tree.
Your agent builds it
Paste one prompt into Claude Code, Cursor or Windsurf, or call the MCP server from your IDE. No more “make it look more like the picture.”
iPhone, Android & iPad screenshots
Pixel density is detected automatically (@2x, @3x) and every value converted to pt or dp. Status bars and home indicators are ignored. Briefs for React Native, SwiftUI, Flutter and mobile web.
iPhone 15 · @3x → 393 × 852 pt "Airplane Mode" — 17pt regular #000000 "Off" — 17pt regular #8E8E93
Tokens straight into your project
Export the measured palette, type scale, radii and borders as Tailwind, CSS variables, W3C JSON, a React Native theme, SwiftUI or Flutter — or let the MCP server write the file for you.
export const colors = {
background: '#F2F2F7',
surface1: '#FFFFFF',
text2: '#8E8E93',
}One slash command
With the MCP server installed, type /build-from-screenshot and pick a file. Your agent gets the measured brief, builds the screen, then checks its own work.
/mcp__datum__build-from-screenshot design-references/onboarding.png react-native-expo
Your agent checks its own work
The agent screenshots your running app at the same size and density, compares it with the design, and fixes what differs — instead of you saying “closer” six times.
capture_ui_screenshot → 393×852 @3x verify_ui_implementation → 94.3% agreement → correction prompt
Every container with its exact surface, every line of text with its size, weight and colour, nested the way the page is actually built. Plus design tokens your agent can map onto your Tailwind config.
Page — bg #09090B ▣ Top Header Bar [0, 0, 1200, 60] — bg #121215, border 1px #27272A ▣ Control: "Search" [885, 16, 195, 29] — bg #18181B, radius 6px T "Search" — 14px regular #757575 T "ApexMetrics" — 19px bold #FAFAFA ▣ Card [32, 84, 363, 132] — bg #18181B, border 1px #27272A, radius 6px T "Total ARR" — 13px regular #A1A1AA T "$142,850" — 28px bold #FAFAFA T "+14.2% from last month" — 13px regular #22C55E ▣ Card [797, 240, 371, 500] — bg #18181B, border 1px #27272A, radius 6px T "Recent Transactions" — 17px bold #FAFAFA ▣ Card [822, 306, 321, 63] — bg #121215, border 1px #27272A, radius 6px T "Acme Corp" — 16px regular #FAFAFA T "+$2,400" — 13px regular #22C55E
of visible words recovered
local OCR, tuned for UI
of text colours exact
ΔE < 3, sub-pixel aware
of font sizes within ±1px
from glyph geometry
of layout containers found
cards, bars, inputs, tables
Method: 10 reference UIs rendered in Chrome; ground truth read from the live DOM (text, computed colours, font sizes, element boxes) and compared with what the engine extracts from the screenshot alone. The benchmark ships with the code.
The MCP server gives Claude Code, Cursor and friends the same engine. Your agent measures the reference, builds, screenshots its result and compares, until it matches.
Setup Steps for Claude Code
v0.1.0 pinned- 1Run the one-line CLI command in your project terminal.
- 2Place your reference screenshot into design-references/ in your project folder.
- 3Paste the pre-ready prompt below into Claude Code.
- 4Claude autonomously calls inspect_reference_image and builds the exact UI.
${GROQ_API_KEY}) and never written into config files.claude mcp add datum --scope project -- npx -y datum-mcp@0.1.0{
"mcpServers": {
"datum": {
"type": "stdio",
"command": "npx",
"args": ["-y", "datum-mcp@0.1.0"]
}
}
}Browser
- — Web & mobile screenshots → measured prompt
- — Surfaces, type scale, layout tree in px / pt / dp
- — Theme file export (Tailwind, CSS, RN, SwiftUI, Flutter)
- — Runs in your browser, nothing uploaded
Pro
- — MCP server for Claude Code, Cursor, VS Code & more
- — /build-from-screenshot slash command
- — Agent writes theme files into your project
- — Closed-loop verify: agent checks its own build
- — Unlimited screenshots, desktop & mobile
Cancel any time · taxes handled by Paddle
Datum is a tool that measures UI screenshots for AI coding agents. It reads the exact colours, font sizes, font weights, borders, corner radii and layout from the pixels of a screenshot and turns them into a prompt that Claude Code, Cursor or any other coding agent can follow to rebuild the UI accurately.