mirror of
https://github.com/nexu-io/open-design.git
synced 2026-06-01 03:14:35 +07:00
* feat(design-systems): add tokens.css + components.html for 9 AI product brands
Compiles DESIGN.md prose into machine-consumable agent artifacts for
claude, cohere, elevenlabs, huggingface, mistral-ai, nvidia, opencode-ai,
replicate, and together-ai.
Each brand adds:
- tokens.css — :root block of CSS custom properties derived from the brand's
DESIGN.md; agents paste this directly into generated HTML <style> tags
- components.html — reference fixture embedding the token block inline and
demonstrating buttons, inputs, cards, and badges styled
with var(--token-name) calls
Key brand decisions encoded:
- claude: warm parchment canvas, terracotta accent, Anthropic Serif display
- cohere: pure white, 22px signature radius, CohereText + Unica77
- elevenlabs: achromatic + warm stone, Waldenburg weight 300, pill-shaped
- huggingface: IBM Plex Mono headings/tags, HF Yellow (#ffd21e), 4-6px radius
- mistral-ai: golden amber palette, Arial weight 400, near-zero radius
- nvidia: true black, NVIDIA Green as border/outline signal only, teal hover
- opencode-ai: Berkeley Mono sole typeface, flat depth (ring-only elevation)
- replicate: pill-shaped everything (9999px), rb-freigeist-neue heavy
- together-ai: "The Future" font, -0.03em tracking, white/midnight dual world
openai tokens.css + components.html were merged to main separately.
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(design-systems): sync :root token blocks with tokens.css for opencode-ai and together-ai
opencode-ai: add missing "Liberation Mono" to all three font-stack fallbacks.
together-ai: remove --lavender declaration absent from tokens.css (guard requires byte-identical :root blocks).
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Co-authored-by: chaoxiaoche <chaoxiaoche@chaoxiaochedeMacBook-Pro.local>
Co-authored-by: Cursor <cursoragent@cursor.com>
342 lines
14 KiB
HTML
342 lines
14 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>ElevenLabs — reference components</title>
|
|
<meta
|
|
name="description"
|
|
content="Reference fixture for design-systems/elevenlabs. Achromatic premium:
|
|
Waldenburg weight 300 headings, warm stone surfaces, multi-layer whisper shadows."
|
|
/>
|
|
|
|
<style>
|
|
:root {
|
|
--bg: #ffffff;
|
|
--surface: #f5f5f5;
|
|
--surface-warm: #f5f2ef;
|
|
|
|
--fg: #000000;
|
|
--fg-2: #4e4e4e;
|
|
--muted: #777169;
|
|
--meta: var(--muted);
|
|
|
|
--border: #e5e5e5;
|
|
--border-soft: rgba(0, 0, 0, 0.05);
|
|
|
|
--accent: #000000;
|
|
--accent-on: #ffffff;
|
|
--accent-hover: #1a1a1a;
|
|
--accent-active: #333333;
|
|
|
|
--success: #16a34a;
|
|
--warn: #eab308;
|
|
--danger: #dc2626;
|
|
|
|
--font-display: "Waldenburg", "Waldenburg Fallback", system-ui, sans-serif;
|
|
--font-body: "Inter", "Inter Fallback", system-ui, -apple-system, sans-serif;
|
|
--font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
|
|
--text-xs: 12px;
|
|
--text-sm: 13px;
|
|
--text-base: 16px;
|
|
--text-lg: 20px;
|
|
--text-xl: 24px;
|
|
--text-2xl: 32px;
|
|
--text-3xl: 36px;
|
|
--text-4xl: 48px;
|
|
|
|
--leading-body: 1.5;
|
|
--leading-tight: 1.08;
|
|
--tracking-display: -0.02em;
|
|
|
|
--space-1: 4px;
|
|
--space-2: 8px;
|
|
--space-3: 12px;
|
|
--space-4: 16px;
|
|
--space-5: 20px;
|
|
--space-6: 24px;
|
|
--space-8: 32px;
|
|
--space-12: 48px;
|
|
|
|
--section-y-desktop: 96px;
|
|
--section-y-tablet: 64px;
|
|
--section-y-phone: 48px;
|
|
|
|
--radius-sm: 8px;
|
|
--radius-md: 16px;
|
|
--radius-lg: 24px;
|
|
--radius-pill: 9999px;
|
|
|
|
--elev-flat: none;
|
|
--elev-ring: rgba(0, 0, 0, 0.06) 0px 0px 0px 1px, rgba(0, 0, 0, 0.04) 0px 1px 2px, rgba(0, 0, 0, 0.04) 0px 2px 4px;
|
|
--elev-raised: rgba(0, 0, 0, 0.4) 0px 0px 1px, rgba(0, 0, 0, 0.04) 0px 4px 4px;
|
|
|
|
--focus-ring: 0 0 0 3px rgba(147, 197, 253, 0.5);
|
|
|
|
--motion-fast: 150ms;
|
|
--motion-base: 200ms;
|
|
--ease-standard: cubic-bezier(0.2, 0, 0, 1);
|
|
|
|
--container-max: 1200px;
|
|
--container-gutter-desktop: 24px;
|
|
--container-gutter-tablet: 16px;
|
|
--container-gutter-phone: 12px;
|
|
}
|
|
|
|
/* ─── Reset ─────────────────────────────────────────────── */
|
|
*, *::before, *::after { box-sizing: border-box; }
|
|
html, body { margin: 0; padding: 0; }
|
|
body {
|
|
background: var(--bg);
|
|
color: var(--fg);
|
|
font-family: var(--font-body);
|
|
font-size: var(--text-base);
|
|
line-height: var(--leading-body);
|
|
letter-spacing: 0.16px; /* Inter positive tracking — airy reading */
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
/* ─── Layout ─────────────────────────────────────────────── */
|
|
.container { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--container-gutter-desktop); }
|
|
section { padding-block: var(--section-y-desktop); }
|
|
section + section { border-top: 1px solid var(--border); }
|
|
@media (max-width: 1023px) {
|
|
.container { padding-inline: var(--container-gutter-tablet); }
|
|
section { padding-block: var(--section-y-tablet); }
|
|
}
|
|
@media (max-width: 639px) {
|
|
.container { padding-inline: var(--container-gutter-phone); }
|
|
section { padding-block: var(--section-y-phone); }
|
|
}
|
|
|
|
/* ─── Typography — Waldenburg weight 300 — the brand ────── */
|
|
h1, h2, h3 {
|
|
font-family: var(--font-display);
|
|
font-weight: 300; /* Light IS the brand — never bold */
|
|
line-height: var(--leading-tight);
|
|
margin: 0;
|
|
letter-spacing: var(--tracking-display);
|
|
}
|
|
h1 { font-size: var(--text-4xl); }
|
|
h2 { font-size: var(--text-2xl); }
|
|
h3 { font-size: var(--text-xl); }
|
|
p { margin: 0; }
|
|
.lead { font-size: var(--text-lg); color: var(--fg-2); line-height: var(--leading-body); letter-spacing: 0.18px; }
|
|
.body-muted { color: var(--fg-2); }
|
|
.body-sm { font-size: var(--text-sm); letter-spacing: 0.14px; }
|
|
.eyebrow {
|
|
font-family: var(--font-body);
|
|
font-size: var(--text-xs);
|
|
color: var(--muted);
|
|
letter-spacing: 0.08em;
|
|
font-weight: 500;
|
|
}
|
|
.stack-3 > * + * { margin-block-start: var(--space-3); }
|
|
.stack-4 > * + * { margin-block-start: var(--space-4); }
|
|
.stack-6 > * + * { margin-block-start: var(--space-6); }
|
|
|
|
/* ─── Buttons — pill primary, warm stone CTA ────────────── */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
font-family: var(--font-body);
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
line-height: 1.47;
|
|
cursor: pointer;
|
|
border: none;
|
|
transition:
|
|
background-color var(--motion-fast) var(--ease-standard),
|
|
box-shadow var(--motion-fast) var(--ease-standard);
|
|
text-decoration: none;
|
|
}
|
|
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
|
|
/* Primary black pill */
|
|
.btn-primary {
|
|
background: var(--accent);
|
|
color: var(--accent-on);
|
|
padding: 0 14px;
|
|
height: 36px;
|
|
border-radius: var(--radius-pill);
|
|
}
|
|
.btn-primary:hover { background: var(--accent-hover); }
|
|
/* Secondary: white pill with shadow-as-border */
|
|
.btn-secondary {
|
|
background: var(--bg);
|
|
color: var(--fg);
|
|
padding: 0 14px;
|
|
height: 36px;
|
|
border-radius: var(--radius-pill);
|
|
box-shadow: rgba(0, 0, 0, 0.4) 0px 0px 1px, rgba(0, 0, 0, 0.04) 0px 4px 4px;
|
|
}
|
|
.btn-secondary:hover {
|
|
box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 1px, rgba(0, 0, 0, 0.06) 0px 4px 6px;
|
|
}
|
|
|
|
/* ─── Inputs ────────────────────────────────────────────── */
|
|
.field { display: flex; flex-direction: column; gap: var(--space-2); }
|
|
.field label { font-size: var(--text-sm); font-weight: 500; letter-spacing: 0.14px; }
|
|
.field input {
|
|
padding: 12px 16px;
|
|
border-radius: var(--radius-md);
|
|
border: 1px solid var(--border);
|
|
background: var(--bg);
|
|
color: var(--fg);
|
|
font-family: var(--font-body);
|
|
font-size: var(--text-sm);
|
|
letter-spacing: 0.14px;
|
|
outline: none;
|
|
transition: border-color var(--motion-fast) var(--ease-standard),
|
|
box-shadow var(--motion-fast) var(--ease-standard);
|
|
}
|
|
.field input:focus-visible {
|
|
border-color: var(--accent);
|
|
box-shadow: var(--focus-ring);
|
|
}
|
|
.field input::placeholder { color: var(--muted); }
|
|
.field-help { font-size: var(--text-xs); color: var(--muted); }
|
|
|
|
/* ─── Cards — multi-layer whisper shadow ────────────────── */
|
|
.card {
|
|
background: var(--bg);
|
|
border-radius: var(--radius-md);
|
|
padding: var(--space-6);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-3);
|
|
box-shadow: var(--elev-ring);
|
|
}
|
|
|
|
/* ─── Badges ────────────────────────────────────────────── */
|
|
.badge {
|
|
display: inline-flex; align-items: center; gap: var(--space-2);
|
|
padding: 3px var(--space-2); border-radius: var(--radius-pill);
|
|
font-size: var(--text-xs); font-weight: 500; line-height: 1.6;
|
|
}
|
|
.badge-success { color: var(--success); background: color-mix(in oklab, var(--success), transparent 90%); }
|
|
.badge-muted { color: var(--muted); background: color-mix(in oklab, var(--muted), transparent 88%); }
|
|
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
|
|
|
|
/* ─── Links, Kbd ────────────────────────────────────────── */
|
|
a { color: var(--fg); text-decoration: none; }
|
|
a:hover { color: var(--muted); }
|
|
kbd {
|
|
font-family: var(--font-mono); font-size: var(--text-xs);
|
|
padding: 2px 6px; border-radius: var(--radius-sm);
|
|
box-shadow: rgba(0, 0, 0, 0.075) 0px 0px 0px 0.5px inset;
|
|
background: var(--surface); color: var(--muted);
|
|
}
|
|
|
|
/* ─── Layout helpers ────────────────────────────────────── */
|
|
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-12); align-items: end; }
|
|
@media (max-width: 1023px) { .hero-grid { grid-template-columns: 1fr; gap: var(--space-8); } }
|
|
.hero-actions { display: flex; gap: var(--space-3); margin-block-start: var(--space-6); flex-wrap: wrap; align-items: center; }
|
|
.hero-meta {
|
|
display: flex; flex-direction: column; gap: var(--space-3);
|
|
padding: var(--space-4); border-radius: var(--radius-lg);
|
|
box-shadow: var(--elev-ring); background: var(--bg);
|
|
}
|
|
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
|
|
@media (max-width: 1023px) { .features-grid { grid-template-columns: 1fr 1fr; } }
|
|
@media (max-width: 639px) { .features-grid { grid-template-columns: 1fr; } }
|
|
.form-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-12); align-items: start; }
|
|
@media (max-width: 1023px) { .form-row { grid-template-columns: 1fr; } }
|
|
.form { display: flex; flex-direction: column; gap: var(--space-4); max-width: 420px; }
|
|
.form-actions { display: flex; gap: var(--space-3); margin-block-start: var(--space-2); align-items: center; }
|
|
.icon { width: 16px; height: 16px; flex-shrink: 0; }
|
|
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<main class="container">
|
|
<section data-od-id="hero">
|
|
<div class="hero-grid">
|
|
<div class="stack-4">
|
|
<p class="eyebrow">Reference fixture · elevenlabs</p>
|
|
<h1>Give every voice a presence.</h1>
|
|
<p class="lead" style="max-width: 52ch">
|
|
A premium audio product brochure in pixel form. Whisper-thin
|
|
headings, warm stone surfaces, achromatic warmth.
|
|
</p>
|
|
<div class="hero-actions">
|
|
<a href="./tokens.css" class="btn btn-primary">
|
|
View tokens
|
|
</a>
|
|
<a href="./DESIGN.md" class="btn btn-secondary">Read the spec</a>
|
|
</div>
|
|
</div>
|
|
<aside class="hero-meta" aria-label="System status">
|
|
<div class="row-between">
|
|
<span class="body-sm" style="color: var(--muted)">Service status</span>
|
|
<span class="badge badge-success">
|
|
<span class="badge-dot" aria-hidden="true"></span>
|
|
Live
|
|
</span>
|
|
</div>
|
|
<p class="body-sm" style="color: var(--muted)">Last reviewed <time datetime="2026-05-15">2026-05-15</time> · v1.0</p>
|
|
<p class="body-sm" style="color: var(--muted)">Press <kbd>⌘</kbd> <kbd>K</kbd> to search.</p>
|
|
</aside>
|
|
</div>
|
|
</section>
|
|
|
|
<section data-od-id="features">
|
|
<div class="stack-3">
|
|
<p class="eyebrow">What this fixture exercises</p>
|
|
<h2 style="max-width: 28ch">Lightness as the defining typographic statement.</h2>
|
|
</div>
|
|
<div class="features-grid" style="margin-block-start: var(--space-8)">
|
|
<article class="card">
|
|
<h3>Waldenburg weight 300</h3>
|
|
<p class="body-muted body-sm" style="letter-spacing: 0.16px">
|
|
All h1/h2/h3 use Waldenburg at font-weight 300. The whisper-thin
|
|
strokes feel like audio waveforms. Never bold — lightness IS the brand.
|
|
</p>
|
|
<a href="./tokens.css" class="body-sm">Inspect →</a>
|
|
</article>
|
|
<article class="card">
|
|
<h3>Multi-layer shadows</h3>
|
|
<p class="body-muted body-sm" style="letter-spacing: 0.16px">
|
|
--elev-ring: three layers at sub-0.04 opacity each. Surfaces barely
|
|
exist — defined by the lightest possible touch.
|
|
</p>
|
|
<a href="./DESIGN.md" class="body-sm">Read the rule →</a>
|
|
</article>
|
|
<article class="card">
|
|
<h3>Warm stone surfaces</h3>
|
|
<p class="body-muted body-sm" style="letter-spacing: 0.16px">
|
|
--surface-warm: #f5f2ef. The achromatic system gets warmth through
|
|
stone-tinted backgrounds and rgba(78,50,23,...) warm shadows.
|
|
</p>
|
|
<a href="./tokens.css" class="body-sm">Inspect surfaces →</a>
|
|
</article>
|
|
</div>
|
|
</section>
|
|
|
|
<section data-od-id="form">
|
|
<div class="form-row">
|
|
<div class="stack-4">
|
|
<p class="eyebrow">Form components</p>
|
|
<h2>Inputs with the same whisper-level depth.</h2>
|
|
<p class="body-muted" style="max-width: 48ch; letter-spacing: 0.16px">
|
|
Form inputs use 16px radius matching the card tier. Focus ring uses
|
|
Ring Blue (rgba(147,197,253,0.5)) — the only cool tone in the system.
|
|
</p>
|
|
</div>
|
|
<form class="form" onsubmit="event.preventDefault();">
|
|
<div class="field">
|
|
<label for="email">Work email</label>
|
|
<input id="email" type="email" placeholder="you@studio.ai" autocomplete="email" required />
|
|
<p class="field-help">Start generating voice in minutes.</p>
|
|
</div>
|
|
<div class="form-actions">
|
|
<button type="submit" class="btn btn-primary">Get started</button>
|
|
<button type="button" class="btn btn-secondary">Learn more</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
</body>
|
|
</html>
|