open-design/design-systems/starbucks/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

493 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>Starbucks — reference components</title>
<meta
name="description"
content="Reference fixture for design-systems/starbucks. Warm cream canvas,
four-tier green system, full-pill buttons, whisper-soft layered shadows,
and SoDoSans with universal -0.01em tracking."
/>
<style>
:root {
--bg: #f2f0eb;
--surface: #ffffff;
--surface-warm: #edebe9;
--fg: rgba(0, 0, 0, 0.87);
--fg-2: #33433d;
--muted: rgba(0, 0, 0, 0.58);
--meta: var(--muted);
--border: #d6dbde;
--border-soft: #e7e7e7;
--accent: #00754A;
--accent-on: #ffffff;
--accent-hover: color-mix(in oklab, var(--accent), black 8%);
--accent-active: color-mix(in oklab, var(--accent), black 14%);
--success: #16a34a;
--warn: #fbbc05;
--danger: #c82014;
--font-display: SoDoSans, "Helvetica Neue", Helvetica, Arial, sans-serif;
--font-body: SoDoSans, "Helvetica Neue", Helvetica, Arial, sans-serif;
--font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Monaco, Consolas, monospace;
--text-xs: 13px;
--text-sm: 14px;
--text-base: 16px;
--text-lg: 19px;
--text-xl: 24px;
--text-2xl: 32px;
--text-3xl: 45px;
--text-4xl: 58px;
--leading-body: 1.5;
--leading-tight: 1.2;
--tracking-display: -0.01em;
--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: 4px;
--radius-md: 12px;
--radius-lg: 16px;
--radius-pill: 9999px;
--elev-flat: none;
--elev-ring: 0 0 0 1px var(--border);
--elev-raised: 0 0 0.5px 0 rgba(0, 0, 0, 0.14), 0 1px 1px 0 rgba(0, 0, 0, 0.24);
--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.25, 0.46, 0.45, 0.94);
--container-max: 1440px;
--container-gutter-desktop: 40px;
--container-gutter-tablet: 24px;
--container-gutter-phone: 16px;
}
/* ─── 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: var(--tracking-display);
-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); }
@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 -0.01em tracking; hierarchy carried by weight + color,
* not by size jumps. H1 in Starbucks Green; H2 stays in Text Black. */
h1, h2, h3 {
font-family: var(--font-display);
line-height: var(--leading-tight);
letter-spacing: var(--tracking-display);
margin: 0;
}
h1 {
font-size: var(--text-3xl);
font-weight: 600;
color: #006241;
}
h2 {
font-size: var(--text-xl);
font-weight: 400;
color: var(--fg);
}
h3 {
font-size: var(--text-lg);
font-weight: 600;
color: var(--fg);
}
p { margin: 0; }
.lead {
font-size: var(--text-lg);
color: var(--fg);
line-height: var(--leading-body);
}
.body-muted { color: var(--muted); }
.body-sm { font-size: var(--text-sm); }
.eyebrow {
font-size: var(--text-xs);
color: var(--muted);
text-transform: uppercase;
letter-spacing: 0.15em;
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 — universal 9999px pill, scale(0.95) press ── */
.btn {
display: inline-flex;
align-items: center;
gap: var(--space-2);
padding: 14px 28px;
border-radius: var(--radius-pill);
font-family: var(--font-body);
font-size: var(--text-base);
font-weight: 600;
line-height: 1.2;
letter-spacing: var(--tracking-display);
cursor: pointer;
border: 1px solid transparent;
transition: background-color var(--motion-base) var(--ease-standard),
color var(--motion-base) var(--ease-standard),
border-color var(--motion-base) var(--ease-standard),
transform var(--motion-fast) var(--ease-standard);
text-decoration: none;
}
.btn:active { transform: scale(0.95); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
/* Primary Filled — Green Accent fill */
.btn-primary {
background: var(--accent);
color: var(--accent-on);
border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
/* Primary Outlined — transparent / Green Accent stroke */
.btn-secondary {
background: transparent;
color: var(--accent);
border-color: var(--accent);
}
.btn-secondary:hover {
background: color-mix(in oklab, var(--accent), transparent 92%);
}
/* Dark Outlined — Text Black stroke (top-nav "Sign in") */
.btn-ghost {
background: transparent;
color: var(--fg);
border-color: var(--fg);
padding: 7px 16px;
font-size: var(--text-sm);
}
.btn-ghost:hover { background: rgba(0, 0, 0, 0.04); }
/* ─── Inputs — outlined-rectangle with --radius-sm ──────── */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label {
font-size: var(--text-sm);
font-weight: 600;
color: var(--fg);
}
.field input {
padding: 12px var(--space-4);
border-radius: var(--radius-sm);
border: 1px solid var(--border);
background: var(--surface);
color: var(--fg);
font-family: var(--font-body);
font-size: var(--text-base);
letter-spacing: var(--tracking-display);
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 — whisper-soft dual shadow, --radius-md ─────── */
.card {
background: var(--surface);
border-radius: var(--radius-md);
padding: var(--space-6);
display: flex;
flex-direction: column;
gap: var(--space-3);
box-shadow: var(--elev-raised);
}
.card-eyebrow {
font-size: var(--text-xs);
color: var(--accent);
text-transform: uppercase;
letter-spacing: 0.15em;
font-weight: 700;
}
/* ─── Badges ────────────────────────────────────────────── */
.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: 600; line-height: 1.4;
}
.badge-success { color: var(--success); background: color-mix(in oklab, var(--success), transparent 88%); }
.badge-muted { color: var(--muted); background: var(--surface-warm); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
/* Rewards Cost Pill — gold outline on transparent */
.badge-rewards {
color: #cba258;
background: transparent;
border: 1px solid #cba258;
letter-spacing: 0.05em;
}
/* ─── Links ─────────────────────────────────────────────── */
a { color: var(--accent); text-decoration: none; }
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-sm);
border: 1px solid var(--border); background: var(--surface); color: var(--muted);
}
/* ─── Hero / Layout helpers ─────────────────────────────── */
.hero {
background: var(--bg);
padding-block: var(--section-y-desktop);
}
.hero-grid {
display: grid;
grid-template-columns: 1.4fr 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;
}
.hero-meta {
display: flex; flex-direction: column; gap: var(--space-3);
padding: var(--space-6);
background: var(--surface);
border-radius: var(--radius-md);
box-shadow: var(--elev-raised);
}
.features-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: var(--space-6);
}
@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: 1fr 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: 440px; }
.form-actions { display: flex; gap: var(--space-3); margin-block-start: var(--space-2); flex-wrap: wrap; }
.icon { width: 16px; height: 16px; flex-shrink: 0; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
/* Feature band — House Green band with white text on dark surface */
.band-dark {
background: #1E3932;
border-radius: var(--radius-md);
padding: var(--space-12) var(--space-8);
color: #ffffff;
}
.band-dark h2 { color: #ffffff; }
.band-dark .lead { color: rgba(255, 255, 255, 0.70); }
.band-dark .btn-primary {
background: #ffffff;
color: var(--accent);
border-color: #ffffff;
}
.band-dark .btn-primary:hover { background: rgba(255, 255, 255, 0.92); border-color: rgba(255, 255, 255, 0.92); }
.band-dark .btn-secondary {
background: transparent;
color: #ffffff;
border-color: #ffffff;
}
.band-dark .btn-secondary:hover { background: rgba(255, 255, 255, 0.12); }
</style>
</head>
<body>
<main class="container">
<section class="hero" data-od-id="hero">
<div class="hero-grid">
<div class="stack-4">
<p class="eyebrow">Reference fixture · starbucks</p>
<h1>More than coffee — your third place, on the house.</h1>
<p class="lead" style="max-width: 56ch">
Warm cream canvas, four greens with assigned roles, and the friendly
confidence of SoDoSans. Open the app, find a store, or sit awhile —
every surface is built to feel like the café itself.
</p>
<div class="hero-actions">
<a href="./tokens.css" class="btn btn-primary">
Order now
<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">Join Rewards</a>
<a href="#" class="btn btn-ghost">Find a store</a>
</div>
</div>
<aside class="hero-meta" aria-label="Store status">
<div class="row-between">
<span class="body-sm">Nearest store</span>
<span class="badge badge-success">
<span class="badge-dot" aria-hidden="true"></span>
Open · 1.2 mi
</span>
</div>
<p class="body-sm" style="color: var(--muted)">
Pike Place Roast brewing now · pickup in 6&nbsp;min
</p>
<span class="badge badge-rewards" style="align-self:flex-start">200★ free drink</span>
<p class="body-sm" style="color: var(--muted)">
Press <kbd></kbd> <kbd>K</kbd> to reorder a favorite.
</p>
</aside>
</div>
</section>
<section data-od-id="features">
<div class="stack-3">
<p class="eyebrow">A system for the café</p>
<h2 style="max-width: 28ch">Warmth, mapped to a role — never a single brand green.</h2>
</div>
<div class="features-grid" style="margin-block-start: var(--space-8)">
<article class="card">
<p class="card-eyebrow">Four-tier green</p>
<h3>Starbucks · Accent · House · Uplift</h3>
<p class="body-muted body-sm">
Each green is mapped to a surface role: Starbucks Green for headings,
Green Accent (#00754A) for CTAs and the Frap, House Green for deep
feature bands and the footer, Uplift for decorative accents.
</p>
<a href="./tokens.css" class="body-sm">Inspect tokens →</a>
</article>
<article class="card">
<p class="card-eyebrow">Warm cream canvas</p>
<h3>Never pure white.</h3>
<p class="body-muted body-sm">
Neutral Warm (#f2f0eb) and Ceramic (#edebe9) reference café paper,
wood, and ceramic mugs. White is reserved for the card surface so
content reads like a mug placed on the table.
</p>
<a href="./DESIGN.md" class="body-sm">Read the rule →</a>
</article>
<article class="card">
<p class="card-eyebrow">Pill + press</p>
<h3>Full-pill buttons, scale(0.95) press.</h3>
<p class="body-muted body-sm">
Every button is a 9999px pill. The active-press tactile rebound
uses transform: scale(0.95) — a signature micro-interaction across
every CTA, including the floating Frap order button.
</p>
<a href="./tokens.css" class="body-sm">Inspect motion →</a>
</article>
</div>
</section>
<section data-od-id="band">
<div class="band-dark">
<div class="hero-grid">
<div class="stack-4">
<p class="eyebrow" style="color: rgba(255,255,255,0.70)">Rewards</p>
<h2 style="font-size: var(--text-2xl); font-weight: 600">
Free coffee is just the beginning.
</h2>
<p class="lead">
Earn a Star for every dollar — redeem for handcrafted drinks,
food, and at-home favorites. Members also unlock birthday treats,
free refills in-café, and exclusive offers.
</p>
<div class="hero-actions">
<a href="#" class="btn btn-primary">Sign up for free</a>
<a href="#" class="btn btn-secondary">Learn more</a>
</div>
</div>
<div class="stack-3" aria-label="Rewards summary">
<p class="body-sm" style="color: rgba(255,255,255,0.70)">Your Stars</p>
<p style="font-family: var(--font-display); font-size: var(--text-4xl); font-weight: 600; line-height: var(--leading-tight); letter-spacing: var(--tracking-display)">
312<span style="color: #cba258"></span>
</p>
<p class="body-sm" style="color: rgba(255,255,255,0.70)">
88 more Stars to your next free handcrafted drink.
</p>
</div>
</div>
</div>
</section>
<section data-od-id="form">
<div class="form-row">
<div class="stack-4">
<p class="eyebrow">Join Rewards</p>
<h2>Sit awhile — and earn a Star on the way out.</h2>
<p class="body-muted" style="max-width: 48ch">
No fees, no commitment. Save your favorite drink, skip the line
with mobile order, and let the third place come to you.
</p>
</div>
<form class="form" onsubmit="event.preventDefault();">
<div class="field">
<label for="email">Work email</label>
<input id="email" type="email" placeholder="you@starbucks.com" autocomplete="email" required />
<p class="field-help">We'll send your welcome Star and nothing else.</p>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-primary">Create account</button>
<button type="button" class="btn btn-secondary">Browse menu</button>
</div>
</form>
</div>
</section>
</main>
</body>
</html>