---
version: alpha
name: svelte.dev
description: "Light product system built on #ffffff with #d43008 as the primary CTA accent. Type anchored in DM Serif Display at 54px / weight 500. Extracted automatically from https://svelte.dev/ — rendered styles via getComputedStyle() + CSS custom properties (token-only values may not be painted)."
narrative: |
  svelte.dev is built on a pure-white canvas (rgb(255, 255, 255)).
  The system uses rgb(212, 48, 8) as the high-saturation accent for primary actions.
  Crisp CTAs (4px radius) reinforce a precise, technical aesthetic alongside editorial serif type (DM Serif Display) — voice of authority.
  DM Serif Display is paired with Fira Sans for secondary roles.
  Depth comes from borders and surface contrast rather than shadows — a flat, structural elevation model.
  Interactions are smoothed by transitions across many elements, with little or no keyframe animation.

colors:
  background: "#ffffff"
  surface-1: "#fdfdfd"
  surface-2: "#f2f2f2"
  ink: "#262626"
  ink-subtle: "#262626"
  primary: "#d43008"
  on-primary: "#ffffff"
  primary-hover: "#d43008"
  hairline: "#808080"
  primary-focus: "#d43008"

typography:
  display-xl:
    fontFamily: "DM Serif Display, Georgia, 'Times New Roman', serif"
    fontSize: 54px
    fontWeight: 500
    lineHeight: 1.2
    letterSpacing: 0
  body:
    fontFamily: "EB Garamond, Georgia, 'Times New Roman', serif"
    fontSize: 10px
    fontWeight: 400
    lineHeight: 1.5
    letterSpacing: 0
  body-sm:
    fontFamily: "Fira Sans, 'SF Pro Display', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif"
    fontSize: 16px
    fontWeight: 400
    lineHeight: 1.5
    letterSpacing: 0
  button:
    fontFamily: "Fira Sans, 'SF Pro Display', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif"
    fontSize: 10px
    fontWeight: 400
    lineHeight: normal
    letterSpacing: 0
  mono:
    fontFamily: "Fira Sans, 'SF Pro Display', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif"
    fontSize: 14px
    fontWeight: 400
    lineHeight: normal
    letterSpacing: 0

rounded:
  none: 0px
  xs: 4px
  sm: 56px
  md: 64px
  lg: 72px
  xl: 80px
  pill: 9999px

spacing:
  xxs: 2px
  xs: 5px
  sm: 7px
  md: 10px
  lg: 30px
  xl: 48px
  xxl: 60px

components:
  button-icon-button:
    backgroundColor: "transparent"
    textColor: "{colors.ink-subtle}"
    typography: "{typography.body}"
    rounded: "{rounded.xs}"
  button-light--invert:
    backgroundColor: "{colors.on-primary}"
    textColor: "{colors.ink-subtle}"
    typography: "{typography.body-sm}"
    rounded: "{rounded.none}"
    padding: 0px 10px
  input-text-input:
    backgroundColor: "{colors.surface-2}"
    textColor: "#000000"
    typography: "{typography.mono}"
    rounded: "{rounded.sm}"
    padding: 7px 7px 5.6px 28px
  navigation-main-nav:
    backgroundColor: "{colors.on-primary}"
    typography: "{typography.body}"
    rounded: "{rounded.none}"
    padding: 0px 48px

extracted_at: "2026-06-11T06:18:08.583Z"
completeness: 53
scoreVersion: "v2"

---

# Design System — svelte.dev
> Extracted automatically by Prism from https://svelte.dev
> Date: 2026-06-11
> Viewport: Desktop 1440x900 + Mobile 390x844
> Values are extracted, not hand-written: rendered styles via getComputedStyle() + colors declared in CSS custom properties (token-only values are marked `(token)` and may not be painted).


## 0. Design DNA

**Density**: moderate &nbsp;|&nbsp; **Motion**: subtle &nbsp;|&nbsp; **Weight**: light &nbsp;|&nbsp; **Aesthetic**: editorial-minimal

| Dimension | Value | Signal |
|---|---|---|
| Canvas | neutral | `#ffffff` |
| Type posture | serif-led (DM Serif Display) | "join our friendly community" |
| Color assertion | dual-accent | #d43008 |
| Whitespace | moderate | section rhythm 50px |
| Interaction | subtle | 2 keyframes, 5 transitions |
| Radius language | soft-pill | from token scale |

**Prism fingerprint**: `neutral-canvas · serif-display · dual-accent · soft-pill · subtle-motion`

> **🤖 TL;DR for AI agents** (read this first — saves you scanning the full doc):
>
> - **Canvas**: `rgb(255, 255, 255)` is the page background. Every component composits against this.
> - **Accent**: `rgb(212, 48, 8)` for primary CTAs ONLY. Never decorative.
> - **Body type**: 10px (token: `typography.body`). Default for ALL text not in a heading role.
> - **Section rhythm**: 50px between major bands. Card padding: 30px.
> - **Default radius**: 56px 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

svelte.dev uses a pure-white canvas (`#ffffff`), letting typography, color and imagery carry the visual weight. 

Headlines are set in **DM Serif Display**, a serif display face (the dominant type signature, e.g. "join our friendly community" at 54px). A second display voice — **EB Garamond** (serif) — appears in lower bands (e.g. "© 2026 Svelte contributors. Svelte is released under the MIT"), used for editorial accent. Body text is set in **EB Garamond**. 

Body text reads in Near-Black (`#262626`) — softened from pure black, a small but deliberate detail that lowers reading friction. **M Tricolor Red** (`#d43008`) is the single high-saturation color in the system — it earns its presence only on interactive elements, making CTAs and links the unmistakable focal points against the otherwise neutral palette. Shadow is absent by design — depth is conveyed through borders, spacing, and color differentiation rather than light simulation. 


**Key Characteristics:**
- Background: Pure White (`#ffffff`)
- Primary typeface: EB Garamond
- Primary text: Near-Black (`#262626`)
- Accent: M Tricolor Red (`#d43008`)
- Display: 54px weight 500
- Custom fonts loaded: EB Garamond, Atkinson Hyperlegible, DM Serif Display, Fira Mono, Fira Sans

## 2. Color Palette & Roles

### Background & Surface
- **Pure White** (`#ffffff`): Page background (primary)
- **Pure White** (`#fdfdfd`): Surface / elevated background
- **Off-White** (`#f2f2f2`): Surface / elevated background

### Text & Content
- **Near-Black** (`#262626`): Primary body text
- **Pure Black** (`#000000`): Secondary text
- **Near-Black** (`#141414`): Secondary text

### Accent & Interactive
- **M Tricolor Red** (`#d43008`): Interactive / accent

### Full Extracted Palette
**9 colors rendered on the page** + **5** more declared in design tokens (CSS custom properties — not necessarily painted). (7 categorized above + 7 additional below.)
Rendered values are read via `getComputedStyle()`; token values come from CSS variable declarations. Third-party logo colors are filtered out.

- `#808080` — Slate Grey
- `#666666` — Slate Grey
- `#dbdbdb` — Whitesmoke *(token)*
- `#ebebeb` — Whitesmoke *(token)*
- `#fafafa` — Off-White *(token)*
- `#0074c2` — M Tricolor Blue *(token)*
- `#994d00` — Chocolate *(token)*

### CSS Custom Properties (Design Tokens)

**Font Family Token**
- `--sk-font-family-ui`: `"Fira Sans", -apple-system, sans-serif`
- `--sk-font-family-mono`: `"Fira Mono", monospace`
- `--sk-font-family-heading`: `"DM Serif Display", Georgia, serif`
- `--sk-font-family-body`: `"EB Garamond", Georgia, serif`

**Spacing Token**
- `--sk-page-padding-top`: `8rem`
- `--sk-page-padding-bottom`: `8rem`
- `--sk-page-padding-side`: `4.8rem`

**Shadow Token**
- `--sk-raised-shadow`: `#dbdbdb`
- `--sk-shadow`: `drop-shadow(0px 0px 14px #0000001a)`

**Font Size Token**
- `--sk-font-size-h1`: `5.4rem`
- `--sk-font-size-h3`: `2.4rem`
- `--sk-font-size-ui-medium`: `1.6rem`
- `--sk-font-size-ui-large`: `3rem`

**Border Radius Token**
- `--sk-border-radius`: `.4rem`
- `--sk-border-radius-inner`: `.2rem`

**Text Color**
- `--shiki-color-text`: `#262626`

**Other tokens**
- `--sk-bg-1`: `#fff`
- `--sk-font-ui-large`: `400 3rem / 1.5 "Fira Sans", -apple-system, sans-serif`
- `--sk-bg-highlight`: `#ff9`
- `--sk-font-ui-medium`: `400 1.6rem / 1.5 "Fira Sans", -apple-system, sans-serif`
- `--sk-bg-accent`: `#d43008`
- `--sk-font-h2`: `500 3rem / 1.2 "DM Serif Display", Georgia, serif`
- `--sk-raised-active-color`: `#dbdbdb #ebebeb #ebebeb #dbdbdb`
- `--sk-bg-3`: `#fafafa`

## 3. Typography Rules

### Font Families
- **Primary**: `EB Garamond`
- **Secondary**: `DM Serif Display`
- **Font 3**: `Atkinson Hyperlegible`
- **Font 4**: `Fira Mono`
- **Font 5**: `Fira Sans`

### Custom Fonts Loaded
- **EB Garamond** weight 400 (normal)
- **EB Garamond** weight 500 (normal)
- **Atkinson Hyperlegible** weight 400 (normal)
- **DM Serif Display** weight 400 (normal)
- **Fira Mono** weight 400 (normal)
- **Fira Sans** weight 400 (normal)

### Typography Hierarchy

| Role | Font | Size | Weight | Line Height | Letter Spacing | Notes |
|------|------|------|--------|-------------|----------------|-------|
| Display Hero | DM Serif Display | 54px | 500 | 1.2 | normal | Main headline (h1) |
| Link Large | Fira Sans | 16px | 400 | 1.5 | normal | Link (16px) — Decoration: none |
| Input | Fira Sans | 14px | 400 | normal | normal | Form input (14px) |
| Body | EB Garamond | 10px | 400 | 1.5 | normal | Standard reading text |
| Button Small | Fira Sans | 10px | 400 | normal | normal | Button label (10px) |

### Full Font Size Scale

Sizes detected in the design (descending): `54px`, `22px`, `20px`, `16px`, `14px`, `13px`, `12px`, `10px`

> 4 size(s) detected outside the sampled hierarchy (22px, 20px, 13px, 12px). These appear on elements not in the sampled set — likely additional display sizes, marketing-section overrides, or third-party-widget styles.

## 4. Component Stylings

### Buttons

**Icon Button**
- Background: `transparent`
- Text: `#262626` `{colors.ink-subtle}`
- Padding: 0px
- Radius: 4px
- Font: 10px weight 400
- Use: Toolbar/UI icons
- Hover: borderColor: `#ebebeb`
- Focus: outline: `rgb(212, 48, 8) solid 2px`

**Light / Invert**
- Background: `#ffffff` `{colors.on-primary}`
- Text: `#262626` `{colors.ink-subtle}`
- Padding: 0px 10px
- Radius: 0px
- Font: 16px weight 400
- Use: Bright CTA on dark sections
- Hover: borderColor: `#ebebeb`
- Focus: outline: `rgb(212, 48, 8) solid 2px`

### Inputs & Forms

**Text Input**
- Background: `#f2f2f2` `{colors.surface-2}`
- Text: `#000000`
- Padding: 7px 7px 5.6px 28px
- Radius: 56px
- Border: 0px none rgb(0, 0, 0)
- Font: 14px weight 400
- Use: Text fields, search inputs
- Focus: outline: `rgb(212, 48, 8) solid 2px`

### Navigation

**Main Nav**
- Background: `#ffffff` `{colors.on-primary}`
- Padding: 0px 48px
- Radius: none
- Font: 10px weight 400
- Use: Fixed/sticky grid nav — N/A items
- Hover: textDecoration: `underline`


## 4b. Component Behaviors (State Matrix)

### Interaction State Narrative


*State transitions extracted via Playwright simulation — exact values in the YAML matrix below.*

```yaml
component-behaviors:
  button:
    default:
      bg: "rgba(0, 0, 0, 0)"
      fg: "rgb(38, 38, 38)"
    hover:
      bg: "transparent"
      fg: "inherit"
    focus:
      bg: "transparent"
      fg: "inherit"
  input:
    default:
      bg: "rgb(242, 242, 242)"
      fg: "rgb(0, 0, 0)"
    focus:
      bg: "transparent"
      fg: "inherit"
  link:
    default:
      bg: "rgb(255, 255, 255)"
      fg: "rgb(38, 38, 38)"
  navLink:
    default:
      bg: "rgba(0, 0, 0, 0)"
      fg: "rgb(212, 48, 8)"
    hover:
      bg: "transparent"
      fg: "inherit"
```

**Agent usage**: Validate generated components against this matrix. If your output's `:hover` state changes properties not listed here, you are off-brand.


## 4c. Component Vocabulary (Closed System)

*This brand uses ONLY the following component vocabulary. Introducing new variants without justification breaks the system's tonal coherence.*

### Buttons
- **2 shape(s)** in this system: `Icon Button`, `Light / Invert`
- **DO NOT introduce new buttons variants** without justification

### Inputs & Forms
- **1 shape(s)** in this system: `Text Input`
- **DO NOT introduce new inputs & forms variants** without justification

### Navigation
- **1 shape(s)** in this system: `Main Nav`
- **DO NOT introduce new navigation variants** without justification

## 5. Layout Principles

### Layout Type
**top-nav + content**

### Grid
Single column, centered content

### Max Width
76rem

### Spacing System
Generous spacing — editorial breathing room

| Token | Value |
|-------|-------|
| xxs | 2px |
| xs | 5px |
| sm | 7px |
| md | 10px |
| base | 28px |
| lg | 30px |
| xl | 48px |
| 2xl | 50px |
| 3xl | 60px |

### Border Radius Scale
| Name | Value | Use |
|------|-------|-----|
| None | 0px | No rounding |
| Xs | 4px | Tiny corners (badges, micro elements) |
| Sm | 56px | Buttons, inputs, small elements |
| Md | 64px | Cards, containers |
| Lg | 72px | Large rounded elements, pill segments |
| Xl | 80px | Category strips, featured containers |
| Full | 9999px | Pills, avatars, circular elements |

### Shape Language

| Component | Border Radius |
|-----------|---------------|
| Buttons | `4px` |
| Inputs & Forms | `56px` |
| Navigation | `none` |
| Page Body | `0px` |
| Primary Input | `56px` |

**Shape Personality**: Sharp + Pill Contrast — Angular precision with pill-shaped accents (status badges, tags). Creates strong visual hierarchy.

**Full Radius Spectrum**: 0px, 2px, 4px, 56px (from `allBorderRadii` scan)


## 5b. Spacing Rhythm Names

**Measured section padding**: bands use ~100px internal vertical padding (up to 100px) — **very airy / premium**. (Distinct from the gap *between* sections above.) Reproduce this generous vertical breathing room; cramped spacing is the #1 tell of a cheap clone.

*Named spacing tokens with explicit use cases. Use these names in YOUR code instead of raw pixels for consistency.*

| Name | Value | Use case |
|------|-------|----------|
| **hero** | `60px` | Top/bottom of full-bleed hero sections |
| **section** | `48px` | Between major bands (color change, content shift) |
| **subsection** | `30px` | Within a section, between content groups |
| **card** | `10px` | Card padding, list-item spacing |
| **compact** | `7px` | Form fields, tight clusters, badge padding |
| **micro** | `5px` | 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).

**3/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:** full-viewport hero (≥70% screen height)
- **Heading:** "Svelte" — 54px left-aligned
- **Subheading:** "Svelte is a UI framework that uses a compiler to let you write breathtakingly concise components that do minimal work in the browser, using languages "
- **Media:** present, positioned top
- **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. Place media top of text.

### Navigation Pattern

- **Position:** fixed (stays visible during scroll)
- **Layout:** logo-left-links-left — Logo and links both on the left (CTAs typically right)
- **Height:** 60px
- **Logo:** ✓ present
- **Nav links:** 9 primary items
- **CTAs in nav:** 0 (no buttons — links only)
- **Search:** ✓ search input visible in nav
- **Theme toggle:** ✓ dark/light mode switcher present
- **Clone instruction:** Build a fixed logo left links left navigation. Link-only — no button styling needed.

### Footer Pattern

- **Columns:** 1
- **Links:** 1 total
- **Height:** 33px
- **Includes:** ✗ no newsletter | ✓ social icons |  ✓ copyright
- **Clone instruction:** Build a 1-column footer with ~1 links per column, social media links, and a copyright line.

## 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.

## 7. Motion & Interaction

### Duration Scale

| Value | Tier | Typical Use |
|-------|------|-------------|
| `200ms` | Normal | Panel open/close, navigation |

### Copy-Paste Transition Snippets

**Filter**
```css
transition: filter 0.2s, scale 0.2s;
```

**Filter**
```css
transition: filter 0.2s;
```

**All Props**
```css
transition: height 0.2s;
```

**Opacity**
```css
transition: opacity 0.2s;
```

### Keyframe Animation Catalog

| Animation Name | Type | Animated Props | Use Hint |
|----------------|------|----------------|----------|
| `svelte-curb4c-fade-in` | Fade | opacity | Element entrance |
| `svelte-17u18it-fade` | Fade | opacity | UI transition |

### Motion Fingerprint

- **Speed Character**: Balanced Pacing (median duration: `200ms`)
- **Dominant Easing**: standard CSS easings
- **Animation Library**: 2 unique animations (2 total including variants)

> This design moves with balanced pacing timing using standard CSS easings, creating a UI that feels natural and fluid.

## 8. Do's and Don'ts

### Do
- Use Near-Black (`#262626`) for text — not pure black, it's warmer and more readable
- Use EB Garamond as the primary typeface — it defines the brand personality
- Keep font weights between 400-500 — the system uses a narrow weight range for subtle hierarchy
- Use M Tricolor Red (`#d43008`) as the primary accent — it's the brand's signature interactive color
- Keep navigation fixed to the top — the design uses a persistent navigation pattern
- Maintain nav height at 60px — consistent vertical space for the navigation bar
- Respect the 5px–48px spacing range — the design uses a wide scale for visual breathing room
- Make the hero full-viewport (≥70% screen height) — this design uses an immersive hero, not a tall navbar
- Make the navigation fixed — it stays visible during scroll, signaling content depth
- Include a search input directly in the nav — discoverability is a primary UX value here
- Include a theme toggle in the nav — dark mode is a first-class feature

### Don't
- Don't use pure black (`#000000`) for text — the near-black adds warmth
- Don't substitute with generic sans-serif or serif — the custom font carries the brand
- Don't use weight 700 (bold) or above — 500 is the maximum weight in this system
- Don't introduce additional saturated accent colors — the palette is intentionally controlled
- Don't collapse or hide the nav on scroll without an explicit scroll-triggered animation — the design uses fixed nav presence
- Don't put a CTA button in the nav — this design uses links only at the top
- 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(255, 255, 255)` as the base canvas"
    why: "Every component is designed to composit against this exact tone"
    test: "document.body.style.backgroundColor === 'rgb(255, 255, 255)'"
  - id: brand-accent-001
    type: do
    rule: "Reserve `rgb(212, 48, 8)` for primary CTAs and brand-mark signals only"
    why: "Single chromatic assertion device — overuse dilutes meaning"
    test: "querySelectorAll('[style*=\"rgb(212, 48, 8)\"]').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 | 480px | Single column, compact spacing |
| Mobile Large | 600px | Expanded mobile layout |
| Mobile Large | 720px | Expanded mobile layout |
| Mobile Large | 767px | Expanded mobile layout |
| Tablet | 1000px | Multi-column grids begin |
| Desktop | 1140px | Full feature layout |

### Token Diff — Desktop vs Mobile

| Element | Property | Desktop | Mobile |
|---------|----------|---------|--------|
| heading | font-size | `54px` | `36px` |
| heading | line-height | `64.8px` | `43.2px` |
| nav | display | `grid` | `flex` |
| nav | padding | `0px 48px` | `0px 16px` |
| main | padding | `60px 0px 0px` | `0px` |

### Collapsing Strategy
- Headlines: 54px → 36px on mobile
- Navigation: grid → flex on mobile
- Container padding: 60px 0px 0px → 0px on mobile
- Cards: multi-column → stacked vertical on mobile
- Footer: multi-column → stacked single column on mobile

### Touch Targets
- Buttons: 0px padding
- 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.*


## 7c. Visual Effects & Dynamic Behavior

*The live/dynamic layer beyond static CSS — reproduce these, not flat substitutes. This is often what separates a faithful clone from a wireframe.*

- **Clip-path shapes** — 1 non-rectangular cut(s).

> **Motion fingerprint**: non-rectangular shapes (1)

## 9b. Visual Tone & Photography

**Tone:** Mixed photography + illustration

A balanced mix of photographic content and vector graphics. Photos likely carry product/lifestyle context while SVG handles icons, logos, and decorative accents.

**Canonical Brand Image (OG):**
- https://svelte.dev/images/twitter-thumbnail.jpg
  *This is the image shown when the site is shared on social media — represents the brand visual essence.*

**Hero Image (above-fold dominant visual):**
- Aspect: 3.82:1 (ultra-wide cinematic)
- Rendered size: 1440×377px
- Alt text: "The Svelte compiler packaging up your component code"
- *Use this aspect ratio + composition for your clone's hero — mimicking the proportion preserves the visual hierarchy.*

**Aspect Ratio Distribution:**
- Landscape (1.15–2.3): 2 (40%)
- Portrait (<0.87): 0 (0%)
- Square (0.87–1.15): 0 (0%)
- Ultra-wide (>2.3): 3 (60%)

**Media Format Mix:**
- PNG: 4 (logos, transparent UI elements, mockups)
- SVG: 1 (icons, illustrations, decorative geometry)

**Average rendered image size:** 785×293px
**Above-fold image count:** 4 / 5

**Imagery Guidance for clones:**
- Mix photography and illustration intentionally: photos for product/context, vectors for icons + decorative accents.
- Respect the format split — replacing JPGs with illustrations (or vice versa) will shift the brand tone.

## 10. Agent Prompt Guide

### Quick Reference
- Background: Pure White (`#ffffff`)
- Primary text: Near-Black (`#262626`)
- Accent: M Tricolor Red (`#d43008`)
- Border: Slate Grey (`#808080`)
- Font: EB Garamond
- Body: 10px weight 400

### Example Component Prompts
- "Create a hero section on Pure White background (#ffffff). Headline at 54px EB Garamond weight 500, line-height 1.2, color #262626."
- "Create the primary CTA button: `#d43008` background, `#262626` text, 4px border-radius, 8px 15px padding, 500 weight, EB Garamond font."
- "Build navigation: fixed on `#ffffff`. EB Garamond 10px weight 400 for links."

### Iteration Guide
1. **Canvas**: Set the light canvas to Pure White (`#ffffff`) — every component is composited against this exact base.
2. **Typography**: All type in EB Garamond, weight range 400–500. Never exceed 500 — heavier weights break the brand's tonal restraint.
3. **Accent**: M Tricolor Red (`#d43008`) is the sole interactive color. On hover → M Tricolor Red (`#d43008`). Use CSS transitions, not opacity/brightness filters.
4. **Shape**: CTAs at `4px`. Apply border-radius from the extracted scale only — don't invent intermediate values.
5. **Spacing**: Use the `--ca-space-*` token scale (5px–48px). All padding, margin, and gap values are multiples from this scale — no magic numbers.
6. **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-on-primary: #ffffff;
  --ca-surface-1: #fdfdfd;
  --ca-surface-2: #f2f2f2;
  --ca-ink-subtle: #262626;
  --ca-primary-focus: #d43008;
  --ca-hairline: #808080;
}

/* Typography */
:root {
  --ca-font-primary: "DM Serif Display", system-ui, sans-serif;
  --ca-text-display: 54px;
  --ca-text-body: 10px;
  --ca-text-small: 16px;
  --ca-text-button: 10px;
  --ca-text-mono: 14px;
}

/* Spacing & Radius */
:root {
  --ca-space-xxs: 2px;
  --ca-space-xs: 5px;
  --ca-space-sm: 7px;
  --ca-space-md: 10px;
  --ca-space-base: 28px;
  --ca-space-lg: 30px;
  --ca-space-xl: 48px;
  --ca-space-2xl: 50px;
  --ca-space-3xl: 60px;
  --ca-radius-none: 0px;
  --ca-radius-xs: 4px;
  --ca-radius-sm: 56px;
  --ca-radius-md: 64px;
  --ca-radius-lg: 72px;
  --ca-radius-xl: 80px;
  --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: hero
    tag: div
    height: 900px
    width: full-bleed
    layout: block
    children: 7
    vertical-padding: ~30px
  - section: hero
    tag: main
    height: 900px
    width: full-bleed
    layout: block
    children: 1
    vertical-padding: ~30px
    padding: "60px 0px 0px"
  - section: unknown
    tag: div
    classes: ["hero"]
    height: 488px
    width: full-bleed
    layout: block
    children: 2
    vertical-padding: ~50px
    padding: "100px 0px 0px"
  - section: unknown
    tag: div
    classes: ["hero-content"]
    height: 197px
    width: 720px
    layout: flex-column justify=normal
    children: 2
  - section: section
    tag: section
    height: 713px
    width: full-bleed
    layout: block
    children: 1
    vertical-padding: ~100px (airy)
    padding: "100px 0px"
  - section: feature-section
    tag: section
    height: 907px
    width: full-bleed
    layout: block
    children: 1
    vertical-padding: ~100px (airy)
    padding: "100px 0px"
  - section: content-section
    tag: div
    classes: ["wrapper"]
    height: 128px
    width: full-bleed
    layout: block
    children: 1
  - section: section
    tag: section
    height: 233px
    width: full-bleed
    layout: block
    children: 1
    vertical-padding: ~100px (airy)
    padding: "100px 0px"
```

**Agent rule**: rebuild sections in this order (sorted by vertical position). Match the layout primitive (grid N-col / flex direction / block).


## 14. Copy Library (Real Content from Source)

*Actual text content extracted from the live page. Use these strings verbatim when reproducing the site — they carry the brand voice.*

```yaml
copy:
  section-headings:
    - "used by companies you’ve heard of"
    - "join our friendly community"
  navigation:
    - "Docs"
    - "Svelte"
    - "SvelteKit"
    - "CLI"
    - "AI"
    - "Tutorial"
    - "Packages"
    - "Playground"
    - "Blog"
```

**Agent rule**: reuse these exact strings when generating UI. Do NOT translate or rephrase — brand voice is preserved through the original wording.


## 15. Asset Inventory (Image Roles & Ratios)

*Image inventory classified by role and aspect ratio. When reproducing the site, allocate this number of assets per role.*

```yaml
assets:
  logo:
    count: 11
    avg-ratio: 3.09
    common-aspect: "~16:6 banner"
    sample-alts:
      - "Svelte pronunciation guide"
      - "Mullvad logo"
      - "Stack Overflow logo"
  hero:
    count: 2
    avg-ratio: 3.21
    common-aspect: "~16:6 banner"
    sample-alts:
      - "The Svelte compiler packaging up your component code"
      - "Photos by Marcel Cutts from the 2022 Svelte Summit in Stockh"
  thumbnail:
    count: 3
    avg-ratio: 1.00
    common-aspect: "~1:1 square"
    sample-alts:
      - "hide subtitles"
      - "unmute"
      - "pause"
```

**Agent rule**: when generating placeholder images, match these counts and aspect ratios. Use neutral placeholder backgrounds for `product` (e.g. `#f5f5f5`), full-color photography hints for `hero` and `editorial`.


## 16. Component HTML Templates

*Suggested HTML markup for reproducing the key components — based on what was detected in the source DOM.*

### Button (primary action)
```html
<button class="btn btn-primary">
  Action
</button>
```
_Source pattern detected: padding `0px` · radius `4px` · weight `400`_

**Agent rule**: use these markup skeletons as the structural baseline. Apply tokens from §2-3 for visual styling.


## 17. Content Architecture & Resources (Links by Purpose)

*The page's links classified by purpose — the information architecture to reproduce. Categories, featured images, devices and projects are extracted from the rendered DOM, not guessed.*

**By purpose:** **nav** 6 · **cta** 1 · **docs** 5 · **blog** 1 · **social** 41 · **other** 6

**Primary actions (conversion path):**
- Primary call-to-action — "GET STARTED" (the conversion path) → `https://svelte.dev/docs`

**Signals:** 44/60 links carry a featured image · dominant link roles: footer-link (40), inline-link (9), navigation (6).


---
## Extraction Completeness: 53/100 (D)

| Category | Score | Max | Detail |
|----------|-------|-----|--------|
| Colors & Palette | 10 | 25 | 7 named colors |
| Typography | 13 | 20 | 5 roles defined |
| Components | 12 | 20 | 3 specs extracted |
| Motion & Interaction | 10 | 15 | Keyframes |
| CSS Custom Properties | 4 | 10 | 76 vars |
| Responsive Breakpoints | 5 | 5 | 6 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.

*Auto-detected extraction limitations — understand before building:*

- **Licensed web fonts (EB Garamond, Atkinson Hyperlegible, DM Serif Display)** — detected but not downloaded. Substitute with your licensed copy or a close fallback (see Typography section for metrics).
- **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.

*✅ No critical extraction gaps detected — high-confidence reproduction expected.*

### Per-section confidence

| Section | Confidence | Reason |
|---------|------------|--------|
| §1 Visual Theme | High | Body bg extracted via getComputedStyle() |
| §2 Colors | High | 76 CSS vars (semantic naming requires ≥20 for high) |
| §3 Typography | High | 5 typography roles inferred |
| §4 Components | Medium | 3 component variants captured |
| §7 Motion | High | Keyframes + transitions |
| §8 Do's/Don'ts | High | 18 rules generated; design-decisions.json has evidence per rule |
| §9 Responsive | High | 6 breakpoints detected |
| §9b Photography | High | 5 images, hero present |

## 11.1 CSS Implementation Guide (CSS Interception Engine v2.15+)

*Ready-to-use CSS from Prism's CSS Interception Engine — intercepted directly from the site's CSS files (bypasses CORS). Copy-paste into your `<style>` block.*

### Font Loading

3 font file(s) captured (68KB total). When running `prism add`, fonts are saved to `extractions/svelte.dev/fonts/` and embedded as base64 in the output HTML.

**@font-face declarations to use:**
```css
@font-face {
  font-family: 'EB Garamond';
  /* src: url('/fonts/EB-Garamond.woff2') format('woff2'); */
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  /* src: url('/fonts/EB-Garamond.woff2') format('woff2'); */
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  /* src: url('/fonts/EB-Garamond.woff2') format('woff2'); */
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  /* src: url('/fonts/Atkinson-Hyperlegible.woff2') format('woff2'); */
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Serif Display';
  /* src: url('/fonts/DM-Serif-Display.woff2') format('woff2'); */
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Serif Display';
  /* src: url('/fonts/DM-Serif-Display.woff2') format('woff2'); */
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Fira Mono';
  /* src: url('/fonts/Fira-Mono.woff2') format('woff2'); */
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fira Sans';
  /* src: url('/fonts/Fira-Sans.woff2') format('woff2'); */
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
```

### Keyframe Animations (Intercepted from CSS)

**2 @keyframes found** — these are the real animation definitions:

```
@keyframes svelte-curb4c-fade-in { ... }
@keyframes svelte-17u18it-fade { ... }
```

<details><summary>Full keyframes CSS (2 animations)</summary>

```css
@keyframes svelte-curb4c-fade-in{0%{opacity:0}
@keyframes svelte-17u18it-fade{0%{opacity:0}
```
</details>

### Brand Gradient Palette

**2 complex gradients captured** from the site's CSS. The first few are the most prominent visual decorations:

```css
/* Gradient 1 */
background: radial-gradient(64.14% 72.25% at 47.58% 31.75%, #71787f85 0%, #fff0 100%);

/* Gradient 2 */
background: linear-gradient(92.4deg, #26292c 14.67%, #0000007a 54.37%, #1a22289e 92.49%);

```

### Hover State CSS (Intercepted)

**5 hover rule lines** captured from CSS files. Key interactive transitions from real CSS (not inferred):

```css
h2.svelte-3iokpk a:where(.svelte-3iokpk):hover:before,h2.svelte-3iokpk a:where(.svelte-3iokpk):focus:before{color:var(--sk-fg-1)}

.links.svelte-wf8082 a:where(.svelte-wf8082):hover{box-shadow:inset 0 -1px 0 0 var(--sk-border)}

a.svelte-m9pt1v:hover{--background:var(--sk-bg-3);text-decoration:none}

.input-group.svelte-mdr7cx button:where(.svelte-mdr7cx):hover,.input-group.svelte-mdr7cx button:where(.svelte-mdr7cx):focus{color:var(--sk-fg-3)}

button[aria-label=Close].svelte-mdr7cx:hover,button[aria-label=Close].svelte-mdr7cx:focus{color:var(--sk-fg-3)}

.results-container.svelte-mdr7cx li:where(.svelte-mdr7cx):hover{background:var(--sk-bg-3)}

.results-container.svelte-mdr7cx li:where(.svelte-mdr7cx) button[aria-label=Delete]:where(.svelte-mdr7cx):hover{color:var(--sk-fg-3);outline:none}
```

> **Note**: All values above are extracted from the live site's CSS files. The font files are saved locally by Prism and embedded in the output HTML. Use them as-is for maximum fidelity.

## 11.2 Measured Reality (CDP Engine)

Captured directly from Chrome's engine across **all 391 rendered nodes** — not a sample. These are the values the page *actually paints*, weighted by how often they appear.

### Real Responsive Breakpoints
**14 breakpoints** read from the live `@media` rules (not guessed):
`480px` · `600px` · `720px` · `767px` · `768px` · `800px` · `831px` · `832px` · `900px` · `960px` · `1000px` · `1140px` · `1400px` · `1600px`

### Measured Design Scale
**Type scale by usage** (× = paint count): `10px`×300 · `16px`×41 · `22px`×26 · `54px`×8 · `12px`×6 · `20px`×4 · `13px`×3 · `14px`×2

**Radius scale** (× = paint count): `50%`×192 · `4px`×14 · `2px`×8 · `56px`×1

**Weights** (× = paint count): `400`×382 · `500`×8

**Layout gaps** (× = paint count): `10px`×8 · `5px`×3 · `40px`×3

### Provenance — measured styles on key elements
Read from the live CSSOM (includes runtime-injected CSS). This is *what actually styles the page*, by element:

```css
body { font-family:var(--sk-font-family-body); color:var(--sk-fg-2); background-color:var(--sk-bg-1) }
nav { background-color:var(--sk-bg-1); font-family:var(--sk-font-family-body) }
h1 { color:var(--sk-fg-1) }
h2 { color:var(--sk-fg-1) }
button { font-family:var(--sk-font-family-ui); font-size:inherit }
button { color:currentColor; background-color:#0000 }
button { border-radius:var(--sk-border-radius) }
a { color:var(--sk-fg-accent) }
a { background:var(--sk-bg-1); color:inherit }
input { font-family:var(--sk-font-family-ui); font-size:inherit }
input { background:no-repeat .6em 55% / 1.2em 1.2em url("data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='%23ccc'%20d='M9.5,3A6.5,6.5%200%200,1%2016,9.5C16,11.11%2015.41,12.59%2014.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41%2011.11,16%209.5,16A6.5,6.5%200%200,1%203,9.5A6.5,6.5%200%200,1%209.5,3M9.5,5C7,5%205,7%205,9.5C5,12%207,14%209.5,14C12,14%2014,12%2014,9.5C14,7%2012,5%209.5,5Z'%20/%3e%3c/svg%3e"), var(--sk-bg-4); border-radius:5.6rem; font-family:inherit; font-size:1em }
```

> Selectors normalised to their semantic element — source class names are often build-hashed (`.bgDIHX`) and not reusable. The declarations + CSS vars are the transferable part.

---
*Generated by Prism — automated Playwright extraction + design analysis.*
*Source: https://svelte.dev | 2026-06-11T06:18:08.607Z*
*Values extracted via getComputedStyle() (rendered) + CSS custom properties (tokens, marked `(token)`). Token-only values may not be painted — verify against the live site before shipping.*
