UI DNA
Every interface has a blueprint.
UI DNA reads it. Your agent rebuilds it.
X x-ray this page → next sheet
- Transitions replayed
- 73/73 Fixture A
- Pixel diff at 1280 px
- 0.66 % Fixture A
- Breakpoints located
- 600 · 960 · 1100 Fixture B
- Generated tests passed
- 111/111 Fixture B
- Writes to the server
- 0 Fixture B
02 Capture
Taken apart.
Five layers per state, at every viewport.
| Viewports | 1280 · 768 · 390 |
|---|---|
| Nodes per state | 71 |
| Assets | 1 image |
| Width conditions | 2 · 768 · 1024 |
| Requests that write | 0 |
- Layer 5 · DOM71 nodes · tags, classes, attributes
- Layer 4 · Accessibilityroles, names, levels, states
- Layer 3 · Stylescomputed, per node, per state
- Layer 2 · Boxesgeometry for every node
- Layer 1 · Screenshot1280 px · full page png
03 Explore
Clicked, then undone.
Safe interactions only. Writes are blocked.
| Interactions tried | 88 |
|---|---|
| Transitions recorded | 73 |
| Skipped, with reasons | 44 |
| POST requests sent | 0 |
Network while exploring · Fixture B
04 Measure
Values become tokens.
Repeated structure becomes components.
Parts list · 10 colors · 17 type styles · 12 spacing · 7 components
| Item | Designation | Value | Kind · source |
|---|
05 Breakpoints
Breakpoints, to the pixel.
Read from the stylesheet. Confirmed by resizing.
Collection rulebase · 6 items · identity by order idFixture B: 32 rules recorded
06 Generate
Named, then built.
Your agent names the parts. UI DNA writes the React.
annotate_dna · one patch from the agent
{
"path": "/components/2",
"set": { "name": "FeatureCard" },
"provenance": {
"kind": "inferred",
"why": "3 cards share one fingerprint"
}
}
| Rev | Description | By | Kind |
|---|---|---|---|
| 1 | Header and menu named SiteHeader | agent | inferred |
| 2 | Three cards named FeatureCard | agent | inferred |
| 3 | Illustration kept as a labeled placeholder, asset not authorized | policy | unknown |
Generated · ./clone
src/ ├─ App.tsx ├─ components/ │ ├─ SiteHeader.tsx △1 │ ├─ FeatureCard.tsx △2 │ └─ Placeholder.tsx △3 └─ tokens.css from the DNA tests/ └─ behavior.spec.ts 73 transitions tailwind.config.ts uidna.json the document
ReactTypeScriptTailwindVitePlaywright
07 Verify
Every difference, listed.
Pixels, layout, styles and behavior.
08 Tools
Twelve tools.
Over MCP or the CLI. One envelope.
Assembly · Node 20.19 or newer
- 1
Install the CLI
npm install -g uidna-mcp - 2
Install Chromium
npx playwright install chromium - 3
Register with your agents
uidna setup - 4
Check the setup
uidna doctor
Built to look, not touch