Contract-driven frontend engineering, design-system constraints, and runtime verification for AI coding assistants.
فارسی (Persian Documentation) • Architecture Specification • Enterprise Guide • Interactive Studio Playground
What happens when you ask a standard AI assistant to generate a frontend component?
┌──────────────────────────────────────┐ vs ┌──────────────────────────────────────┐
│ ❌ VANILLA AI SLOP │ │ ✨ VIBE UI v6.1.1 MASTERPIECE │
├──────────────────────────────────────┤ ├──────────────────────────────────────┤
│ • Generic purple gradient buttons │ │ • Strict Light-First Canvas & Depth │
│ • Low contrast text (3.2:1 FAILS AA) │ │ • Mathematical WCAG 2.2 AAA (18.8:1) │
│ • Lazy dark-canvas bias │ │ • Ambient Hero Video & Fluid Loops │
│ • Hallucinated raw emojis │ │ • Crisp Vector SVGs & Clean Icons │
│ • Dead toggle cards & static mockups │ │ • Living React 19 TSX + Dual Theme │
│ • Rushed, flat, uninspired output │ │ • Trend-First Harvest (Dribbble/etc) │
│ • Empty blank or broken image links │ │ • Curated 24-Domain Unsplash CDN CDN │
│ • Broken mobile overflow (375px) │ │ • Headless Multi-Viewport Screenshots│
│ • Mixed direction text / numbers │ │ • On-Demand Scoped RTL & BiDi Guard │
└──────────────────────────────────────┘ └──────────────────────────────────────┘
👉 Launch the Interactive Design Compiler Studio Live — Zero server latency, instantaneous client-side domain inference & component preview.
Vibe UI Suite gives AI coding assistants (Cursor, Claude Code, Windsurf, Antigravity) a structured, machine-checkable framework to plan, implement, and verify frontend interfaces.
Instead of relying on fragile prompt engineering ("make this dashboard look clean and modern"), Vibe UI establishes an explicit compiler-style pipeline:
User Intent
↓
Intent Expansion (Structured 6-Dimensional Design Contract)
↓
Machine-Readable Schema (design-spec.v1.schema.json)
↓
Macro Archetype Selection (7 Visual Archetypes Vault)
↓
Code Implementation (Next.js 15 / React 19 TSX / Tailwind OKLCH)
↓
Static Evaluation (Schema, luminance math, negative fixtures)
↓
Headless Browser Evaluation (Playwright 375px mobile overflow)
↓
Verified Output or Actionable Failure Diagnostics
Day-One Transparency: Vibe UI Suite is at
v6.1.0(built uponv6.0.0The Two Golden Pillars: Trend Inspiration & Living Visual Feedback Loop with the Living Micro-Interactions & Galaxy Inspiration Standard). Anchored on Pillar 1 (deep trend research across Mobbin, Dribbble, Figma Community, and Awwwards with Vibrant Light Mode default) and Pillar 2 (deterministic Playwright multi-viewport screenshot verification across Desktop 1440px and Mobile 390px with zero orphaned processes), Galaxy Inspiration Engine (3,800+ community elements with offline caching), Curated High-Res Unsplash Asset Vault covering all 24 canonical domains with tested HTTP 200 CDN URLs, clean 9-pillar component catalog with living interactive micro-interactions (shimmer-button,cyber-loader,holographic-card,tactile-switch,glow-input), living React 19 TSX generation (-f tsx), and synchronized cross-platform tooling across npm, Python CLI, and VS Code. Constructive criticism, issues, and contributions from frontend engineers and AI researchers are warmly welcomed.
Frontend design should not require developers to study color contrast mathematics, OKLCH formulas, CSS spring physics, or memorizing style taxonomies. That cognitive burden belongs entirely to the agent.
Vibe UI Suite includes a dedicated master architect agent: vibe-ui-agent (AGENT.md). Powered by an autonomous Stack Sensor (<1ms) and Domain Director, it reads your project's package.json, existing Tailwind configuration, and component libraries, autonomously deciding the optimal design archetype, color harmony, and component flow without asking tedious setup questions.
flowchart LR
User["User Prompt<br/>'@vibe-ui-agent ...'"] --> Sensor["Stack Sensor <1ms<br/>(Framework, Tailwind v4, Icons)"]
Sensor --> Director["Autonomous Director<br/>(Domain, Light/Dark, Archetype)"]
Director --> AntiSlop["Anti-Slop Compiler<br/>(OKLCH, No Emojis, <bdi> RTL)"]
AntiSlop --> ClosedLoop["Closed-Loop Critic<br/>(Headless Chromium & Touch Gate)"]
ClosedLoop --> Output["Production-Grade UI<br/>(Zero Prompt Grind)"]
Just give your AI assistant (Antigravity, Cursor, Hermes, Claude Code) a single sentence describing what you need:
@vibe-ui-agent build a modern, high-conversion landing page for my project.
Optional Domain or Vibe Hints (Never Required):
@vibe-ui-agent build an analytics billing dashboard with Apple Cupertino fluid style@vibe-ui-agent design a crypto staking interface with dark terminal HUD aesthetic@vibe-ui-agent create a patient booking screen for an aesthetic dental clinic
What vibe-ui-agent guarantees automatically (Lazy-Prompt Protocol & The 5 Gates):
- Mandatory Pre-Edit Visual Audit: Captures headless browser screenshot (
screenshots/before.png) before touching code to diagnose spatial and typographic flaws with multimodal vision. - Architectural Paradigm & Trend Anchoring: Autonomously selects proven paradigms (Bento Grid, Linear Minimal, Stripe Crisp Light, Swiss Editorial) benchmarked from Dribbble, Mobbin, and Awwwards.
- Structural DOM & Spatial Rhythm Overhaul: Re-architects real layout structures and 8pt spatial rhythm (Zero Cosmetic-Only Patch Invariant).
- Living Component & Rich Media Synthesis: Injects tactile Galaxy micro-interactions (shimmer buttons, tactile switches, cyber loaders), ambient hero loops, and authentic photography.
- Silent Table-Stakes (Internal Worker Delegation): OKLCH color math, WCAG AAA contrast, inline SVGs, and
<bdi>isolation are handled invisibly by internal workers and never clutter primary deliverables.
When an existing screen looks flat, amateur, or cluttered (unbalanced spacing, dead layouts, or lack of visual hierarchy):
@vibe-ui-agent this UI feels cluttered and dated. Re-architect and modernize it using Vibe UI structural standards.
The Agent's Autonomous Multi-Step Pipeline:
- Renders current screen in browser and saves
screenshots/before.pngto audit layout balance and ergonomic flaws. - Dismantles the dead container structure and replaces it with a clean Bento Grid or modern minimal architecture.
- Rewires all buttons, inputs, and state into living micro-interaction primitives without breaking existing business logic.
- Captures post-implementation screenshots (
screenshots/after.png, Desktop 1440px / Mobile 390px) for multi-viewport visual verification. - Delivers a report focused 100% on spatial and structural transformation, keeping low-level styling baselines in the background.
When starting a new project or onboarding Vibe UI Suite without touching the terminal:
Install and configure vibe-ui-suite in this project and activate vibe-ui-agent rules.
The agent autonomously:
- Runs
npm install vibe-ui-suitein your project terminal. - Injects
@import "vibe-ui-suite/v4.css";into your main stylesheet (app/globals.cssorsrc/index.css). - Creates your editor rule file (
.cursorrules,CLAUDE.md, orAGENTS.md) with the fullvibe-ui-agentprotocol.
You never need to choose a style—vibe-ui-agent automatically selects the ideal archetype based on your domain. However, you can explicitly request any archetype from the Design Vault (data/design_vault/archetypes.json):
| Macro Archetype | Visual Philosophy | Key Surface & Lighting Physics | Best Suited For |
|---|---|---|---|
Linear Dev HUD |
Obsidian dark canvases, micro-terminal telemetry, monospace metrics | Cyan/Emerald radiance, hairline specular borders, live K8s sparklines | Cloud infra, dev tools, observability, APM |
Swiss Editorial |
Asymmetric typographic hierarchy, high editorial elegance, calm negative space | Crisp monochrome contrast, subtle hairlines, serif/sans harmonic balance | Media publications, architecture, luxury studios |
Cupertino Glass |
Multi-layer frosted glass, organic squircle curves, fluid spring physics | Ambient depth, liquid glass surfaces, tactile responsive states | Consumer SaaS, health, mobile-first web apps |
Full-Bleed Bento |
Asymmetric 4-tile bento grid, variable visual weights, dynamic sparklines | Hairline specular top highlights, mousemove spotlight radiance | AI intelligence platforms, creative tools, enterprise |
Quiet Luxury |
Warm champagne/stone palettes, tactile serif accents, clinical precision | Interactive Before/After drag split sliders, certified badge seals | Aesthetic healthcare, dental clinics, bespoke commerce |
Cyber Terminal |
Retro-futuristic phosphor green/amber, scanline telemetry, high density | Monospace HUD matrices, live status indicators, zero fluff | Web3, security auditing, hardware interfaces |
Centered Stage |
Single focal product presentation, large bold typography, floating 3D stage | Radial mesh glow cone (blur-[140px]), atmospheric canvas vector grid |
High-conversion landing pages, product debuts |
Generate complete, production-grade standalone web applications or React 19 components directly from your terminal:
# 1. Generate autonomous masterpiece HTML with interactive sliders & macOS chrome:
python vibe_cli.py generate "یک سایت کلینیک زیبایی با رزرو آنلاین و نمونه کارهای قبل و بعد" -o clinic.html
# 2. Generate living React 19 / TypeScript component (.tsx) with stateful hooks:
python vibe_cli.py generate "A modern developer observability dashboard with latency metrics" -f tsx -o DevDashboard.tsx
# 3. Verify any generated artifact against all 6 production audit gates:
python vibe_cli.py verify clinic.htmlIf you prefer running a guided interactive wizard in your terminal:
npx vibe-ui-suite initIn your app/globals.css or main stylesheet:
@import "tailwindcss";
@import "vibe-ui-suite/v4.css";Zero JavaScript configuration files needed. Instantly unlocks:
- Semantic OKLCH colors:
bg-vibe-canvas,bg-vibe-surface,text-vibe-primary,border-vibe-border - Physics curves:
ease-vibe-spring,ease-vibe-snap,ease-vibe-glide(or utility.vibe-spring) - Material shadows:
shadow-vibe-brutal,shadow-vibe-glass
Add production-ready, accessible component templates directly into components/vibe-ui/:
# Core AI & Telemetry Primitives:
npx vibe-ui-suite add thinking-drawer
npx vibe-ui-suite add telemetry-hud
npx vibe-ui-suite add contrast-badge
npx vibe-ui-suite add theme-toggle
# Living Micro-Interactions (v6.1.0):
npx vibe-ui-suite add shimmer-button
npx vibe-ui-suite add cyber-loader
npx vibe-ui-suite add holographic-card
npx vibe-ui-suite add tactile-switch
npx vibe-ui-suite add glow-inputList all available registry components:
npx vibe-ui-suite listTap into a curated offline knowledge graph of over 3,800+ micro-interactions and component patterns directly from your terminal or AI coding agent:
# Query community components with sub-10ms offline cache:
python vibe_cli.py inspire "neon cyber button"
python vibe_cli.py inspire "holographic card" -l 3
# Or via npm CLI:
npx vibe-ui-suite inspire "orbit loader"Vibe UI is available directly inside your IDE sidebar:
- VS Code Marketplace:
omid-io.vibe-ui-vscode - Open-VSX Registry:
omid-io.vibe-ui-vscode(for Cursor, Windsurf, VSCodium)
-
Interactive WCAG 2.2 Contrast Calculator: Real-time color pickers with instant relative luminance calculation (
$L_1 / L_2$ ) and dynamic Pass/Fail badges. - 1-Click Component Inserter: Insert component templates directly into your active text editor.
-
In-Editor Audit Command:
Ctrl+Shift+P➔Vibe UI: Audit Active File Contrast.
The system is coordinated by a lead architect agent (vibe-ui-agent) that orchestrates 6 specialized sub-skills:
┌──────────────────────────────┐
│ User Prompt: "Build a UI" │
└──────────────┬───────────────┘
│
▼
┌──────────────────────────────┐
│ vibe-ui-agent │
│ (Lead Frontend Architect) │
└──────────────┬───────────────┘
│
┌──────────────┬───────┴───────┬──────────────┐
▼ ▼ ▼ ▼
┌──────────────┐┌──────────────┐┌──────────────┐┌──────────────┐
│ autonomous- ││ visual- ││ ui-kit ││ vibe- │
│ intent- ││ chemistry- ││ (70+ AI ││ physics- │
│ expander ││ engine ││ Recipes) ││ engine │
└──────┬───────┘└──────┬───────┘└──────┬───────┘└──────┬───────┘
│ │ │ │
└───────────────┼───────────────┴───────────────┘
│
▼
┌──────────────────────────────┐
│ conversion-copy-engine │
│ (PAS, JTBD, Anti-Deception)│
└──────────────┬───────────────┘
│
▼
┌──────────────────────────────┐
│ ui-verifier │
│ (5-Pillar Quality Gate) │
└──────────────┬───────────────┘
│
▼
┌──────────────────────────────┐
│ Evaluated Frontend Code + Log│
└──────────────────────────────┘
| Sub-Skill | Role & Boundary | Primary Constraint |
|---|---|---|
autonomous-intent-expander |
Intent synthesis via structured 6-dimensional contract | Calibrated Ambiguity Budget; rejects unstated business assumptions |
visual-chemistry-engine |
Cohesive aesthetic system selection | 5 distinct chemistries; anti-repetition constraint across projects |
ui-kit |
Component primitives & interaction patterns | AI reasoning drawers, tool chips, telemetry HUDs, Bento recipes |
vibe-physics-engine |
Motion, color, and GPU budgets | OKLCH perceptual spaces, spring curves, strict |
conversion-copy-engine |
Strategic narrative architecture | Domain-aware copy; strictly prohibits fake testimonials or false urgency |
ui-verifier |
Automated quality & accessibility gates | Static math + headless browser runtime DOM assertions |
Vibe UI defines five visual systems for consistent design decisions:
- Minimalist SaaS: Monochrome restraint, precision borders, high information density, functional typography (
oklch(0.12 0.01 260)). - Luxury Obsidian / Glass 2.0: Dark substrates, specular Fresnel highlights, subtle gold accents, controlled GPU backdrop blur budget (
oklch(0.08 0.02 270)). - Neobrutalism: High-contrast saturated cards, hard 3px black offset geometric drop-shadows, zero blur, explicit physical boundaries (
oklch(0.98 0.02 95)). - Swiss Editorial: Asymmetric typographic grid, content-first layout inspired by the International Typographic Style (
oklch(0.97 0.005 80)). - Stripe Crisp Light: Developer-first documentation aesthetic, micro-borders, clean typography, subtle shadows (
oklch(0.99 0.002 250)).
Production web experiences must feel tactile, responsive, and alive. Vibe UI v6.0 codifies 6 mandatory kinetic living principles:
- Kinetic Arrow Cursor & Trailing Physics:
- Total suppression of the default OS cursor (
cursor: none !important). - Ultra-responsive, zero-lag glowing focal dot (
#vibeCursorDot) tracking mouse coordinates 1:1. - Angled SVG chevron follower (
#vibeCursorFollower) with spring inertia and velocity rotation physics (Math.atan2).
- Total suppression of the default OS cursor (
- Spotlight Dot-Matrix Mesh:
- Subtle dot-matrix substrate revealed through an interactive radial gradient spotlight cone (
radial-gradient(circle at X Y, ...)).
- Subtle dot-matrix substrate revealed through an interactive radial gradient spotlight cone (
- Infinite Marquee Velocity Rails:
- Hardware-accelerated ticker ribbons utilizing
translate3d(0, 0, 0)totranslate3d(-50%, 0, 0)with pause-on-hover and zero scroll-reveal transform collision.
- Hardware-accelerated ticker ribbons utilizing
- Curated Editorial Photography (
AssetDirector):- Automatic injection of high-resolution, thematic Unsplash editorial imagery with verified domain relevance and graceful SVG fallbacks.
- Cinematic Stagger Scroll-Reveals:
- Progressive
IntersectionObservertriggers animating elements into view with simultaneous opacity, Y-axis translation, and blur removal.
- Progressive
- Progressive Lazy Image Blur-Up:
- High-craft image loading transition shifting from
filter: blur(12px)to crisp native rendering on load.
- High-craft image loading transition shifting from
Standard AI-generated interfaces frequently fail on Right-to-Left (RTL) languages by naively flipping the entire DOM tree with dir="rtl", inverting navigation columns, telemetry charts, and numeric sequences.
Vibe UI enforces Fixed-Structure Semantic RTL:
- Physical Macro Stability: Application layout coordinates (sidebars, toolbars, chart axes) remain physically stable.
- Content-Level RTL: RTL is applied strictly to typography, paragraphs, and reading flows using CSS logical properties (
margin-inline-start,text-align: start). - BiDi Resilience: Technical identifiers, code blocks, URLs, and telemetry HUDs are explicitly isolated with
<bdi>ordir="ltr".
The repository includes an automated test runner:
# 1. Run deterministic static checks & negative fixtures
python evals/run_evals.py
# 2. Run machine-readable CI output
python evals/run_evals.py --json
# 3. Run headless browser DOM verification (Chromium via Playwright)
python evals/run_evals.py --browser| Verification Gate | Type | Method | Scope |
|---|---|---|---|
| JSON Schema Validation | Deterministic | Draft 2020-12 Schema Validator | Validates technical design spec with additionalProperties: false
|
| Negative Fixture Rejection | Deterministic | Exit code assertion | Verifies exit code 1 on out-of-range entropy, invalid archetypes, or touch targets |
| Relative Luminance & Contrast | Deterministic | Enforces WCAG AA ( |
|
| Mobile Viewport Overflow | Runtime | Chromium DOM (scrollWidth <= clientWidth) |
Verifies 0px horizontal overflow across 375px and 390px viewports |
| Semantic Clickables | Static / Lint | Regex DOM tree audit | Asserts 0 raw <div onclick> instances (buttons/anchors required) |
| Focus Rings | Static / Lint | CSS rule check | Verifies presence of :focus-visible styles |
| GPU Compositing Budget | Static / Heuristic | CSS rule check | Enforces backdrop-filter blur layers |
A reference production starter is available under examples/nextjs-starter/:
- Core: Next.js 15 App Router, React 19, TypeScript 5, Tailwind CSS.
- Typed OKLCH Tokens:
lib/tokens.tsexporting all 5 chemistries. - AI Primitives:
AiThinkingDrawer.tsxwith zero-JS CSS Grid height transitions and accessible ARIA live regions. - Verified Clean Build: Compiles in production mode (
npm run build) in CI with zero type errors.
- A contract-driven linter, design system, and verification layer for AI coding assistants.
- An orchestration DAG that separates intent, visual rules, component code, copy, and verification.
- A set of executable evaluation gates that reject measurable UI regressions with non-zero exit codes.
- It is not a guarantee that an AI-generated interface is 100% bug-free or production-ready without human review.
- It is not a replacement for comprehensive manual accessibility testing (screen readers, voice control).
- It is not an enterprise design system replacement; it is designed to bind into your existing
@company/uilibrary viadocs/ENTERPRISE_ADAPTATION.md.
Vibe UI Suite is open-source under the MIT License. We actively welcome community contributions:
- New evaluation fixtures & negative tests
- Framework adapters (Vue, Svelte, Angular)
- Component recipes for the registry
- Real-world bug reports with minimal reproductions
git clone https://github.com/omid-io/vibe-ui-suite.git
cd vibe-ui-suite
python evals/run_evals.pyMaintainer: Omid Zaferi • Issues: GitHub Issues