Docs / Design System

Design System

AI OS uses a DESIGN.md dual-structure protocol that separates emotional design reasoning from exact implementation tokens. This enables brand-aware UI generation with WCAG accessibility compliance.

Dual-Structure Protocol

Every design system in AI OS has two layers:

  • Reasoning Layer — The "why" behind design decisions: brand personality, emotional intent, visual metaphors, and audience targeting.
  • Token Layer — The "what" of implementation: exact hex values, font sizes, spacing scales, border radii, and shadow definitions.

This separation ensures that AI agents understand the intent behind design choices, not just the values, enabling smarter generation of new UI components that feel cohesive.

Brand Reasoning

The Reasoning section of DESIGN.md captures subjective design intent:

## Reasoning

### Brand Personality
Authoritative yet approachable. Technical precision
with human warmth.

### Color Philosophy
Dark background conveys depth and focus. Blue primary
signals trust and intelligence. Green accents for
success states create positive reinforcement.

### Typography Intent
Inter for UI clarity — geometric, neutral, highly
legible at small sizes. JetBrains Mono for code —
designed for extended reading of technical content.

Color Hierarchy

Colors are organized into a semantic hierarchy rather than a flat palette:

RoleTokenUsage
Primary--primaryInteractive elements, links, focus states, primary CTAs
Secondary--secondarySupporting actions, secondary buttons, less prominent UI
Tertiary--tertiaryAccents, decorative elements, inline code highlighting
Success--successPositive states, confirmations, health indicators
Warning--warningCaution states, pending actions, rate limit indicators
Error--errorDestructive actions, failures, validation errors

Component Specifications

The Design System agent generates component specs with exact measurements and states:

  • Buttons — Primary, secondary, ghost, danger variants with hover/active/disabled states
  • Cards — Standard, elevated, interactive variants with border-glow hover effects
  • Forms — Input, select, checkbox, radio with focus rings and error states
  • Navigation — Top nav, sidebar, breadcrumbs, tabs
  • Feedback — Toasts, modals, loading skeletons, empty states

WCAG Linting

The Design System automatically validates accessibility compliance:

  • Contrast ratios — All text/background pairs checked against WCAG AA (4.5:1) and AAA (7:1) thresholds
  • Focus indicators — Ensures all interactive elements have visible focus states
  • Color independence — Validates that color is not the sole means of conveying information
  • Touch targets — Minimum 44x44px for mobile interactive elements

Brand Clone from URL

The clone feature analyzes any website URL and extracts its design DNA:

  1. Scrapes the target URL for CSS variables, computed styles, and font references
  2. Extracts the color palette with usage percentages
  3. Identifies typography stack and size scale
  4. Detects spacing patterns and border-radius conventions
  5. Generates a complete DESIGN.md with both reasoning and token layers

Export

Design systems can be exported in multiple formats:

  • DESIGN.md — Full Markdown specification (reasoning + tokens)
  • CSS Variables — Ready-to-use custom properties
  • JSON Tokens — For use with design token tools (Style Dictionary, Figma Tokens)
  • Tailwind Config — Tailwind CSS theme extension