mirror of
https://github.com/nexu-io/open-design.git
synced 2026-06-01 03:14:35 +07:00
Brands added (each with full 56-token :root + self-contained fixture): - Devtools / data infra: clickhouse, hashicorp, mongodb, mintlify, sentry-adjacent (lovable, superhuman) - AI-app builder / messaging: intercom, lovable, superhuman - Fintech / crypto: coinbase, binance, wise All 10 declare the complete shared schema (26 A1 + 26 A2 + 4 B-slot) with no C-extensions; pnpm guard reports all 6 contract checks passing. Co-authored-by: chaoxiaoche <chaoxiaoche@chaoxiaochedeMacBook-Pro.local> Co-authored-by: Cursor <cursoragent@cursor.com>
462 lines
17 KiB
HTML
462 lines
17 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>MongoDB — reference components</title>
|
|
<meta
|
|
name="description"
|
|
content="Reference fixture for design-systems/mongodb. Forest-dark canvas (#001e2b),
|
|
neon MongoDB Green (#00ed64) accent, MongoDB Value Serif at hero scale,
|
|
wide-tracked Source Code Pro labels, teal-tinted shadows."
|
|
/>
|
|
|
|
<style>
|
|
:root {
|
|
--bg: #001e2b;
|
|
--surface: #1c2d38;
|
|
--surface-warm: var(--surface);
|
|
|
|
--fg: #ffffff;
|
|
--fg-2: #e8edeb;
|
|
--muted: #b8c4c2;
|
|
--meta: #5c6c75;
|
|
|
|
--border: #3d4f58;
|
|
--border-soft: var(--border);
|
|
|
|
--accent: #00ed64;
|
|
--accent-on: #001e2b;
|
|
--accent-hover: #00684a;
|
|
--accent-active: color-mix(in oklab, var(--accent-hover), black 12%);
|
|
|
|
--success: #16a34a;
|
|
--warn: #eab308;
|
|
--danger: #dc2626;
|
|
|
|
--font-display: "MongoDB Value Serif", "Times New Roman", Times, ui-serif, Georgia, serif;
|
|
--font-body: "Euclid Circular A", "Akzidenz-Grotesk Std", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
|
|
--font-mono: "Source Code Pro", ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Monaco, Consolas, monospace;
|
|
|
|
--text-xs: 11px;
|
|
--text-sm: 14px;
|
|
--text-base: 16px;
|
|
--text-lg: 20px;
|
|
--text-xl: 24px;
|
|
--text-2xl: 36px;
|
|
--text-3xl: 64px;
|
|
--text-4xl: 96px;
|
|
|
|
--leading-body: 1.5;
|
|
--leading-tight: 1.2;
|
|
--tracking-display: normal;
|
|
|
|
--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: 40px;
|
|
|
|
--radius-sm: 4px;
|
|
--radius-md: 8px;
|
|
--radius-lg: 16px;
|
|
--radius-pill: 9999px;
|
|
|
|
--elev-flat: none;
|
|
--elev-ring: 0 0 0 1px var(--border);
|
|
--elev-raised:
|
|
0 26px 44px rgba(0, 30, 43, 0.12),
|
|
0 7px 13px rgba(0, 0, 0, 0.13);
|
|
|
|
--focus-ring: 0 0 0 3px color-mix(in oklab, var(--accent), transparent 70%);
|
|
|
|
--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-2);
|
|
font-family: var(--font-body);
|
|
font-size: var(--text-base);
|
|
font-weight: 300; /* DESIGN.md §3: weight 300 is the body voice */
|
|
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); }
|
|
@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 — serif authority, geometric workhorse ─── */
|
|
h1, h2 {
|
|
font-family: var(--font-display);
|
|
font-weight: 400; /* MongoDB Value Serif at 400 — the editorial move */
|
|
line-height: var(--leading-tight);
|
|
letter-spacing: var(--tracking-display);
|
|
color: var(--fg);
|
|
margin: 0;
|
|
}
|
|
h3 {
|
|
font-family: var(--font-body);
|
|
font-weight: 500; /* Euclid Circular A medium for sub-headings */
|
|
line-height: 1.33;
|
|
color: var(--fg);
|
|
margin: 0;
|
|
}
|
|
h1 { font-size: var(--text-4xl); }
|
|
h2 { font-size: var(--text-2xl); }
|
|
h3 { font-size: var(--text-xl); }
|
|
@media (max-width: 1023px) {
|
|
h1 { font-size: var(--text-3xl); } /* 96 → 64 on tablet */
|
|
}
|
|
@media (max-width: 639px) {
|
|
h1 { font-size: 44px; } /* further collapse on phone */
|
|
}
|
|
p { margin: 0; }
|
|
.lead {
|
|
font-family: var(--font-body);
|
|
font-size: var(--text-lg);
|
|
font-weight: 300;
|
|
line-height: 1.6;
|
|
color: var(--fg-2);
|
|
}
|
|
.body-muted { color: var(--muted); }
|
|
.body-sm { font-size: var(--text-sm); }
|
|
/* Source Code Pro uppercase eyebrow — the database-field label voice */
|
|
.eyebrow {
|
|
font-family: var(--font-mono);
|
|
font-size: var(--text-sm);
|
|
font-weight: 500;
|
|
color: var(--accent);
|
|
text-transform: uppercase;
|
|
letter-spacing: 2px;
|
|
line-height: 1.14;
|
|
margin: 0;
|
|
}
|
|
/* Neon green accent underline — the signature decorative element */
|
|
.accent-underline {
|
|
background-image: linear-gradient(var(--accent), var(--accent));
|
|
background-size: 100% 2px;
|
|
background-repeat: no-repeat;
|
|
background-position: 0 100%;
|
|
padding-bottom: 2px;
|
|
}
|
|
.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 on dark, ghost secondary ────── */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
padding: 12px 24px;
|
|
border-radius: var(--radius-pill); /* DESIGN.md §4: pill CTAs */
|
|
font-family: var(--font-body);
|
|
font-size: var(--text-base);
|
|
font-weight: 500;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
border: 1px solid transparent;
|
|
text-decoration: none;
|
|
transition:
|
|
background-color var(--motion-fast) var(--ease-standard),
|
|
color var(--motion-fast) var(--ease-standard),
|
|
border-color var(--motion-fast) var(--ease-standard);
|
|
}
|
|
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
|
|
/* Primary: neon-on-dark — the brand's electric CTA */
|
|
.btn-primary {
|
|
background: var(--accent);
|
|
color: var(--accent-on);
|
|
border-color: var(--accent);
|
|
}
|
|
.btn-primary:hover {
|
|
background: var(--accent-hover); /* settles to muted Dark Green on hover */
|
|
border-color: var(--accent-hover);
|
|
color: var(--fg);
|
|
}
|
|
.btn-primary:active { background: var(--accent-active); border-color: var(--accent-active); }
|
|
/* Secondary: dark teal pill with cool-gray text — the muted alternative */
|
|
.btn-secondary {
|
|
background: var(--surface);
|
|
color: var(--muted);
|
|
border-color: var(--border);
|
|
}
|
|
.btn-secondary:hover {
|
|
background: #1eaedb; /* Teal Active — DESIGN.md §4 hover */
|
|
color: var(--fg);
|
|
border-color: #1eaedb;
|
|
}
|
|
|
|
/* ─── Inputs — dark surface, light input text ───────────── */
|
|
.field { display: flex; flex-direction: column; gap: var(--space-2); }
|
|
.field label {
|
|
font-size: var(--text-sm);
|
|
font-weight: 500;
|
|
color: var(--fg-2);
|
|
}
|
|
.field input {
|
|
padding: 12px 12px 12px 8px; /* DESIGN.md §4 textarea padding */
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid var(--border);
|
|
background: var(--surface);
|
|
color: var(--fg-2);
|
|
font-family: var(--font-body);
|
|
font-size: var(--text-base);
|
|
font-weight: 300;
|
|
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(--muted); }
|
|
|
|
/* ─── Cards — dark surface, forest-tinted shadow ────────── */
|
|
.card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
padding: var(--space-6);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-3);
|
|
box-shadow: var(--elev-raised);
|
|
}
|
|
|
|
/* ─── Badges — pill chips for status ────────────────────── */
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
padding: 3px 10px;
|
|
border-radius: var(--radius-pill);
|
|
font-family: var(--font-mono);
|
|
font-size: var(--text-xs);
|
|
font-weight: 600;
|
|
letter-spacing: 1px;
|
|
text-transform: uppercase;
|
|
line-height: 1.6;
|
|
}
|
|
.badge-success {
|
|
color: var(--accent);
|
|
background: color-mix(in oklab, var(--accent), transparent 86%);
|
|
}
|
|
.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 ─────────────────────────────────────────────── */
|
|
a { color: var(--accent); text-decoration: none; }
|
|
a:hover { color: #3860be; 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-sm);
|
|
border: 1px solid var(--border);
|
|
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-5);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
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 · mongodb</p>
|
|
<h1>The developer data <span class="accent-underline">platform</span>.</h1>
|
|
<p class="lead" style="max-width: 56ch">
|
|
Atlas-scale documents, query, and search across every cloud. Built for
|
|
builders who treat the database as part of the application, not the
|
|
place applications go to wait.
|
|
</p>
|
|
<div class="hero-actions">
|
|
<a href="./tokens.css" class="btn btn-primary">
|
|
Start free
|
|
<svg class="icon" viewBox="0 0 24 24" fill="none"
|
|
stroke="currentColor" stroke-width="2"
|
|
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 docs</a>
|
|
</div>
|
|
</div>
|
|
<aside class="hero-meta" aria-label="Cluster status">
|
|
<div class="row-between">
|
|
<span class="body-sm" style="color: var(--fg-2)">Cluster status</span>
|
|
<span class="badge badge-success">
|
|
<span class="badge-dot" aria-hidden="true"></span>
|
|
Healthy
|
|
</span>
|
|
</div>
|
|
<p class="body-sm body-muted">
|
|
Last reviewed <time datetime="2026-05-15">2026-05-15</time> · v1.0
|
|
</p>
|
|
<p class="body-sm body-muted">
|
|
Press <kbd>⌘</kbd> <kbd>K</kbd> to open the Atlas command palette.
|
|
</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: 26ch">
|
|
Forest-dark canvas, <span class="accent-underline">electric green</span> signal.
|
|
</h2>
|
|
</div>
|
|
<div class="features-grid" style="margin-block-start: var(--space-8)">
|
|
<article class="card">
|
|
<p class="eyebrow">Color</p>
|
|
<h3>Bioluminescent accent</h3>
|
|
<p class="body-muted body-sm">
|
|
MongoDB Green (#00ed64) burns through a forest-black (#001e2b)
|
|
canvas. Used once per section, sparingly, for maximum electric
|
|
impact — never as a background.
|
|
</p>
|
|
<a href="./tokens.css" class="body-sm">Inspect tokens →</a>
|
|
</article>
|
|
<article class="card">
|
|
<p class="eyebrow">Type</p>
|
|
<h3>Serif at database scale</h3>
|
|
<p class="body-muted body-sm">
|
|
MongoDB Value Serif at 96px gives the page editorial authority
|
|
normally reserved for newspapers. Euclid Circular A at weight 300
|
|
keeps body copy airy against the dense dark surface.
|
|
</p>
|
|
<a href="./DESIGN.md" class="body-sm">Read the rule →</a>
|
|
</article>
|
|
<article class="card">
|
|
<p class="eyebrow">Depth</p>
|
|
<h3>Teal-tinted elevation</h3>
|
|
<p class="body-muted body-sm">
|
|
Card shadows use rgba(0,30,43,0.12) — the forest tone carried
|
|
into the depth system so even lifted surfaces feel like they
|
|
belong to the MongoDB color world.
|
|
</p>
|
|
<a href="./tokens.css" class="body-sm">Inspect shadow →</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 in the forest-dark context.</h2>
|
|
<p class="body-muted" style="max-width: 50ch">
|
|
Borders use teal-gray (#3d4f58), text uses light-input (#e8edeb),
|
|
focus rings glow neon green. Source Code Pro uppercase labels
|
|
read as database field names — systematic, structured, classified.
|
|
</p>
|
|
</div>
|
|
<form class="form" onsubmit="event.preventDefault();">
|
|
<div class="field">
|
|
<label for="email">Work email</label>
|
|
<input id="email" type="email" placeholder="you@company.com" autocomplete="email" required />
|
|
<p class="field-help">We'll send Atlas access and nothing else.</p>
|
|
</div>
|
|
<div class="form-actions">
|
|
<button type="submit" class="btn btn-primary">Get Atlas access</button>
|
|
<button type="button" class="btn btn-secondary">Talk to sales</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
</body>
|
|
</html>
|