Star on GitHub
NewSay hello to Vitra Engine v0.2.4

The Visual Runtime.
For User Interfaces.

A headless design engine for your team and AI agents. Create layouts, audit contrast, and sync components into your codebase.

$vitra build--targetreact,swiftui
✓Loaded design tokens (colors, typography ramps, radii)
✓Evaluated 12 artboards with cross-platform layout engine
✓Generated React + Tailwind components (zero div soup)
✓Generated native Apple SwiftUI Views with dynamic type
$vitra audit--wcagAAA
Audit passed: 48 components checked. All colors satisfy AAA 7:1 contrast ratios.

MostAItoolswriteUIbylookingatscreenshotsandguessingpixelvalues.Vitragivesagentsandteamsarealruntimetoinspect,construct,andauditinterfaceswithguaranteedprecision.”

Vitra Protocol
Open source under AGPL-3.0
Team Collaboration

Parallel work, without lockouts.

In traditional design files, multiple people editing the same screen leads to messy duplicates and accidental overwrites. Vitra handles UI updates in parallel, reconciling changes intelligently so everyone can move fast.

PARALLEL CONTRIBUTIONSLive Reconciliation
Design Team30 mins ago
Refined navbar spacing and brand icons
Engineering Team15 mins ago
Updated button corner radius and interaction states
Automated Audit & MergeJust now
Both updates merged automatically without data loss
Async Multi-Player Workflow
Zero Overwrites
AUTOMATIC COMPONENT RECONCILIATIONTarget: AppHeader.component
Component Target
Design Team Update
Engineer Update
Navbar Height
Updated to 73px
Untouched
Action Button
Untouched
Set to pill shape
Overall Alignment
Maintained
Maintained
How Vitra saves your time:Instead of forcing designers and developers to sit together and re-create screens by hand, Vitra figures out which properties changed and combines them safely. You keep all improvements without losing anyone's progress.
Full revision history preserved and inspectable at any time
Complete Ecosystem

Everything your UI pipeline needs.

Vitra provides the foundational runtime that connects designers, engineers, and AI agents into a single, unified development cycle.

RUNTIME ENVIRONMENT

Headless Execution

Run your design system anywhere—in CI pipelines, serverless functions, or your local terminal. Test, validate, and compute layouts without launching a heavy graphical editor.

CLI & Server runtimeZero-browser execution
AUTOMATION

First-Class AI Programmability

AI agents inspect and modify user interfaces through structured programming interfaces. Models reason about responsive structures with zero visual guesswork or noisy HTML scraping.

MCP stdio & SSEModel Context Protocol
DEVELOPER EXPERIENCE

Direct Code Synthesis

Compile components straight into clean, production-ready React with modern utility classes or native Apple SwiftUI. Generated code looks like hand-written code, not machine clutter.

Zero div soupReact & SwiftUI targets
QUALITY ASSURANCE

Automated Accessibility Auditing

Verify contrast ratios, minimum touch target dimensions, and typographical hierarchy continuously. Block inaccessible UI regressions before pull requests get merged.

APCA & WCAG 2.1WCAG AAA verification
DESIGN SYSTEMS

Universal Design Tokens

Manage color palettes, spacing scales, and typography hierarchies as pure structured data. Any change instantly propagates across design previews and production CSS variables.

W3C Community GroupSingle source of truth
ECOSYSTEM

Two-Way Editor Interoperability

Connect seamlessly with existing design platforms like Figma and Penpot. Bring designs into your engineering pipeline without locking your team into a single proprietary canvas.

Lossless bridgeBidirectional sync
Autonomous AI Tools

AI agents with true design understanding.

Most AI tools write code by looking at screenshots and guessing pixel values. Vitra provides AI models like Claude, Cursor, and ChatGPT with a direct runtime environment—allowing them to inspect, construct, and audit user interfaces with guaranteed precision.

Zero guesswork: AI operates on pure UI structures, not raster images
Automatic layout computation ensures every button and card aligns perfectly
Safe sandboxing lets AI iterate on experimental versions without risk
Add to your AI agent or editor config:
# MCP Server: vitra mcp
# Agent Skill: npx skills add ruhamabek/Vitra
AGENT CAPABILITIES
Model Context Protocol Ready
Screen Construction
Creates complete, responsive screen layouts based on high-level prompts.
Design System Auditing
Validates color contrast and accessibility rules headlessly before saving.
Interactive Styling
Adjusts padding, typography ramps, and border radii with pixel precision.
Code Synthesis
Outputs ready-to-run React and Tailwind v4 components instantly.
Revision Snapshotting
Saves design versions safely without overwriting your main screens.
Visual Diff Inspection
Compares before-and-after states to ensure nothing broke.
// What happens behind the scenes
You ask: "Create a responsive pricing table with 3 tiers and verify accessibility."
1. Vitra generates the layout and spaces columns evenly.
2. Vitra tests all text colors against backgrounds (WCAG AAA check passed).
3. Vitra compiles the components into clean React + Tailwind code ready to copy.
Automatic Hand-Off

Design, directly to production code.

Eliminate tedious redlining and manual CSS translation. Vitra compiles components into clean, human-readable frontend code with your design tokens baked right in.

MetricCard.tsx· compiled
1import React from 'react';
2
3// Compiled directly from Vitra Scene AST
4export const MetricCard: React.FC<{ label: string; value: string }> = ({ label, value }) => {
5 return (
6 <div className="bg-card border border-border rounded-2xl p-6 shadow-sm flex flex-col gap-2">
7 <span className="text-xs font-mono text-muted-foreground uppercase tracking-wider">
8 {label}
9 </span>
10 <span className="text-3xl font-medium tracking-tight text-foreground">
11 {value}
12 </span>
13 <div className="mt-2 text-xs font-mono text-vitra-cyan flex items-center gap-1.5">
14 <span className="w-1.5 h-1.5 rounded-full bg-vitra-cyan" />
15 Production Ready Component
16 </div>
17 </div>
18 );
19};
Vitra AST SynthesizerUTF-8TypeScript JSX