Skip to main content

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

01The problem

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.”

ElementAgent guessesWe measure
Card backgroundbg-zinc-900#18181B
Card borderborder-gray-8001px solid #27272A
Corner radiusrounded-lg6px
Metric labeltext-sm text-gray-40013px · regular · #A1A1AA
Metric valuetext-3xl font-bold28px · bold · #FAFAFA
Card position“three cards in a row”[32, 84, 363, 132] ×3, 24px gap

Measured from the sample dashboard in the converter. Try it yourself.

02How it works

i.

Drop a screenshot

Any PNG or JPEG of the UI you want. Dribbble shot, competitor page, your Figma export. It never leaves your browser.

ii.

We measure it

Every surface, border, radius, text colour, font size and weight, read from the pixels themselves and nested into a layout tree.

iii.

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.”

03Every day

Mobile

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
Theme files

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',
}
Claude Code

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
Verify loop

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
04The output

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.

prompt.md · section 4A
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
05Accuracy

93.9%

of visible words recovered

local OCR, tuned for UI

98.6%

of text colours exact

ΔE < 3, sub-pixel aware

93.1%

of font sizes within ±1px

from glyph geometry

89.9%

of layout containers found

cards, bars, inputs, tables

iPhone @3x98.2% words98.8% font sizes ±1pt96.3% text colours exact100% devices detected

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.

06In your IDE

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
  1. 1Run the one-line CLI command in your project terminal.
  2. 2Place your reference screenshot into design-references/ in your project folder.
  3. 3Paste the pre-ready prompt below into Claude Code.
  4. 4Claude autonomously calls inspect_reference_image and builds the exact UI.
Target Config File:
.mcp.json (project root) or ~/.claude.json (user)
Claude Code uses .mcp.json for project scope and ~/.claude.json for user scope.
Secret Safety: Commit config files without secrets. Model keys are referenced via environment variables (${GROQ_API_KEY}) and never written into config files.
One-Line CLI Install
claude mcp add datum --scope project -- npx -y datum-mcp@0.1.0
Configuration Snippet (.mcp.json)
{
  "mcpServers": {
    "datum": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "datum-mcp@0.1.0"]
    }
  }
}
Pre-Ready Prompt for your AICopy & paste directly
“Inspect design-references/login.png using the datum tools. Extract the exact pixel dimensions, dominant color hexes, OCR copy, and font style, and implement this UI component in React with Tailwind CSS.”
Tip: Paste this directly into Claude Code chat once you add your screenshot.
Pinned: v0.1.0
07Pricing

Browser

$0forever
  • — 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
Start converting
Most popular

Pro

$9/ month
  • — 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
Get Pro — $9 / month

Cancel any time · taxes handled by Paddle

08Questions

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.


Convert your first screenshot