getComputedStyle() from the live screenshots visible here.
Color Palette
9 colors extracted via getComputedStyle(). Click any swatch to copy its hex value.
Background & Surface
Text & Content
Accent & Interactive
Border & Divider
Typography
All values extracted via getComputedStyle() — no estimation.
| Role | Font Family | Size / Weight | Line Height | Letter Spacing | Preview |
|---|---|---|---|---|---|
| Display Hero | system-ui | 24px / w700 | normal | normal | Display Hero |
| Body | system-ui | 16px / w400 | normal | normal | Body |
Live Components
Rendered in real HTML using your extracted tokens — no screenshots.
Buttons
Form Inputs
Card
Badges & Labels
Spacing Scale
Border Radius
0px
4px
8px
14px
20px
32px
9999px
Component Specs
Extracted CSS values per component and variant state.
## 4b. Component Behaviors (State Matrix)
Interaction State Narrative
Visual Reference
Playwright screenshots captured during extraction — source of truth for all tokens.
Breakpoints
Motion & Transitions
1 motion tokens — easing curves and durations.
| transition-1 | all |
Component States
Default → Hover → Focus → Active visual diff per component. Captured via Playwright state simulation.
| Component | States |
|---|---|
| link |
default
link
bg rgba(0, 0, 0, 0)
fg rgb(51, 68, 136) |
Export tokens
Copy these design tokens to any framework. Generated from example.com live extraction.
Clicks copy to clipboard AND download the file. All values from getComputedStyle() on the live page — no estimates.
DESIGN.md
Narrative design system document — paste directly into Claude Code, Cursor, or Bolt.
---
version: alpha
name: example.com
description: "Light product system built on #eeeeee with #334488 as the primary CTA accent. Type anchored in system-ui at 24px / weight 700. Extracted automatically from https://example.com/ — every value from getComputedStyle(), no approximation."
narrative: |
example.com is built on a soft, near-white canvas (rgb(238, 238, 238)).
The system uses rgb(51, 68, 136) as the accent for primary actions and brand signals.
System-ui as the primary typeface.
colors:
background: "#eeeeee"
surface-1: "#eeeeee"
surface-2: "#eeeeee"
primary: "#334488"
on-primary: "#ffffff"
primary-hover: "#334488"
hairline: "#e5e7eb"
typography:
display-xl:
fontFamily: "system-ui"
fontSize: 24px
fontWeight: 700
lineHeight: normal
letterSpacing: 0
body:
fontFamily: "system-ui"
fontSize: 16px
fontWeight: 400
lineHeight: normal
letterSpacing: 0
rounded:
none: 0px
xs: 4px
sm: 8px
md: 14px
lg: 20px
xl: 32px
pill: 9999px
spacing:
xxs: 2px
xs: 16.08px
sm: 135px
md: 12px
lg: 24px
xl: 32px
xxl: 64px
section: 80px
components:
extracted_at: "2026-05-30T20:38:52.427Z"
completeness: 13
scoreVersion: "v2"
---
# Design System — example.com
> Extracted automatically by Clone Architect from https://example.com
> Date: 2026-05-30
> Viewport: Desktop 1440x900 + Mobile 390x844
> Every value in this file comes from real getComputedStyle() — no approximation.
> **🤖 TL;DR for AI agents** (read this first — saves you scanning the full doc):
>
> - **Canvas**: `rgb(238, 238, 238)` is the page background. Every component composits against this.
> - **Accent**: `rgb(51, 68, 136)` for primary CTAs ONLY. Never decorative.
> - **Body type**: 16px (token: `typography.body`). Default for ALL text not in a heading role.
> - **Section rhythm**: 48px between major bands. Card padding: 24px.
> - **Default radius**: 8px on buttons/inputs. Pills (`9999px`) only for icon-buttons or status chips.
> - **Forbidden**: Do NOT introduce heavy box-shadows — this system relies on borders for separation
>
> **Before generating UI**: import this DESIGN.md, scan §2 (Color Palette) + §4 (Components) + §10 (Agent Guide). Skip §11–12 unless extending.
## 1. Visual Theme & Atmosphere
example.com sits on a light gray canvas (`#eeeeee`), a neutral foundation calibrated for sustained reading and component contrast.
The system font stack (system-ui) trades brand voice for performance and platform familiarity.
Body text reads in Pure Black (`#000000`) (contrast ratio 93.3:1, well above WCAG AA). **#334488** (`#334488`) provides interactive distinction without visual aggression. Shadow is absent by design — depth is conveyed through borders, spacing, and color differentiation rather than light simulation.
**Key Characteristics:**
- Background: Light Gray (`#eeeeee`)
- Accent: #334488 (`#334488`)
## 2. Color Palette & Roles
### Background & Surface
- **Light Gray** (`#eeeeee`): Page background (primary)
### Text & Content
- **Pure Black** (`#000000`): Primary body text
### Accent & Interactive
- **#334488** (`#334488`): Interactive / accent
## 3. Typography Rules
### Font Families
- **Primary**: `system-ui`
### Typography Hierarchy
| Role | Font | Size | Weight | Line Height | Letter Spacing | Notes |
|------|------|------|--------|-------------|----------------|-------|
| Display Hero | system-ui | 24px | 700 | normal | normal | Main headline (h1) |
| Body | system-ui | 16px | 400 | normal | normal | Standard reading text |
### Full Font Size Scale
Sizes detected in the design (descending): `24px`, `16px`
## 4. Component Stylings
## 4b. Component Behaviors (State Matrix)
### Interaction State Narrative
*State transitions extracted via Playwright simulation — exact values in the YAML matrix below.*
```yaml
component-behaviors:
link:
default:
bg: "rgba(0, 0, 0, 0)"
fg: "rgb(51, 68, 136)"
```
**Agent usage**: Validate generated components against this matrix. If your output's `:hover` state changes properties not listed here, you are off-brand.
## 5. Layout Principles
### Layout Type
**top-nav + content**
### Grid
Single column, centered content
### Max Width
1200px
### Spacing System
Compact spacing — information density prioritized
| Token | Value |
|-------|-------|
| xxs | 2px |
| xs | 16.08px |
| sm | 135px |
| md | 12px |
| base | 16px |
| lg | 24px |
| xl | 32px |
| 2xl | 48px |
| 3xl | 64px |
### Border Radius Scale
| Name | Value | Use |
|------|-------|-----|
| None | 0px | No rounding |
| Xs | 4px | Tiny corners (badges, micro elements) |
| Sm | 8px | Buttons, inputs, small elements |
| Md | 14px | Cards, containers |
| Lg | 20px | Large rounded elements, pill segments |
| Xl | 32px | Category strips, featured containers |
| Full | 9999px | Pills, avatars, circular elements |
### Shape Language
| Component | Border Radius |
|-----------|---------------|
| Page Body | `0px` |
**Shape Personality**: Sharp & Angular — No rounding. Precise, editorial, enterprise feel.
## 5b. Spacing Rhythm Names
*Named spacing tokens with explicit use cases. Use these names in YOUR code instead of raw pixels for consistency.*
| Name | Value | Use case |
|------|-------|----------|
| **hero** | `64px` | Top/bottom of full-bleed hero sections |
| **section** | `32px` | Between major bands (color change, content shift) |
| **subsection** | `24px` | Within a section, between content groups |
| **card** | `12px` | Card padding, list-item spacing |
| **compact** | `135px` | Form fields, tight clusters, badge padding |
| **micro** | `16.08px` | Icon-text gap, tag inner padding |
**Agent rule**: NEVER hardcode raw pixel values for spacing in generated UI. Always reference these named tokens (`spacing-rhythm.section`, etc.).
## 5c. Widget & Structure Library
Structural patterns extracted from the page DOM — these are the **blueprints** an agent should follow to reproduce the page architecture (not just CSS values).
**2/8 structural patterns detected.**
### Hero Pattern
- **Composition:** centered — Centered composition — heading + subheading + CTAs stacked vertically, content centered horizontally. Common for SaaS marketing pages.
- **Viewport coverage:** 98px tall (not full-viewport)
- **Heading:** "Example Domain" — 24px left-aligned
- **Subheading:** "This domain is for use in documentation examples without needing permission. Avoid use in operations."
- **CTAs:** none detected in hero (unusual — agent should verify)
- **Clone instruction:** Reproduce the **centered** layout. Use the heading font-size token at the documented size. No imagery needed for hero — text-driven.
### Footer Pattern
- **Columns:** 1
- **Links:** 1 total
- **Height:** 98px
- **Includes:** ✗ no newsletter | ✗ no social |
- **Clone instruction:** Build a 1-column footer with ~1 links per column.
## 6. Depth & Elevation
| Level | Treatment | Use |
|-------|-----------|-----|
| Flat (Level 0) | No shadow | Page background, content blocks |
**Shadow Philosophy**: Flat design — no shadows used. Borders and spacing define structure.
## 8. Do's and Don'ts
### Do
- Use Light Gray (`#eeeeee`) as the page background — it's intentionally not pure white
- Use #334488 (`#334488`) as the primary accent — it's the brand's signature interactive color
- Keep the hero centered and text-driven — no decorative media, typography carries the message
### Don't
- Don't use pure white (`#ffffff`) as a page background — the warm tone is part of the brand identity
- Don't introduce additional saturated accent colors — the palette is intentionally controlled
- Don't add hero illustrations or photos — they'll break the typographic restraint
- Don't over-build the footer — this design keeps it minimal (1 cols, 1 links)
## 7b. Enforceable Brand Rules
*Structured Do/Don't with reasoning and validation tests. Agents can programmatically verify generated UI.*
```yaml
rules:
- id: brand-canvas-001
type: do
rule: "Always use the page background `rgb(238, 238, 238)` as the base canvas"
why: "Every component is designed to composit against this exact tone"
test: "document.body.style.backgroundColor === 'rgb(238, 238, 238)'"
- id: brand-accent-001
type: do
rule: "Reserve `rgb(51, 68, 136)` for primary CTAs and brand-mark signals only"
why: "Single chromatic assertion device — overuse dilutes meaning"
test: "querySelectorAll('[style*=\"rgb(51, 68, 136)\"]').length <= 3 per fold"
- id: brand-depth-001
type: dont
rule: "Do NOT introduce drop shadows on cards or sections"
why: "Containment is achieved via borders, not elevation — adding shadows breaks the depth contract"
test: "getComputedStyle(card).boxShadow === 'none'"
```
## 9. Responsive Behavior
### Breakpoints
| Name | Width | Key Changes |
|------|-------|-------------|
| Mobile | 640px | Single column layout |
| Tablet | 768px | 2-column grids |
| Desktop | 1024px | Full layout |
| Large Desktop | 1280px | Maximum width |
### Collapsing Strategy
- Navigation: horizontal links → hamburger menu on mobile
- Cards: multi-column → stacked vertical on mobile
- Footer: multi-column → stacked single column on mobile
### Touch Targets
- Navigation: adequate spacing between items
- Interactive elements: minimum 44px touch target recommended
### Collapsing Narrative
How the structural patterns adapt from desktop to mobile (extracted from both viewport extractions):
*No major structural differences detected between desktop and mobile widgets. The same blueprints scale rather than collapse — verify by inspecting actual mobile render.*
## 9b. Visual Tone & Photography
**Tone:** No imagery
No detectable photographic content. The site composes entirely with typography, color blocks, and minimal vector graphics. Clone strategy: lean on type hierarchy + layout rhythm rather than visual media.
**Media Format Mix:**
- *No detectable images.*
**Imagery Guidance for clones:**
- Don't add stock imagery just to "fill space" — this site's clarity comes from typographic restraint.
- Use generous whitespace, strong type hierarchy, and color blocks for visual rhythm.
## 10. Agent Prompt Guide
### Quick Reference
- Background: Light Gray (`#eeeeee`)
- Primary text: Pure Black (`#000000`)
- Accent: #334488 (`#334488`)
- Border: Light Gray (`#e5e7eb`)
- Font: system-ui
- Body: 16px weight 400
### Example Component Prompts
- "Create a hero section on Light Gray background (#eeeeee). Headline at 24px system-ui weight 700, line-height normal, color #000000."
- "Create the primary CTA button: `#334488` background, `#ffffff` text, 9999px border-radius, 11px 21px padding, 700 weight, system-ui font."
- "Build navigation: sticky on `#eeeeee`. system-ui 16px weight 400 for links."
### Iteration Guide
1. **Canvas**: Set the light canvas to Light Gray (`#eeeeee`) — every component is composited against this exact base.
2. **Typography**: All type in system-ui, weight range 400–700. Never exceed 700 — heavier weights break the brand's tonal restraint.
3. **Accent**: #334488 (`#334488`) is the sole interactive color. On hover → #334488 (`#334488`). Use CSS transitions, not opacity/brightness filters.
4. **Spacing**: Use the `--ca-space-*` token scale (16px–32px). All padding, margin, and gap values are multiples from this scale — no magic numbers.
5. **Tokens**: Import from §11 CSS Export (`--ca-*` vars). Never hardcode hex values — always reference a token so theming remains consistent.
## 11. CSS Design Tokens Raw Export
*Copy-paste ready `:root {}` block — all values extracted directly from the live site.*
```css
/* Colors */
:root {
--ca-surface-2: #eeeeee;
--ca-primary-hover: #334488;
--ca-on-primary: #ffffff;
--ca-hairline: #e5e7eb;
}
/* Typography */
:root {
--ca-font-primary: "system-ui", system-ui, sans-serif;
--ca-text-display: 24px;
--ca-text-body: 16px;
}
/* Spacing & Radius */
:root {
--ca-space-xxs: 2px;
--ca-space-xs: 16.08px;
--ca-space-sm: 135px;
--ca-space-md: 12px;
--ca-space-base: 16px;
--ca-space-lg: 24px;
--ca-space-xl: 32px;
--ca-space-2xl: 48px;
--ca-space-3xl: 64px;
--ca-radius-none: 0px;
--ca-radius-xs: 4px;
--ca-radius-sm: 8px;
--ca-radius-md: 14px;
--ca-radius-lg: 20px;
--ca-radius-xl: 32px;
--ca-radius-full: 9999px;
}
```
## 13. Page Structure Skeleton
*The actual layout the source site uses. Reproduce these sections in order to match the site structure.*
```yaml
page-skeleton:
- section: unknown
tag: div
height: 98px
width: 864px
layout: block
children: 3
```
**Agent rule**: rebuild sections in this order (sorted by vertical position). Match the layout primitive (grid N-col / flex direction / block).
## 12. Known Extraction Gaps
*Auto-detected limitations of this extraction — understand before building:*
- **Sparse component extraction** — fewer than 5 component types detected. Highly dynamic sections (modals, datepickers, carousels) require interaction to render and are not captured in a static pass.
---
## Extraction Completeness: 13/100 (D)
| Category | Score | Max | Detail |
|----------|-------|-----|--------|
| Colors & Palette | 4 | 25 | 3 named colors |
| Typography | 5 | 20 | 2 roles defined |
| Components | 0 | 20 | 0 specs extracted |
| Motion & Interaction | 0 | 15 | No keyframes |
| CSS Custom Properties | 0 | 10 | 0 vars |
| Responsive Breakpoints | 4 | 5 | 4 breakpoints |
| Variable Fonts | 0 | 5 | None detected |
## 12. Known Gaps & Confidence
Explicit list of what this extraction could NOT capture. Agents should not invent values for these — either skip the feature or use the documented baseline + heuristic fallback.
| Category | What's missing | Fallback strategy |
|----------|----------------|-------------------|
| **Photography** | No photographic content detected on this page | Don't add stock imagery; clarity comes from type + color blocks |
| **Keyframe animations** | No @keyframes declarations found (transitions only) | Use CSS transitions for state changes; avoid complex scroll-based animations |
| **Dark mode** | No dark-mode CSS variables or media queries detected | Light mode is canonical; do not generate dark-mode variants unless explicitly requested |
| **Form inputs** | No text input fields detected on this page | Use the documented border-radius + accent border on focus; 12-16px padding inside |
| **Design tokens** | Only 0 CSS custom properties (low signal for semantic naming) | Color names are nearest-neighbor approximations; verify against brand guidelines if available |
### Per-section confidence
| Section | Confidence | Reason |
|---------|------------|--------|
| §1 Visual Theme | High | Body bg extracted via getComputedStyle() |
| §2 Colors | Low | 0 CSS vars (semantic naming requires ≥20 for high) |
| §3 Typography | Low | 2 typography roles inferred |
| §4 Components | Low | 0 component variants captured |
| §7 Motion | Medium | Transitions only |
| §8 Do's/Don'ts | Medium | 7 rules generated; design-decisions.json has evidence per rule |
| §9 Responsive | High | 4 breakpoints detected |
| §9b Photography | Low | 0 images, hero not detected |
---
*Generated by Clone Architect — automated Playwright extraction + design analysis.*
*Source: https://example.com | 2026-05-30T20:38:52.432Z*
*All values verified via getComputedStyle() — no approximation, no hallucination.*
Re-extract: clone-architect update example.com