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

489 lines
20 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Airtable — reference components</title>
<meta
name="description"
content="Reference fixture for design-systems/airtable. White canvas, Deep Navy text,
Airtable Blue accent, Haas typography, blue-tinted multi-layer card shadow."
/>
<style>
:root {
--bg: #ffffff;
--surface: #ffffff;
--surface-warm: var(--surface);
--fg: #181d26;
--fg-2: #333333;
--muted: rgba(4, 14, 32, 0.69);
--meta: var(--muted);
--border: #e0e2e6;
--border-soft: #eef0f3;
--accent: #1b61c9;
--accent-on: #ffffff;
--accent-hover: #254fad;
--accent-active: color-mix(in oklab, var(--accent), black 14%);
--success: #006400;
--warn: #eab308;
--danger: #dc2626;
--font-display: "Haas Groot Disp", Haas, -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
--font-body: Haas, -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
--font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Monaco, Consolas, monospace;
--text-xs: 12px;
--text-sm: 14px;
--text-base: 16px;
--text-lg: 20px;
--text-xl: 24px;
--text-2xl: 32px;
--text-3xl: 40px;
--text-4xl: 48px;
--leading-body: 1.35;
--leading-tight: 1.2;
--tracking-display: 0;
--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: 12px;
--radius-md: 16px;
--radius-lg: 24px;
--radius-pill: 9999px;
--elev-flat: none;
--elev-ring: 0 0 0 1px var(--border);
--elev-raised:
0 0 1px rgba(0, 0, 0, 0.32),
0 0 2px rgba(0, 0, 0, 0.08),
0 1px 3px rgba(45, 127, 249, 0.28),
inset 0 0 0 0.5px rgba(0, 0, 0, 0.06);
--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);
line-height: var(--leading-body);
letter-spacing: 0.01em;
-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 — Haas / Groot Disp, navy headings ─────── */
h1, h2, h3 {
font-family: var(--font-display);
color: var(--fg);
line-height: var(--leading-tight);
letter-spacing: var(--tracking-display);
margin: 0;
}
h1 { font-size: var(--text-4xl); font-weight: 500; }
h2 { font-size: var(--text-3xl); font-weight: 500; }
h3 { font-size: var(--text-xl); font-weight: 500; letter-spacing: 0.12px; }
p { margin: 0; }
.lead {
font-size: var(--text-lg);
color: var(--fg-2);
line-height: 1.5;
letter-spacing: 0.1px;
}
.body-muted { color: var(--muted); }
.body-sm { font-size: var(--text-sm); letter-spacing: 0.07px; }
.eyebrow {
font-size: var(--text-xs);
color: var(--accent);
text-transform: uppercase;
letter-spacing: 0.28px;
font-weight: 500;
}
.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 — 12px radius, positive tracking ──────────── */
.btn {
display: inline-flex;
align-items: center;
gap: var(--space-2);
padding: 14px 24px;
border-radius: var(--radius-sm);
font-family: var(--font-body);
font-size: var(--text-base);
font-weight: 500;
letter-spacing: 0.08px;
line-height: 1.25;
cursor: pointer;
border: 1px solid transparent;
transition:
background-color var(--motion-fast) var(--ease-standard),
border-color var(--motion-fast) var(--ease-standard),
box-shadow var(--motion-fast) var(--ease-standard);
text-decoration: none;
}
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn-primary {
background: var(--accent);
color: var(--accent-on);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-active); }
.btn-secondary {
background: #ffffff;
color: var(--fg);
border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--fg); }
/* ─── Inputs — 12px radius, navy-on-white ───────────────── */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label {
font-size: var(--text-sm);
font-weight: 500;
color: var(--fg);
letter-spacing: 0.07px;
}
.field input {
padding: 12px 14px;
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: 0.08px;
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); letter-spacing: 0.07px; }
/* ─── Cards — 16px radius, blue-tinted shadow ───────────── */
.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);
transition: transform var(--motion-base) var(--ease-standard);
}
.card:hover { transform: translateY(-2px); }
.card .card-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border-radius: var(--radius-sm);
background: color-mix(in oklab, var(--accent), transparent 88%);
color: var(--accent);
margin-block-end: var(--space-2);
}
.card-link {
color: var(--accent);
font-weight: 500;
font-size: var(--text-sm);
letter-spacing: 0.07px;
text-decoration: none;
margin-block-start: var(--space-2);
}
.card-link:hover { text-decoration: underline; text-underline-offset: 3px; }
/* ─── Badges ────────────────────────────────────────────── */
.badge {
display: inline-flex; align-items: center; gap: var(--space-2);
padding: 3px 10px;
border-radius: var(--radius-pill);
font-size: var(--text-xs);
font-weight: 500;
letter-spacing: 0.14px;
line-height: 1.6;
}
.badge-success { color: var(--success); background: color-mix(in oklab, var(--success), transparent 88%); }
.badge-muted { color: var(--fg-2); background: color-mix(in oklab, var(--fg), transparent 92%); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
/* ─── Base-color chips (Airtable's hallmark) ────────────── */
.base-chips { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.base-chip {
display: inline-flex;
align-items: center;
gap: var(--space-2);
padding: 6px 12px;
border-radius: var(--radius-pill);
font-size: var(--text-xs);
font-weight: 500;
letter-spacing: 0.14px;
color: var(--fg);
background: var(--surface);
border: 1px solid var(--border);
}
.base-chip::before {
content: "";
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--chip-color, var(--accent));
}
/* ─── Links ─────────────────────────────────────────────── */
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-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(--fg-2);
}
/* ─── Layout helpers ────────────────────────────────────── */
.hero-grid { display: grid; grid-template-columns: 1.3fr 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-4);
padding: var(--space-6);
border-radius: var(--radius-md);
background: var(--surface);
box-shadow: var(--elev-raised);
}
.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: 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); }
.icon { width: 16px; height: 16px; flex-shrink: 0; }
.icon-lg { width: 22px; height: 22px; flex-shrink: 0; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.divider { height: 1px; background: var(--border-soft); }
</style>
</head>
<body>
<main class="container">
<section data-od-id="hero">
<div class="hero-grid">
<div class="stack-4">
<p class="eyebrow">Reference fixture · airtable</p>
<h1 style="font-size: 56px; line-height: 1.1">
Build the apps your team needs — without writing code.
</h1>
<p class="lead" style="max-width: 56ch">
Turn any workflow into a custom app. Airtable connects your data,
your processes, and your people in a single workspace that scales
from a side project to enterprise-wide.
</p>
<div class="hero-actions">
<a href="./tokens.css" class="btn btn-primary">
Start building 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">Watch the demo</a>
</div>
<p class="body-sm body-muted" style="margin-block-start: var(--space-2)">
Trusted by 500,000+ organizations · No credit card required
</p>
</div>
<aside class="hero-meta" aria-label="Workspace status">
<div class="row-between">
<span class="body-sm" style="color: var(--fg); font-weight: 500">
Marketing campaigns
</span>
<span class="badge badge-success">
<span class="badge-dot" aria-hidden="true"></span>
Synced
</span>
</div>
<div class="divider"></div>
<div class="stack-3">
<p class="body-sm" style="color: var(--fg-2); font-weight: 500">
Your bases
</p>
<div class="base-chips">
<span class="base-chip" style="--chip-color: #1b61c9">Product</span>
<span class="base-chip" style="--chip-color: #f5a623">Marketing</span>
<span class="base-chip" style="--chip-color: #ec4899">Design</span>
<span class="base-chip" style="--chip-color: #16a34a">Sales</span>
</div>
</div>
<p class="body-sm body-muted">
Press <kbd></kbd> <kbd>K</kbd> to jump between bases.
</p>
</aside>
</div>
</section>
<section data-od-id="features">
<div class="stack-3">
<p class="eyebrow">One workspace, every workflow</p>
<h2 style="max-width: 24ch">
Bring data, automations, and interfaces together.
</h2>
<p class="lead" style="max-width: 60ch; color: var(--fg-2)">
Configure once, deploy everywhere. Every base, app, and automation
stays in sync — across teams, devices, and stakeholders.
</p>
</div>
<div class="features-grid" style="margin-block-start: var(--space-8)">
<article class="card">
<span class="card-icon" aria-hidden="true">
<svg class="icon-lg" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="1.75"
stroke-linecap="round" stroke-linejoin="round">
<rect x="3" y="4" width="18" height="16" rx="2"/>
<path d="M3 10h18M9 4v16"/>
</svg>
</span>
<h3>Flexible bases</h3>
<p class="body-muted">
Spreadsheets meet databases. Color-code records, link tables,
and surface the views each teammate actually needs.
</p>
<a href="./tokens.css" class="card-link">Explore bases →</a>
</article>
<article class="card">
<span class="card-icon" aria-hidden="true">
<svg class="icon-lg" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="1.75"
stroke-linecap="round" stroke-linejoin="round">
<path d="M12 2v6M12 16v6M4.93 4.93l4.24 4.24M14.83 14.83l4.24 4.24M2 12h6M16 12h6M4.93 19.07l4.24-4.24M14.83 9.17l4.24-4.24"/>
</svg>
</span>
<h3>Automations that run themselves</h3>
<p class="body-muted">
Trigger on a status change, a form submit, or a scheduled hour.
Connect Slack, Gmail, and 50+ apps without writing a line of code.
</p>
<a href="./DESIGN.md" class="card-link">See automations →</a>
</article>
<article class="card">
<span class="card-icon" aria-hidden="true">
<svg class="icon-lg" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="1.75"
stroke-linecap="round" stroke-linejoin="round">
<rect x="3" y="3" width="18" height="18" rx="3"/>
<path d="M3 9h18M9 9v12"/>
</svg>
</span>
<h3>Interfaces for every role</h3>
<p class="body-muted">
Wrap any base in a tailored interface — dashboards for execs,
forms for contractors, kanbans for project leads. One source of truth.
</p>
<a href="./tokens.css" class="card-link">Build an interface →</a>
</article>
</div>
</section>
<section data-od-id="form">
<div class="form-row">
<div class="stack-4">
<p class="eyebrow">Get started in 90 seconds</p>
<h2>Spin up your first base.</h2>
<p class="body-muted" style="max-width: 48ch; font-size: var(--text-lg); line-height: 1.5">
Drop in your work email and we'll send a starter base template,
the API quick-start, and a 14-day Pro trial — no credit card needed.
</p>
<ul class="stack-3" style="list-style: none; padding: 0; margin: 0; color: var(--fg-2)">
<li style="display: flex; gap: var(--space-2); align-items: center">
<svg class="icon" viewBox="0 0 24 24" fill="none"
stroke="var(--accent)" stroke-width="2.25"
stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M5 13l4 4L19 7"/>
</svg>
Unlimited bases on the free plan
</li>
<li style="display: flex; gap: var(--space-2); align-items: center">
<svg class="icon" viewBox="0 0 24 24" fill="none"
stroke="var(--accent)" stroke-width="2.25"
stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M5 13l4 4L19 7"/>
</svg>
Native integrations with Slack, Gmail, Jira
</li>
<li style="display: flex; gap: var(--space-2); align-items: center">
<svg class="icon" viewBox="0 0 24 24" fill="none"
stroke="var(--accent)" stroke-width="2.25"
stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M5 13l4 4L19 7"/>
</svg>
SOC 2 Type II, HIPAA-ready on Enterprise
</li>
</ul>
</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 the starter base and API keys to this address.</p>
</div>
<div class="field">
<label for="team">Team size</label>
<input id="team" type="text" placeholder="e.g. 110, 50, 500+" />
<p class="field-help">Helps us recommend the right plan and templates.</p>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-primary">Create my workspace</button>
<button type="button" class="btn btn-secondary">Talk to sales</button>
</div>
</form>
</div>
</section>
</main>
</body>
</html>