mirror of
https://github.com/nexu-io/open-design.git
synced 2026-05-31 19:04:39 +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>
414 lines
18 KiB
HTML
414 lines
18 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>NVIDIA — reference components</title>
|
|
<meta
|
|
name="description"
|
|
content="Reference fixture for design-systems/nvidia. GPU computing aesthetic:
|
|
true black canvas, NVIDIA Green (#76b900) as signal-only accent,
|
|
bold NVIDIA-EMEA typography, minimal 2px radius, teal hover surprise."
|
|
/>
|
|
|
|
<style>
|
|
:root {
|
|
--bg: #000000;
|
|
--surface: #1a1a1a;
|
|
--surface-warm: var(--surface);
|
|
|
|
--fg: #ffffff;
|
|
--fg-2: #a7a7a7;
|
|
--muted: #757575;
|
|
--meta: #898989;
|
|
|
|
--border: #5e5e5e;
|
|
--border-soft: #2a2a2a;
|
|
|
|
/* NVIDIA Green — SIGNAL only: borders, underlines, outlines, NOT fills */
|
|
--accent: #76b900;
|
|
--accent-on: #000000;
|
|
--accent-hover: #1eaedb; /* Teal — the NVIDIA button hover surprise */
|
|
--accent-active: #007fff; /* Bright Blue — pressed state */
|
|
|
|
--success: #3f8500;
|
|
--warn: #ef9100;
|
|
--danger: #e52020;
|
|
|
|
--font-display: "NVIDIA-EMEA", Arial, Helvetica, sans-serif;
|
|
--font-body: "NVIDIA-EMEA", Arial, Helvetica, sans-serif;
|
|
--font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
|
|
|
|
--text-xs: 10px;
|
|
--text-sm: 12px;
|
|
--text-base: 16px;
|
|
--text-lg: 18px;
|
|
--text-xl: 22px;
|
|
--text-2xl: 24px;
|
|
--text-3xl: 32px;
|
|
--text-4xl: 36px;
|
|
|
|
--leading-body: 1.5;
|
|
--leading-tight: 1.25;
|
|
--tracking-display: 0em;
|
|
|
|
--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: 64px;
|
|
--section-y-tablet: 48px;
|
|
--section-y-phone: 32px;
|
|
|
|
--radius-sm: 2px; /* Everything — precision-engineered, no softness */
|
|
--radius-md: 2px;
|
|
--radius-lg: 4px;
|
|
--radius-pill: 9999px;
|
|
|
|
--elev-flat: none;
|
|
--elev-ring: 0 0 0 2px var(--accent); /* Green ring — the NVIDIA signal */
|
|
--elev-raised: rgba(0, 0, 0, 0.3) 0px 0px 5px 0px;
|
|
|
|
--focus-ring: 0 0 0 2px #ffffff;
|
|
|
|
--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);
|
|
-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 — Bold dominant voice ──────────────────── */
|
|
h1, h2, h3 {
|
|
font-family: var(--font-display);
|
|
font-weight: 700; /* Bold is the NVIDIA voice */
|
|
line-height: var(--leading-tight);
|
|
margin: 0;
|
|
letter-spacing: 0;
|
|
}
|
|
h1 { font-size: var(--text-4xl); } /* 36px display */
|
|
h2 { font-size: var(--text-3xl); } /* 32px */
|
|
h3 { font-size: var(--text-2xl); } /* 24px */
|
|
p { margin: 0; font-weight: 400; } /* 400 for body only */
|
|
.lead { font-size: var(--text-lg); color: var(--fg-2); line-height: var(--leading-body); }
|
|
.body-muted { color: var(--muted); }
|
|
.body-sm { font-size: var(--text-sm); }
|
|
.eyebrow {
|
|
font-family: var(--font-body);
|
|
font-size: var(--text-xs);
|
|
font-weight: 700;
|
|
color: var(--accent); /* Green eyebrow — signal, not decoration */
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
}
|
|
/* NVIDIA Green underline treatment — brand rule */
|
|
.green-underline { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
|
|
|
|
.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 — green border, teal hover ────────────────── */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
padding: 10px 20px;
|
|
border-radius: var(--radius-sm); /* 2px — precision hardware */
|
|
font-family: var(--font-body);
|
|
font-size: var(--text-base);
|
|
font-weight: 700; /* Bold — NVIDIA voice */
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
border: 2px solid transparent;
|
|
transition: background-color var(--motion-fast) var(--ease-standard),
|
|
border-color var(--motion-fast) var(--ease-standard),
|
|
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: transparent + 2px green border → teal fill on hover */
|
|
.btn-primary {
|
|
background: transparent;
|
|
color: var(--fg);
|
|
border-color: var(--accent); /* Green border IS the primary signal */
|
|
}
|
|
.btn-primary:hover {
|
|
background: var(--accent-hover); /* Teal fill — the NVIDIA surprise */
|
|
border-color: var(--accent-hover);
|
|
color: #ffffff;
|
|
}
|
|
.btn-primary:active {
|
|
background: var(--accent-active);
|
|
border-color: var(--accent-active);
|
|
}
|
|
/* Secondary: dark surface fill, gray border */
|
|
.btn-secondary {
|
|
background: var(--surface);
|
|
color: var(--fg-2);
|
|
border-color: var(--border);
|
|
}
|
|
.btn-secondary:hover { background: #2a2a2a; color: var(--fg); border-color: var(--fg-2); }
|
|
|
|
/* ─── Light section override ─────────────────────────────── */
|
|
.section-light {
|
|
background: #ffffff;
|
|
color: #000000;
|
|
}
|
|
.section-light .eyebrow { color: var(--accent); }
|
|
.section-light p { color: #333333; }
|
|
.section-light .card {
|
|
background: #f5f5f5;
|
|
border-color: #e0e0e0;
|
|
}
|
|
.section-light .btn-primary {
|
|
background: transparent;
|
|
color: #000000;
|
|
border-color: var(--accent);
|
|
}
|
|
.section-light .btn-primary:hover {
|
|
background: var(--accent-hover);
|
|
border-color: var(--accent-hover);
|
|
color: #ffffff;
|
|
}
|
|
|
|
/* ─── 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: 700;
|
|
color: var(--fg-2);
|
|
}
|
|
.field input {
|
|
padding: 10px 14px;
|
|
border-radius: var(--radius-sm); /* 2px */
|
|
border: 1px solid var(--border);
|
|
background: var(--surface);
|
|
color: var(--fg);
|
|
font-family: var(--font-body);
|
|
font-size: var(--text-base);
|
|
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); /* Green border on focus */
|
|
box-shadow: 0 0 0 1px var(--accent);
|
|
}
|
|
.field input::placeholder { color: var(--muted); }
|
|
.field-help { font-size: var(--text-xs); color: var(--meta); }
|
|
|
|
/* ─── Cards ─────────────────────────────────────────────── */
|
|
.card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border-soft);
|
|
border-radius: var(--radius-md);
|
|
padding: 20px 24px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-3);
|
|
box-shadow: var(--elev-raised);
|
|
}
|
|
/* Green-accented card: left border signal */
|
|
.card.accent-border { border-left: 3px solid var(--accent); }
|
|
|
|
/* ─── Badges ─────────────────────────────────────────────── */
|
|
.badge {
|
|
display: inline-flex; align-items: center; gap: var(--space-2);
|
|
padding: 2px 8px;
|
|
border-radius: var(--radius-sm);
|
|
font-family: var(--font-body);
|
|
font-size: var(--text-xs); font-weight: 700; line-height: 1.2;
|
|
text-transform: uppercase; letter-spacing: 0.06em;
|
|
}
|
|
.badge-green { color: var(--accent); background: rgba(118, 185, 0, 0.12); border: 1px solid rgba(118,185,0,0.3); }
|
|
.badge-muted { color: var(--muted); background: rgba(94,94,94,0.2); }
|
|
|
|
/* ─── Links ─────────────────────────────────────────────── */
|
|
a { color: var(--accent); text-decoration: none; }
|
|
a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
|
|
|
|
/* ─── Layout helpers ────────────────────────────────────── */
|
|
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-12); align-items: center; }
|
|
@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; }
|
|
.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.2fr 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); }
|
|
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
|
|
.icon { width: 16px; height: 16px; flex-shrink: 0; }
|
|
/* GPU spec row */
|
|
.spec-row {
|
|
display: flex; gap: var(--space-4); flex-wrap: wrap;
|
|
border-top: 1px solid var(--border-soft);
|
|
padding-block-start: var(--space-4);
|
|
margin-block-start: var(--space-4);
|
|
}
|
|
.spec { display: flex; flex-direction: column; gap: 2px; }
|
|
.spec .num { font-size: var(--text-xl); font-weight: 700; color: var(--accent); }
|
|
.spec .lbl { font-size: var(--text-xs); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<main>
|
|
<!-- Dark section — primary NVIDIA canvas -->
|
|
<section data-od-id="hero">
|
|
<div class="container">
|
|
<div class="hero-grid">
|
|
<div class="stack-4">
|
|
<p class="eyebrow">reference-fixture · nvidia</p>
|
|
<h1>Accelerated<br><span class="green-underline">intelligence.</span></h1>
|
|
<p class="lead" style="max-width: 48ch">
|
|
True black canvas. NVIDIA Green (#76b900) used only as signal —
|
|
borders, underlines, outlines. Never filled. Hover reveals
|
|
teal (#1eaedb) — the brand surprise.
|
|
</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 design</a>
|
|
</div>
|
|
<div class="spec-row">
|
|
<div class="spec"><span class="num">2px</span><span class="lbl">radius</span></div>
|
|
<div class="spec"><span class="num">700</span><span class="lbl">weight</span></div>
|
|
<div class="spec"><span class="num">#76b900</span><span class="lbl">green</span></div>
|
|
<div class="spec"><span class="num">#1eaedb</span><span class="lbl">hover</span></div>
|
|
</div>
|
|
</div>
|
|
<aside style="display: flex; flex-direction: column; gap: var(--space-4);">
|
|
<div class="card accent-border">
|
|
<div class="row-between">
|
|
<span class="eyebrow">key rule</span>
|
|
<span class="badge badge-green">A1-identity</span>
|
|
</div>
|
|
<h3>Green = signal, not fill</h3>
|
|
<p class="body-muted body-sm">
|
|
--accent: #76b900 appears as 2px borders and underlines only.
|
|
The primary button is transparent with a green border — hover
|
|
fills it with teal (#1eaedb), not green.
|
|
</p>
|
|
</div>
|
|
</aside>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Features — dark cards -->
|
|
<section data-od-id="features">
|
|
<div class="container">
|
|
<div class="stack-3">
|
|
<p class="eyebrow">what-this-fixture-exercises</p>
|
|
<h2>2px radius. Bold hierarchy. Green borders.</h2>
|
|
</div>
|
|
<div class="features-grid" style="margin-block-start: var(--space-8)">
|
|
<article class="card">
|
|
<span class="badge badge-green">A1-identity</span>
|
|
<h3>NVIDIA-EMEA Bold</h3>
|
|
<p class="body-muted body-sm">
|
|
Arial/Helvetica fallback. Font-weight 700 is the dominant voice
|
|
for headings, buttons, nav, labels. Weight 400 reserved for body
|
|
copy and descriptions only.
|
|
</p>
|
|
<a href="./tokens.css" class="body-sm">Inspect typography →</a>
|
|
</article>
|
|
<article class="card">
|
|
<span class="badge badge-green">A1-identity</span>
|
|
<h3>Teal hover surprise</h3>
|
|
<p class="body-muted body-sm">
|
|
Primary CTA: transparent + 2px green border at rest.
|
|
Hover: teal fill (#1eaedb). Active: bright blue (#007fff).
|
|
No dark-green variation — it's a horizontal color shift.
|
|
</p>
|
|
<a href="./DESIGN.md" class="body-sm">Read the rule →</a>
|
|
</article>
|
|
<article class="card">
|
|
<span class="badge badge-muted">A1-structure</span>
|
|
<h3>Dense 64px sections</h3>
|
|
<p class="body-muted body-sm">
|
|
--section-y-desktop: 64px — tighter than typical SaaS.
|
|
Technical product catalogs require density. 1200px container,
|
|
full-width alternating dark/light sections.
|
|
</p>
|
|
<a href="./tokens.css" class="body-sm">Inspect spacing →</a>
|
|
</article>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Light section override — NVIDIA alternates black/white -->
|
|
<section data-od-id="light-world" class="section-light">
|
|
<div class="container">
|
|
<div class="form-row">
|
|
<div class="stack-4">
|
|
<p class="eyebrow">light-section-override</p>
|
|
<h2 style="color: #000000;">Same green signal. White canvas.</h2>
|
|
<p style="color: #333333; max-width: 48ch">
|
|
NVIDIA alternate sections use white backgrounds. Green accent
|
|
remains #76b900 — it works identically on both dark and light.
|
|
Button behavior is identical: transparent + green border,
|
|
teal fill on hover.
|
|
</p>
|
|
</div>
|
|
<form class="form" onsubmit="event.preventDefault();">
|
|
<div class="field" style="--border: #d0d0d0; --surface: #f5f5f5;">
|
|
<label for="api-key" style="color: #333;">API key</label>
|
|
<input id="api-key" type="text"
|
|
style="background: #f5f5f5; color: #000; border-color: #d0d0d0;"
|
|
placeholder="nvapi-..." autocomplete="off" />
|
|
<p class="field-help" style="color: #666;">Access NVIDIA NIM inference endpoints.</p>
|
|
</div>
|
|
<div class="form-actions">
|
|
<button type="submit" class="btn btn-primary" style="color: #000;">Save</button>
|
|
<button type="button" class="btn" style="border-color: #999; color: #333; background: transparent;">Cancel</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
</body>
|
|
</html>
|