open-design/design-systems/loom/components.html
chaoxiaoche 9983bb3003
feat(design-systems): add tokens.css + components.html for 10 SaaS / consumer brands (#2028)
Brands added (each with full 56-token :root + self-contained fixture):
- Tier B (AI-adjacent devtools / SaaS): sentry, framer, webflow, warp, arc
- Tier C (productivity / consumer): cal, loom, canva, meta, duolingo

All 10 declare the complete shared schema (26 A1 + 26 A2 + 4 B-slot) with no
C-extensions; pnpm guard reports 36 brand pairs aligned end-to-end.

Co-authored-by: chaoxiaoche <chaoxiaoche@chaoxiaochedeMacBook-Pro.local>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-18 14:03:19 +08:00

446 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>Loom — reference components</title>
<meta
name="description"
content="Reference fixture for design-systems/loom. Async video for work:
signature purple #625df5, soft 4/6/8 px geometry, Inter typography,
shadow-only depth, video-thumbnail-centric layout."
/>
<style>
:root {
--bg: #ffffff;
--surface: #f7f7f8;
--surface-warm: var(--surface);
--fg: #1f1f23;
--fg-2: var(--fg);
--muted: #6b6d76;
--meta: #9b9ca3;
--border: #e4e4e7;
--border-soft: var(--border);
--accent: #625df5;
--accent-on: #ffffff;
--accent-hover: #5048e5;
--accent-active: color-mix(in oklab, var(--accent), black 14%);
--success: #16a34a;
--warn: #eab308;
--danger: #d64770;
--font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
--font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
--font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
--text-xs: 11px;
--text-sm: 12px;
--text-base: 14px;
--text-lg: 16px;
--text-xl: 18px;
--text-2xl: 22px;
--text-3xl: 28px;
--text-4xl: 40px;
--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: 72px;
--section-y-tablet: 48px;
--section-y-phone: 32px;
--radius-sm: 4px;
--radius-md: 6px;
--radius-lg: 8px;
--radius-pill: 9999px;
--elev-flat: none;
--elev-ring: 0 0 0 1px var(--border);
--elev-raised: 0 1px 3px rgba(31, 31, 35, 0.08), 0 4px 12px rgba(31, 31, 35, 0.04);
--focus-ring: 0 0 0 3px color-mix(in oklab, var(--accent), transparent 85%);
--motion-fast: 100ms;
--motion-base: 200ms;
--ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
--container-max: 1200px;
--container-gutter-desktop: 24px;
--container-gutter-tablet: 20px;
--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);
-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 — Inter, moderate weight contrast ─────── */
h1, h2, h3 {
font-family: var(--font-display);
line-height: var(--leading-tight);
margin: 0;
color: var(--fg);
}
h1 { font-size: var(--text-4xl); font-weight: 700; letter-spacing: var(--tracking-display); }
h2 { font-size: var(--text-2xl); font-weight: 600; letter-spacing: var(--tracking-display); }
h3 { font-size: var(--text-xl); font-weight: 600; }
p { margin: 0; }
.lead { font-size: var(--text-lg); color: var(--muted); line-height: var(--leading-body); }
.body-muted { color: var(--muted); }
.body-sm { font-size: var(--text-sm); }
.meta { color: var(--meta); font-size: var(--text-xs); }
.eyebrow {
font-size: var(--text-xs);
color: var(--accent);
text-transform: uppercase;
letter-spacing: 0.08em;
font-weight: 600;
}
.stack-2 > * + * { margin-block-start: var(--space-2); }
.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 — 6px corners, friendly motion ───────────── */
.btn {
display: inline-flex;
align-items: center;
gap: var(--space-2);
padding: 10px var(--space-4);
border-radius: var(--radius-md);
font-family: var(--font-body);
font-size: var(--text-base);
font-weight: 500;
line-height: var(--leading-tight);
cursor: pointer;
border: 1px solid transparent;
transition: background-color var(--motion-fast) var(--ease-standard),
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;
min-height: 44px;
}
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn:active { transform: translateY(0); }
.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: var(--surface);
color: var(--fg);
border-color: var(--border);
}
.btn-secondary:hover { background: color-mix(in oklab, var(--surface), black 4%); }
/* ─── Inputs — 4px corners, purple focus ring ──────────── */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-size: var(--text-sm); font-weight: 500; color: var(--fg); }
.field input {
padding: 10px var(--space-3);
border-radius: var(--radius-sm);
border: 1px solid var(--border);
background: var(--bg);
color: var(--fg);
font-family: var(--font-body);
font-size: var(--text-base);
line-height: var(--leading-tight);
min-height: 44px;
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 — shadow-only depth, 8px radius ────────────── */
.card {
background: var(--bg);
border-radius: var(--radius-lg);
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),
box-shadow var(--motion-base) var(--ease-standard);
}
.card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(31, 31, 35, 0.12), 0 8px 24px rgba(31, 31, 35, 0.08);
}
/* ─── Thumbnail — video-first ─────────────────────────── */
.thumbnail {
position: relative;
aspect-ratio: 16 / 10;
border-radius: var(--radius-lg);
overflow: hidden;
background:
radial-gradient(120% 90% at 20% 0%, color-mix(in oklab, var(--accent), white 20%) 0%, transparent 55%),
linear-gradient(135deg, var(--accent) 0%, color-mix(in oklab, var(--accent), black 30%) 100%);
box-shadow: var(--elev-raised);
}
.thumbnail-play {
position: absolute; inset: 0;
display: grid; place-items: center;
}
.thumbnail-play-circle {
width: 64px; height: 64px;
border-radius: var(--radius-pill);
background: rgba(255, 255, 255, 0.95);
display: grid; place-items: center;
color: var(--accent);
box-shadow: 0 8px 24px rgba(31, 31, 35, 0.18);
}
.thumbnail-meta {
position: absolute; left: var(--space-3); bottom: var(--space-3);
display: inline-flex; align-items: center; gap: var(--space-2);
padding: var(--space-1) var(--space-2);
border-radius: var(--radius-sm);
background: rgba(31, 31, 35, 0.72);
color: #ffffff;
font-size: var(--text-xs);
font-family: var(--font-mono);
letter-spacing: 0.02em;
}
/* ─── Badges & dots ────────────────────────────────────── */
.badge {
display: inline-flex; align-items: center; gap: var(--space-2);
padding: 3px var(--space-2);
border-radius: var(--radius-pill);
font-size: var(--text-xs);
font-weight: 500;
line-height: 1.6;
}
.badge-recording { color: var(--danger); background: color-mix(in oklab, var(--danger), transparent 88%); }
.badge-muted { color: var(--muted); background: var(--surface); border: 1px solid var(--border); }
.badge-dot { width: 8px; height: 8px; border-radius: var(--radius-pill); background: currentColor; }
/* ─── 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(--muted);
}
/* ─── Layout helpers ──────────────────────────────────── */
.hero-grid {
display: grid;
grid-template-columns: 1.05fr 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); }
.icon { width: 16px; height: 16px; flex-shrink: 0; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.feature-icon {
width: 36px; height: 36px;
display: grid; place-items: center;
border-radius: var(--radius-md);
background: color-mix(in oklab, var(--accent), transparent 88%);
color: var(--accent);
}
</style>
</head>
<body>
<main class="container">
<section data-od-id="hero">
<div class="hero-grid">
<div class="stack-4">
<p class="eyebrow">Reference fixture · loom</p>
<h1>Async video for work that actually moves.</h1>
<p class="lead" style="max-width: 52ch">
Record your screen, your voice, and your face in one click. Send a Loom
instead of scheduling a meeting — your teammates watch when it fits their day.
</p>
<div class="hero-actions">
<a href="./tokens.css" class="btn btn-primary">
<svg class="icon" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
<circle cx="12" cy="12" r="6" />
</svg>
Record a video
</a>
<a href="./DESIGN.md" class="btn btn-secondary">
Watch a demo
<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>
</div>
<p class="meta" style="margin-block-start: var(--space-4)">
Press <kbd></kbd> <kbd></kbd> <kbd>L</kbd> anywhere to start a new recording.
</p>
</div>
<figure class="thumbnail" aria-label="Loom video thumbnail preview">
<div class="thumbnail-play">
<span class="thumbnail-play-circle" aria-hidden="true">
<svg width="22" height="22" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
<path d="M8 5v14l11-7z"/>
</svg>
</span>
</div>
<figcaption class="thumbnail-meta">
<span class="badge badge-recording" style="background: rgba(214, 71, 112, 0.18); color: #ffffff">
<span class="badge-dot" aria-hidden="true"></span>
REC
</span>
02:14 · Q3 product review
</figcaption>
</figure>
</div>
</section>
<section data-od-id="features">
<div class="stack-3">
<p class="eyebrow">Why teams send a Loom instead</p>
<h2 style="max-width: 26ch">Show, don't type. Loom replaces the meeting that should have been an email.</h2>
</div>
<div class="features-grid" style="margin-block-start: var(--space-8)">
<article class="card">
<span class="feature-icon" aria-hidden="true">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="1.75"
stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="9"/>
<circle cx="12" cy="12" r="3.5" fill="currentColor"/>
</svg>
</span>
<h3>Press record. Get back to work.</h3>
<p class="body-muted body-sm">
One keyboard shortcut, no setup. Loom captures your screen and camera and
uploads while you keep typing — the link is in your clipboard before the
recording stops processing.
</p>
<a href="./tokens.css" class="body-sm">See the shortcut →</a>
</article>
<article class="card">
<span class="feature-icon" aria-hidden="true">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="1.75"
stroke-linecap="round" stroke-linejoin="round">
<rect x="3" y="6" width="14" height="12" rx="2"/>
<path d="M17 10l4-2v8l-4-2z"/>
</svg>
</span>
<h3>Watched on their time, not yours.</h3>
<p class="body-muted body-sm">
Viewers can speed up, jump chapters, react with an emoji, or reply with a
comment threaded to the exact second. Async by default — no calendar
gymnastics across timezones.
</p>
<a href="./DESIGN.md" class="body-sm">Read the rationale →</a>
</article>
<article class="card">
<span class="feature-icon" aria-hidden="true">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="1.75"
stroke-linecap="round" stroke-linejoin="round">
<path d="M4 6h12a4 4 0 010 8H8l-4 4V6z"/>
</svg>
</span>
<h3>Friendly by default.</h3>
<p class="body-muted body-sm">
Soft 8px cards, Inter type, the signature purple — Loom feels like a
well-made productivity app, not enterprise software. Approachable,
clean, professional without ever being corporate.
</p>
<a href="./tokens.css" class="body-sm">Inspect the system →</a>
</article>
</div>
</section>
<section data-od-id="form">
<div class="form-row">
<div class="stack-4">
<p class="eyebrow">Get the desktop app</p>
<h2>Install Loom in under a minute.</h2>
<p class="body-muted" style="max-width: 48ch">
The desktop app gives you global hotkeys, multi-monitor capture, and
instant uploads. Drop your work email and we'll send a download link —
no marketing follow-ups.
</p>
<div class="row-between" style="max-width: 360px">
<span class="badge badge-muted">
<span class="badge-dot" style="color: var(--success)" aria-hidden="true"></span>
macOS, Windows, Linux
</span>
<span class="meta">v2.4 · 38 MB</span>
</div>
</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 a download link and nothing else.</p>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-primary">Get the app</button>
<button type="button" class="btn btn-secondary">Use in browser</button>
</div>
</form>
</div>
</section>
</main>
</body>
</html>