# Design System Gallery — HTML Preview Template Deterministic HTML template for `brand/design-system.html`. **Zero LLM cost** — all values are substituted from `brand/design-system.md`. ## Template ```html {{app_name}} — Design System @import url('https://fonts.googleapis.com/css2?family={{heading_font_url}}&family={{body_font_url}}&display=swap');

{{app_name}}

Design System | Generated {{date}} | /design-system v0.1
{{direction}}

Palette

{{token_name}}
{{hex}}
{{usage}}

Status Palette

{{name}}
{{hex}}

Typography

{{role}}
The quick brown fox jumps over the lazy dog

Components

Buttons

Inputs

Cards

Flat Card

Border-defined, no shadow

Elevated Card

Shadow-defined, no border

Badges

Completed In Progress Overdue Scheduled

List Rows

Boiler Room — Lvl 3, panel 4 (north wall…
J. Martínez · 2h ago
Done
HVAC Unit #4 — Roof access required
A. Chen · Yesterday
In Progress
Fire suppression check — overdue
—
Overdue

Forbidden Patterns (Negatives)

  • {{negative_rule}}
``` ## Substitution rules 1. All `{{variable}}` placeholders are replaced with values from `brand/design-system.md` 2. Palette swatches: iterate over `## Palette` table rows 3. Status swatches: iterate over `## Status palette` table rows 4. Typography ladder: iterate over `## Typography` table rows, render each at actual size/weight 5. Negatives: iterate over `## Negatives` list items 6. List row sample data: synthesize 3 rows from the app's entity names (use realistic edge-case data) 7. Google Fonts import: construct URL from heading + body font families (skip if system fonts) ## Rendering notes - **Zero LLM cost** — this is pure template substitution - Font import via Google Fonts `@import` for self-contained HTML - If heading font is proprietary (UberMove, Saans), fall back to Inter in the preview - Badge background colors use the status hex + `22` suffix (13% opacity) - List row sample data should include one truncated title, one missing meta, one edge timestamp