open-design/design-systems/spacex/components.html
chaoxiaoche 336620e06f
feat(design-systems): add tokens.css + components.html for 10 consumer / hardware / cultural brands (#2033)
Adds the schema-compliant token + fixture pair for the next 10 brands in
Tier E (consumer / hardware / global-cultural surfaces):

- pinterest, airtable          (visual discovery + no-code product)
- bmw, tesla                   (automotive: German precision vs. EV minimalism)
- spacex                       (aerospace cosmic minimalism, zero-shadow)
- nike                         (sportswear, monochrome editorial)
- playstation                  (gaming console, dark-first cobalt)
- starbucks                    (warm cream + Siren Green)
- wechat, xiaohongshu          (CJK-primary consumer apps, bilingual stacks)

Each pair declares all 56 shared tokens (26 A1 + 26 A2 + 4 B-slot) in
:root with brand-rationale comments in tokens.css and a comment-free
byte-equivalent :root in components.html. No C-extensions were needed.

Validation:
- pnpm guard: passed (66 brand pairs aligned, 3714 declarations, 66
  brands declare all A1/A2/B-slot tokens, A2 defaults parity intact,
  flag parity unchanged)

Co-authored-by: chaoxiaoche <chaoxiaoche@chaoxiaochedeMacBook-Pro.local>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-18 15:40:52 +08:00

496 lines
19 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>SpaceX — reference components</title>
<meta
name="description"
content="Reference fixture for design-systems/spacex. Pure black canvas,
spectral white type, full-viewport cinematic sections, D-DIN industrial
uppercase, ghost-button as the sole interactive element, zero shadows."
/>
<style>
:root {
--bg: #000000;
--surface: #000000;
--surface-warm: var(--surface);
--fg: #f0f0fa;
--fg-2: var(--fg);
--muted: rgba(240, 240, 250, 0.7);
--meta: var(--muted);
--border: rgba(240, 240, 250, 0.35);
--border-soft: rgba(240, 240, 250, 0.1);
--accent: #f0f0fa;
--accent-on: #000000;
--accent-hover: #ffffff;
--accent-active: #d8d8e6;
--success: #16a34a;
--warn: #eab308;
--danger: #dc2626;
--font-display: "D-DIN-Bold", "D-DIN", "DIN Alternate", "Helvetica Neue", Arial, Verdana, sans-serif;
--font-body: "D-DIN", "DIN Alternate", "Helvetica Neue", Arial, Verdana, sans-serif;
--font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Monaco, Consolas, monospace;
--text-xs: 10px;
--text-sm: 12px;
--text-base: 16px;
--text-lg: 20px;
--text-xl: 24px;
--text-2xl: 32px;
--text-3xl: 40px;
--text-4xl: 48px;
--leading-body: 1.5;
--leading-tight: 1.0;
--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: 120px;
--section-y-tablet: 80px;
--section-y-phone: 56px;
--radius-sm: 4px;
--radius-md: 4px;
--radius-lg: 4px;
--radius-pill: 32px;
--elev-flat: none;
--elev-ring: 0 0 0 1px var(--border);
--elev-raised: none;
--focus-ring: 0 0 0 2px var(--accent);
--motion-fast: 150ms;
--motion-base: 200ms;
--ease-standard: cubic-bezier(0.2, 0, 0, 1);
--container-max: 1440px;
--container-gutter-desktop: 24px;
--container-gutter-tablet: 20px;
--container-gutter-phone: 18px;
}
/* ─── 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); }
/* Sharp 4px ghost dividers between cinematic scenes — never decorative */
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 — universal uppercase + positive tracking ─ */
h1, h2, h3 {
font-family: var(--font-display);
font-weight: 700;
line-height: var(--leading-tight);
text-transform: uppercase;
letter-spacing: var(--tracking-display);
margin: 0;
}
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-base); letter-spacing: 0.04em; }
p { margin: 0; }
.lead {
font-size: var(--text-base);
color: var(--fg);
line-height: var(--leading-body);
text-transform: uppercase;
letter-spacing: 0.02em;
font-weight: 400;
}
.body-muted { color: var(--muted); }
/* Caption Bold / Nav Link Bold tier — DESIGN.md §3 (13px / 1.17px) */
.caption-bold {
font-family: var(--font-body);
font-size: 13px;
font-weight: 700;
line-height: 0.94;
letter-spacing: 1.17px;
text-transform: uppercase;
color: var(--fg);
}
/* Eyebrow — micro tier; DESIGN.md §3 Micro = 10px / 1px tracking */
.eyebrow {
font-size: var(--text-xs);
font-weight: 400;
line-height: 0.94;
letter-spacing: 1px;
text-transform: uppercase;
color: var(--muted);
}
.stack-3 > * + * { margin-block-start: var(--space-3); }
.stack-4 > * + * { margin-block-start: var(--space-4); }
.stack-6 > * + * { margin-block-start: var(--space-6); }
.stack-8 > * + * { margin-block-start: var(--space-8); }
/* ─── Buttons — Ghost is the only variant ────────────────
* DESIGN.md §4: rgba(240,240,250,0.1) bg, 1px spectral border,
* 32px radius, 18px padding. The sole interactive element. */
.btn {
display: inline-flex;
align-items: center;
gap: var(--space-2);
padding: 18px var(--space-6);
border-radius: var(--radius-pill);
font-family: var(--font-body);
font-size: var(--text-sm);
font-weight: 700;
line-height: 1;
letter-spacing: 1.17px;
text-transform: uppercase;
cursor: pointer;
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); }
/* Ghost — the canonical SpaceX button */
.btn-ghost {
background: rgba(240, 240, 250, 0.1);
color: var(--fg);
border: 1px solid var(--border);
}
.btn-ghost:hover {
background: rgba(240, 240, 250, 0.18);
color: var(--accent-hover);
border-color: var(--accent-hover);
}
.btn-ghost:active { background: rgba(240, 240, 250, 0.24); }
/* Solid spectral — used sparingly for the highest-priority CTA */
.btn-solid {
background: var(--accent);
color: var(--accent-on);
border: 1px solid var(--accent);
}
.btn-solid:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-solid:active { background: var(--accent-active); border-color: var(--accent-active); }
/* ─── Inputs — spectral hairline only, no surface fill ──── */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label {
font-size: var(--text-xs);
font-weight: 700;
letter-spacing: 1px;
text-transform: uppercase;
color: var(--muted);
}
.field input {
padding: 14px var(--space-3);
border-radius: var(--radius-sm);
border: 1px solid var(--border);
background: transparent;
color: var(--fg);
font-family: var(--font-body);
font-size: var(--text-base);
text-transform: uppercase;
letter-spacing: 0.02em;
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-hover);
box-shadow: var(--focus-ring);
}
.field input::placeholder {
color: var(--muted);
text-transform: uppercase;
letter-spacing: 0.02em;
}
.field-help {
font-size: var(--text-xs);
font-weight: 400;
letter-spacing: 1px;
text-transform: uppercase;
color: var(--muted);
}
/* ─── Hero — full-viewport cinematic scene ──────────────
* DESIGN.md §1: each section is a film frame. No external
* image lives in the fixture; we evoke the cosmic black
* sky / planetary curve with layered radial gradients +
* the canonical rgba(0,0,0,0.5) legibility overlay. */
.hero {
position: relative;
min-height: 100vh;
display: flex;
align-items: flex-end;
padding-block: var(--section-y-desktop);
background:
linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 100%),
radial-gradient(2px 2px at 12% 22%, rgba(240, 240, 250, 0.85), transparent 60%),
radial-gradient(1px 1px at 28% 64%, rgba(240, 240, 250, 0.7), transparent 60%),
radial-gradient(2px 2px at 47% 18%, rgba(240, 240, 250, 0.6), transparent 60%),
radial-gradient(1px 1px at 63% 41%, rgba(240, 240, 250, 0.85), transparent 60%),
radial-gradient(1.5px 1.5px at 78% 12%, rgba(240, 240, 250, 0.5), transparent 60%),
radial-gradient(1px 1px at 88% 73%, rgba(240, 240, 250, 0.6), transparent 60%),
radial-gradient(1px 1px at 38% 88%, rgba(240, 240, 250, 0.4), transparent 60%),
radial-gradient(2px 2px at 6% 84%, rgba(240, 240, 250, 0.5), transparent 60%),
radial-gradient(ellipse 120% 70% at 50% 100%, rgba(36, 32, 64, 0.85) 0%, rgba(0, 0, 0, 0) 70%),
radial-gradient(ellipse 90% 60% at 80% 18%, rgba(80, 60, 110, 0.25) 0%, rgba(0, 0, 0, 0) 65%),
#000000;
}
.hero-inner { max-width: 720px; }
.hero h1 {
font-size: var(--text-4xl);
letter-spacing: var(--tracking-display);
}
.hero .lead { max-width: 56ch; }
.hero-actions { display: flex; gap: var(--space-4); margin-block-start: var(--space-8); flex-wrap: wrap; }
/* Mission status strip — uppercase, hairline-divided, no card */
.mission-strip {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 0;
margin-block-start: var(--space-12);
border-top: 1px solid var(--border-soft);
border-bottom: 1px solid var(--border-soft);
}
.mission-strip > * {
padding: var(--space-5) var(--space-4);
}
.mission-strip > * + * { border-left: 1px solid var(--border-soft); }
@media (max-width: 1023px) {
.mission-strip { grid-template-columns: 1fr 1fr; }
.mission-strip > *:nth-child(2n+1) { border-left: none; }
}
@media (max-width: 639px) {
.mission-strip { grid-template-columns: 1fr; }
.mission-strip > * + * { border-left: none; border-top: 1px solid var(--border-soft); }
}
.mission-strip dt { color: var(--muted); margin: 0; }
.mission-strip dd {
margin: var(--space-2) 0 0;
font-family: var(--font-display);
font-size: var(--text-xl);
font-weight: 700;
line-height: var(--leading-tight);
text-transform: uppercase;
letter-spacing: 0.02em;
color: var(--fg);
}
/* ─── Features — text-on-void, no cards ─────────────────
* DESIGN.md §4: no panels, no containers, no cards. Three
* vertical text blocks sit directly on the void, separated
* only by hairline ghost dividers. */
.features-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0;
border-top: 1px solid var(--border-soft);
}
.features-grid > article {
padding: var(--space-12) var(--space-6) var(--space-12) 0;
display: flex;
flex-direction: column;
gap: var(--space-4);
}
.features-grid > article + article {
border-left: 1px solid var(--border-soft);
padding-inline-start: var(--space-6);
}
@media (max-width: 1023px) {
.features-grid { grid-template-columns: 1fr; }
.features-grid > article + article {
border-left: none;
border-top: 1px solid var(--border-soft);
padding-inline-start: 0;
}
}
.feature-index {
font-family: var(--font-display);
font-size: var(--text-sm);
font-weight: 700;
letter-spacing: 1.17px;
text-transform: uppercase;
color: var(--muted);
}
.feature h3 {
font-size: var(--text-xl);
line-height: var(--leading-tight);
letter-spacing: var(--tracking-display);
}
.feature p { color: var(--muted); }
.feature a {
color: var(--fg);
font-size: var(--text-sm);
font-weight: 700;
letter-spacing: 1.17px;
text-transform: uppercase;
text-decoration: none;
border-bottom: 1px solid var(--border);
padding-block-end: 4px;
align-self: flex-start;
transition: color var(--motion-fast) var(--ease-standard),
border-color var(--motion-fast) var(--ease-standard);
}
.feature a:hover { color: var(--accent-hover); border-color: var(--accent-hover); }
/* ─── Form — mission briefing, spectral hairlines ──────── */
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space-12);
align-items: start;
}
@media (max-width: 1023px) { .form-row { grid-template-columns: 1fr; gap: var(--space-8); } }
.form { display: flex; flex-direction: column; gap: var(--space-5); max-width: 480px; }
.form-actions { display: flex; gap: var(--space-3); margin-block-start: var(--space-3); flex-wrap: wrap; }
.icon { width: 14px; height: 14px; flex-shrink: 0; }
</style>
</head>
<body>
<main class="container">
<section class="hero" data-od-id="hero">
<div class="hero-inner stack-6">
<p class="caption-bold">SpaceX · Mission 2026</p>
<h1>Making life multi&#8209;planetary.</h1>
<p class="lead">
From low&#8209;Earth orbit to the surface of Mars — we build the
rockets, the spacecraft, and the operating cadence that turn
humanity into a multi&#8209;planet species.
</p>
<div class="hero-actions">
<a href="./tokens.css" class="btn btn-ghost">
Learn more
<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-ghost">View the spec</a>
</div>
<dl class="mission-strip" aria-label="Mission counters">
<div>
<dt class="eyebrow">Total Launches</dt>
<dd>438</dd>
</div>
<div>
<dt class="eyebrow">Total Landings</dt>
<dd>406</dd>
</div>
<div>
<dt class="eyebrow">Reflights</dt>
<dd>377</dd>
</div>
<div>
<dt class="eyebrow">Status</dt>
<dd>Nominal</dd>
</div>
</dl>
</div>
</section>
<section data-od-id="features">
<div class="stack-4">
<p class="eyebrow">What this fixture exercises</p>
<h2 style="max-width: 24ch">A type system for engineering on the edge of the atmosphere.</h2>
<p class="body-muted" style="max-width: 60ch; text-transform: uppercase; letter-spacing: 0.02em;">
Three principles, no cards, no shadows — text sits directly on the void.
</p>
</div>
<div class="features-grid" style="margin-block-start: var(--space-12)">
<article class="feature stack-4">
<p class="feature-index">01 / Atmosphere</p>
<h3>Pure black canvas, full&#8209;viewport imagery.</h3>
<p>
--bg (#000000) is the void. There is no card surface, no warm
tier — every section is text on photograph, every photograph
is one cinematic frame.
</p>
<a href="./tokens.css">Inspect surface tokens</a>
</article>
<article class="feature stack-4">
<p class="feature-index">02 / Voice</p>
<h3>Universal uppercase, positive tracking.</h3>
<p>
D&#8209;DIN at 0.02em (= 0.96px at 48px). Every label, every
counter, every CTA is stenciled like a serial number on a
spacecraft hull.
</p>
<a href="./DESIGN.md">Read the type rules</a>
</article>
<article class="feature stack-4">
<p class="feature-index">03 / Restraint</p>
<h3>Zero shadows, one ghost button.</h3>
<p>
--elev-raised resolves to <code style="font-family: var(--font-mono); font-size: var(--text-sm);">none</code>.
Depth comes from the photography. The lone ghost CTA at 32px
radius is the entire interactive surface area.
</p>
<a href="./tokens.css">Inspect elevation</a>
</article>
</div>
</section>
<section data-od-id="form">
<div class="form-row">
<div class="stack-6">
<p class="eyebrow">Mission Briefing</p>
<h2>Receive launch and re&#8209;entry telemetry.</h2>
<p class="body-muted" style="text-transform: uppercase; letter-spacing: 0.02em; max-width: 48ch;">
We&#8217;ll send pre&#8209;flight readiness reviews and
post&#8209;landing recovery summaries. Hairline borders only —
no surface fills, no shadows, no cool grays.
</p>
</div>
<form class="form" onsubmit="event.preventDefault();">
<div class="field">
<label for="callsign">Callsign</label>
<input id="callsign" type="text" placeholder="Mission control" autocomplete="username" required />
</div>
<div class="field">
<label for="email">Operator email</label>
<input id="email" type="email" placeholder="ops@spacex.com" autocomplete="email" required />
<p class="field-help">For mission summaries only.</p>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-ghost">Confirm uplink</button>
<button type="button" class="btn btn-ghost">Stand down</button>
</div>
</form>
</div>
</section>
</main>
</body>
</html>