SpecPeek / Extract DESIGN.md
FOR CURSOR · CLAUDE CODE · V0 · WINDSURF · ZERO LLM TOKENS BURNED

Extract DESIGN.md & W3C Design Tokens from Any Active Webpage Locally

Stop feeding blurry screenshots or 20,000-token HTML dumps into AI coding agents. SpecPeek reads computed styles directly from your active tab and deterministically exports clean DESIGN.md, Tailwind @theme, W3C Design Tokens JSON, and cleaned SVGs — 100% locally in Chrome.

Zero cloud DOM uploads Zero API keys required 1-Click Brand Kit ZIP
REAL OUTPUT SAMPLE

What a SpecPeek DESIGN.md Looks Like

Compact, deterministic Markdown engineered to fit cleanly inside your repo context without hallucinated colors or guessed font sizes.

DESIGN.md · Generated locally from live DOM ● DETERMINISTIC · 0 NETWORK CALLS
# Design System Specification — Current Page
> Extracted locally by SpecPeek (activeTab · deterministic computed styles)

## 1. Color Palette & Semantic Roles
| Role | HEX | OKLCH | Usage / Notes |
| --- | --- | --- | --- |
| Background Base | `#0B0E14` | `oklch(0.165 0.015 262)` | Primary page canvas |
| Elevated Surface | `#141A28` | `oklch(0.222 0.024 261)` | Cards, drawers, modals |
| Primary Text | `#F1F5F9` | `oklch(0.968 0.007 247)` | Headings & body (`16.8:1` AAA on base) |
| Muted Text | `#94A3B8` | `oklch(0.704 0.035 256)` | Secondary copy (`6.7:1` AA+) |
| Accent Primary | `#38BDF8` | `oklch(0.768 0.145 227)` | Primary CTA & active focus (`#06131F` ink · `9.42:1` AAA) |
| Accent Semantic | `#10B981` | `oklch(0.696 0.149 162)` | Verification badges & pass states |

## 2. Typography Scale
- **Display / H1**: System Sans (`-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto`), `47px / 53px` (`1.12`), weight `800`, tracking `-0.032em`
- **Section H2**: System Sans, `37px / 44px` (`1.18`), weight `800`, tracking `-0.025em`
- **Card H3**: System Sans, `22px / 28px` (`1.25`), weight `700`, tracking `-0.02em`
- **Body**: System Sans, `16px / 26px` (`1.60`), weight `400`
- **Code / Mono**: `ui-monospace, SFMono-Regular, Menlo, Consolas`, `12px–13px`, weight `600`

## 3. Spacing, Radii & Elevation
- **Container Max Width**: `1180px`, horizontal gutter `24px` (mobile `14px`)
- **Border Radii**: `sm: 8px` · `md: 12px` · `lg: 16px` · `pill: 999px`
- **Hairline Border**: `1px solid rgba(148, 163, 184, 0.14)`
- **Elevated Shadow**: `0 24px 60px rgba(0, 0, 0, 0.55)`

## 4. Implementation Rules for AI Coding Agents
1. Use `#38BDF8` with dark ink `#06131F` for primary buttons to preserve WCAG AAA (`9.42:1`).
2. Keep border radii strictly on the `8px / 12px / 16px` scale; avoid arbitrary mixed radii.
3. Preserve `1px` low-opacity slate borders (`rgba(148,163,184,0.14)`) for dark surface separation.
AI WORKFLOW COMPARISON

Deterministic Local Extraction vs. Screenshot / HTML Prompting

Using a structured local spec cuts back-and-forth iterations when implementing UI in Cursor, Claude Code, v0, or Windsurf.

Workflow Factor SpecPeek Local DESIGN.md & Tokens Pasting Screenshots or Raw HTML into LLMs
Color & Contrast Accuracy Exact Values Reads live computed HEX/RGB/HSL/OKLCH values and computes exact WCAG 2.1/2.2 contrast ratios. Approximated Vision models guess hex codes from compressed pixels and miss subtle border opacities.
Token Context Efficiency Compact Clean ~1 KB Markdown spec or W3C Design Tokens JSON ready for @DESIGN.md context pinning. Noisy Raw DOM dumps burn tens of thousands of tokens on wrapper divs, tracking scripts, and browser defaults.
Ready-to-Paste Artifacts 4 Formats Exports DESIGN.md, Tailwind @theme, W3C Design Tokens JSON, and Brand Kit ZIP (with cleaned inline SVGs). Manual Cleanup Requires extra prompts to convert prose descriptions back into CSS variables or Tailwind tokens.
Data Privacy on Internal Apps 100% Local Runs locally inside your browser tab via MV3 activeTab; zero page data leaves your device. Third-Party Upload Sending staging screenshots or internal HTML exposes proprietary UI to external servers.
3-STEP WORKFLOW

From Live Reference Page to Repo-Ready System Spec in Seconds

1. Trigger on the Active Tab

Press Alt+Shift+P or click the SpecPeek icon on any site or local staging build. Chrome grants activeTab access only to that tab — zero passive scripts elsewhere.

2. Export Tokens & Brand Kit

Preview your top 5 tokens free, or export the complete DESIGN.md, Tailwind @theme block, W3C Design Tokens JSON, and cleaned SVGs in a single Brand Kit ZIP on Pro Solo ($39 one-time).

3. Pin in Cursor / Claude Code

Commit DESIGN.md and tokens.json to your repo. Reference them in prompts so every new component matches your palette, type scale, spacing, and contrast rules from the first generation.

FREQUENTLY ASKED QUESTIONS

Extracting DESIGN.md & Design Tokens

Does SpecPeek work on authenticated or localhost pages?

Yes. Because extraction runs strictly inside your local browser tab after you invoke SpecPeek, it works identically on localhost, private internal dashboards, and staging environments behind VPNs.

What is inside the 1-click Brand Kit ZIP?

The Pro Solo and Agency Brand Kit ZIP bundles your current-page DESIGN.md, Tailwind @theme / CSS variables, W3C Design Tokens JSON, and style-inlined cleaned SVGs via Chrome's local downloads API.

What does Agency add for client deliverables?

Agency ($99 one-time, 5 devices) writes a custom Prepared by studio header into exported DESIGN.md, CSS, and JSON files and includes commercial client handoff rights.

Can I also convert single elements to Tailwind or React JSX?

Yes. Click any element in the SpecPeek HUD to export deterministic Tailwind v3/v4, React JSX, or Stripped CSS in under 20ms, or read our Tailwind CSS Inspector guide.

Give your AI coding agent real design tokens, not guesses.

Install Free Forever to inspect live pages and preview top 5 tokens, or unlock full DESIGN.md & Brand Kit ZIP exports with Pro Solo ($39 one-time, 3 devices).