open-design/design-systems/replicate/components.html
chaoxiaoche b68e4d3252
feat(design-systems): add tokens.css + components.html for 9 AI product brands (#1841)
* 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>
2026-05-18 11:54:50 +08:00

340 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>Replicate — reference components</title>
<meta
name="description"
content="Reference fixture for design-systems/replicate. Developer playground:
everything pill-shaped (9999px), heavy display (700), red brand accent."
/>
<style>
:root {
--bg: #ffffff;
--surface: #f8f8f8;
--surface-warm: var(--surface);
--fg: #202020;
--fg-2: #4e4e4e;
--muted: #646464;
--meta: #8d8d8d;
--border: #202020;
--border-soft: #e5e5e5;
--accent: #ea2804;
--accent-on: #ffffff;
--accent-hover: color-mix(in oklab, var(--accent), black 8%);
--accent-active: color-mix(in oklab, var(--accent), black 16%);
--success: #2b9a66;
--warn: #eab308;
--danger: #dc2626;
--font-display: "rb-freigeist-neue", ui-sans-serif, system-ui, sans-serif;
--font-body: "basier-square", ui-sans-serif, system-ui, sans-serif;
--font-mono: "jetbrains-mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
--text-xs: 12px;
--text-sm: 14px;
--text-base: 16px;
--text-lg: 18px;
--text-xl: 30px;
--text-2xl: 48px;
--text-3xl: 72px;
--text-4xl: 128px;
--leading-body: 1.5;
--leading-tight: 1.0;
--tracking-display: -0.025em;
--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: 9999px;
--radius-md: 9999px;
--radius-lg: 9999px;
--radius-pill: 9999px;
--elev-flat: none;
--elev-ring: 0 0 0 1px var(--border);
--elev-raised: 0 0 0 1px var(--accent);
--focus-ring: 0 0 0 3px color-mix(in oklab, var(--accent), transparent 70%);
--motion-fast: 120ms;
--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);
-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-soft); }
@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 — heavy display 700, quiet body 400 ────── */
h1, h2, h3 {
font-family: var(--font-display);
font-weight: 700; /* Thundering heavy display */
line-height: var(--leading-tight);
margin: 0;
}
h1 { font-size: var(--text-3xl); letter-spacing: var(--tracking-display); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
p { margin: 0; }
.lead { font-family: var(--font-body); font-size: var(--text-lg); color: var(--muted); line-height: var(--leading-body); font-weight: 400; }
.body-muted { color: var(--muted); }
.body-sm { font-size: var(--text-sm); }
.eyebrow {
font-family: var(--font-body);
font-size: var(--text-xs);
color: var(--meta);
font-weight: 600;
}
.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 — ALL pill-shaped, dark/outlined variants ─── */
.btn {
display: inline-flex;
align-items: center;
gap: var(--space-2);
padding: 8px 16px;
border-radius: var(--radius-pill); /* ALWAYS 9999px */
font-family: var(--font-body);
font-size: var(--text-sm);
font-weight: 600;
line-height: 1;
cursor: pointer;
border: 1px solid transparent;
transition: background-color var(--motion-fast) var(--ease-standard),
border-color var(--motion-fast) var(--ease-standard);
text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
/* Primary: dark solid pill */
.btn-primary {
background: var(--fg);
color: #fcfcfc;
border-color: var(--fg);
outline: 4px solid var(--fg);
outline-offset: 2px;
}
.btn-primary:hover { background: #333333; border-color: #333333; outline-color: #333333; }
/* Secondary: white outlined pill */
.btn-secondary {
background: var(--bg);
color: var(--fg);
border-color: var(--fg);
}
.btn-secondary:hover { background: var(--surface); }
/* ─── Inputs ────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; }
.field input {
padding: 10px 16px;
border-radius: var(--radius-pill); /* Pill input */
border: 1px solid var(--fg);
background: var(--bg);
color: var(--fg);
font-family: var(--font-body);
font-size: var(--text-sm);
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(--meta); }
.field-help { font-size: var(--text-xs); color: var(--meta); }
/* ─── Cards — bordered, pill-rounded ───────────────────── */
.card {
background: var(--bg);
border: 1px solid var(--fg);
border-radius: var(--radius-md); /* 9999px — still pill */
padding: var(--space-6);
display: flex;
flex-direction: column;
gap: var(--space-3);
}
/* ─── Badges — pill status indicators ──────────────────── */
.badge {
display: inline-flex; align-items: center; gap: var(--space-2);
padding: 4px var(--space-3);
border-radius: var(--radius-pill);
font-size: var(--text-xs); font-weight: 400; line-height: 1.4;
text-transform: lowercase; /* Replicate uses lowercase tags */
}
.badge-success { color: #ffffff; background: var(--success); }
.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 — dotted underline (#bbbbbb) — the signature ── */
a { color: var(--fg); text-decoration: underline dotted #bbbbbb; text-underline-offset: 3px; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
kbd {
font-family: var(--font-mono); font-size: var(--text-xs);
padding: 2px 6px; border-radius: var(--radius-pill);
border: 1px solid var(--fg); 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; }
.hero-meta {
display: flex; flex-direction: column; gap: var(--space-3);
padding: var(--space-4); border: 1px solid var(--fg);
border-radius: var(--radius-md); background: var(--surface);
}
.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); }
.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 · replicate</p>
<h1>Run models with a single API call.</h1>
<p class="lead" style="max-width: 52ch">
A developer playground crackling with creative energy.
Bold, high-contrast, pill-shaped — everything.
</p>
<div class="hero-actions">
<a href="./tokens.css" class="btn btn-primary">
View tokens
<svg class="icon" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="1.75"
stroke-linecap="round" stroke-linejoin="round"
aria-hidden="true"><path d="M5 12h14M13 6l6 6-6 6"/></svg>
</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)">API status</span>
<span class="badge badge-success">
<span class="badge-dot" aria-hidden="true"></span>
running
</span>
</div>
<p class="body-sm" style="color: var(--meta)">Last reviewed <time datetime="2026-05-15">2026-05-15</time> · v1.0</p>
<p class="body-sm" style="color: var(--meta)">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: 22ch">Everything is pill-shaped. Everything.</h2>
</div>
<div class="features-grid" style="margin-block-start: var(--space-8)">
<article class="card">
<h3>Universal pill radius</h3>
<p class="body-muted body-sm">
--radius-sm/md/lg/pill: all 9999px. Buttons, cards, inputs,
images, badges — the most extreme pill commitment in any tech brand.
</p>
<a href="./tokens.css" class="body-sm">Inspect tokens →</a>
</article>
<article class="card">
<h3>Heavy display, quiet body</h3>
<p class="body-muted body-sm">
rb-freigeist-neue at weight 700 thunders through headlines.
basier-square at weight 400 handles body text silently. Extreme contrast.
</p>
<a href="./DESIGN.md" class="body-sm">Read the rule →</a>
</article>
<article class="card">
<h3>Dotted underline links</h3>
<p class="body-muted body-sm">
text-decoration: underline dotted #bbbbbb — a developer notebook
aesthetic. Lighter and more casual than solid underlines.
</p>
<a href="./tokens.css" class="body-sm">Inspect →</a>
</article>
</div>
</section>
<section data-od-id="form">
<div class="form-row">
<div class="stack-4">
<p class="eyebrow">Form components</p>
<h2>Even inputs are pill-shaped.</h2>
<p class="body-muted" style="max-width: 48ch">
Inputs use 9999px radius consistent with the system commitment.
Border is Replicate Dark (#202020) — heavy, high-contrast containment.
</p>
</div>
<form class="form" onsubmit="event.preventDefault();">
<div class="field">
<label for="email">Your email</label>
<input id="email" type="email" placeholder="dev@your.app" autocomplete="email" required />
<p class="field-help">Get your API key.</p>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-primary">Get API key</button>
<button type="button" class="btn btn-secondary">Explore models</button>
</div>
</form>
</div>
</section>
</main>
</body>
</html>