nexu-io--open-design
377 行
15 KiB
HTML
377 行
15 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>Cal — reference components</title>
|
|
<meta
|
|
name="description"
|
|
content="Reference fixture for design-systems/cal. Pure-white canvas, charcoal
|
|
(#242424) text, link-blue reserved for hyperlinks, and a multi-layer
|
|
ring-shadow stack that replaces CSS borders."
|
|
/>
|
|
|
|
<style>
|
|
:root {
|
|
--bg: #ffffff;
|
|
--surface: #ffffff;
|
|
--surface-warm: var(--surface);
|
|
|
|
--fg: #242424;
|
|
--fg-2: #111111;
|
|
--muted: #898989;
|
|
--meta: var(--muted);
|
|
|
|
--border: rgba(34, 42, 53, 0.08);
|
|
--border-soft: rgba(34, 42, 53, 0.05);
|
|
|
|
--accent: #0099ff;
|
|
--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: #eab308;
|
|
--danger: #dc2626;
|
|
|
|
--font-display: "Cal Sans", "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
|
|
--font-body: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
|
|
--font-mono: "Roboto 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: 48px;
|
|
--text-4xl: 64px;
|
|
|
|
--leading-body: 1.5;
|
|
--leading-tight: 1.1;
|
|
--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: 8px;
|
|
--radius-md: 12px;
|
|
--radius-lg: 16px;
|
|
--radius-pill: 9999px;
|
|
|
|
--elev-flat: none;
|
|
--elev-ring: 0 0 0 1px var(--border);
|
|
--elev-raised:
|
|
0 1px 5px -4px rgba(19, 19, 22, 0.7),
|
|
0 0 0 1px rgba(34, 42, 53, 0.08),
|
|
0 4px 8px rgba(34, 42, 53, 0.05);
|
|
|
|
--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);
|
|
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 — Cal Sans for display, Inter for body ─── */
|
|
h1, h2, h3 {
|
|
font-family: var(--font-display);
|
|
font-weight: 600; /* Cal Sans is designed for weight 600 */
|
|
line-height: var(--leading-tight);
|
|
letter-spacing: var(--tracking-display);
|
|
color: var(--fg);
|
|
margin: 0;
|
|
}
|
|
h1 { font-size: var(--text-4xl); }
|
|
h2 { font-size: var(--text-3xl); }
|
|
h3 { font-size: var(--text-xl); line-height: 1.3; }
|
|
p { margin: 0; }
|
|
.lead {
|
|
font-family: var(--font-body);
|
|
font-size: var(--text-lg);
|
|
color: var(--muted);
|
|
line-height: var(--leading-body);
|
|
font-weight: 400;
|
|
}
|
|
.body-muted { color: var(--muted); }
|
|
.body-sm { font-size: var(--text-sm); }
|
|
.eyebrow {
|
|
font-family: var(--font-body);
|
|
font-size: var(--text-xs);
|
|
color: var(--muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
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 — charcoal-on-white primary, ghost secondary ─ */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
padding: 10px 16px;
|
|
border-radius: var(--radius-sm);
|
|
font-family: var(--font-body);
|
|
font-size: var(--text-sm);
|
|
font-weight: 500;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
border: none;
|
|
transition: background-color var(--motion-fast) var(--ease-standard),
|
|
box-shadow var(--motion-fast) var(--ease-standard),
|
|
opacity var(--motion-fast) var(--ease-standard);
|
|
text-decoration: none;
|
|
}
|
|
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
|
|
/* Primary: charcoal (#242424) on white — Cal.com's signature CTA */
|
|
.btn-primary {
|
|
background: var(--fg);
|
|
color: #ffffff;
|
|
}
|
|
.btn-primary:hover { opacity: 0.85; }
|
|
.btn-primary:active { opacity: 0.75; }
|
|
/* Secondary: white with ring-shadow border — uses the elevation system */
|
|
.btn-secondary {
|
|
background: var(--surface);
|
|
color: var(--fg);
|
|
box-shadow: var(--elev-ring);
|
|
}
|
|
.btn-secondary:hover {
|
|
box-shadow:
|
|
0 0 0 1px rgba(34, 42, 53, 0.12),
|
|
0 1px 2px rgba(34, 42, 53, 0.04);
|
|
}
|
|
|
|
/* ─── Inputs — minimal, ring-on-focus ─────────────────────── */
|
|
.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: 10px 12px;
|
|
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-sm);
|
|
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 — white surface, multi-layer ring-shadow stack ─ */
|
|
.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); /* Cal.com's workhorse card shadow */
|
|
transition: box-shadow var(--motion-base) var(--ease-standard);
|
|
}
|
|
.card:hover {
|
|
box-shadow:
|
|
0 2px 8px -4px rgba(19, 19, 22, 0.7),
|
|
0 0 0 1px rgba(34, 42, 53, 0.1),
|
|
0 8px 16px rgba(34, 42, 53, 0.06);
|
|
}
|
|
|
|
/* ─── Badges ────────────────────────────────────────────── */
|
|
.badge {
|
|
display: inline-flex; align-items: center; gap: var(--space-2);
|
|
padding: 3px var(--space-2);
|
|
border-radius: var(--radius-pill);
|
|
font-family: var(--font-body);
|
|
font-size: var(--text-xs); font-weight: 500; line-height: 1.6;
|
|
}
|
|
.badge-success { color: var(--success); background: color-mix(in oklab, var(--success), transparent 90%); }
|
|
.badge-muted { color: var(--muted); background: color-mix(in oklab, var(--muted), transparent 92%); }
|
|
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
|
|
|
|
/* ─── Links — the only blue in the system ───────────────── */
|
|
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
|
|
a:hover { color: var(--accent-hover); }
|
|
a.card-link { text-decoration: none; color: var(--fg-2); font-weight: 500; }
|
|
a.card-link:hover { color: var(--accent); }
|
|
kbd {
|
|
font-family: var(--font-mono); font-size: var(--text-xs);
|
|
padding: 2px 6px; border-radius: var(--radius-sm);
|
|
background: var(--surface); color: var(--muted);
|
|
box-shadow: var(--elev-ring);
|
|
}
|
|
|
|
/* ─── 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-4);
|
|
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: 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 · cal</p>
|
|
<h1>Scheduling infrastructure for everyone.</h1>
|
|
<p class="lead" style="max-width: 52ch">
|
|
Open-source meetings, calendars, and booking links that just work —
|
|
for individuals, teams, and the developers building the next wave
|
|
of scheduling on top of an API they can read.
|
|
</p>
|
|
<div class="hero-actions">
|
|
<a href="./tokens.css" class="btn btn-primary" style="text-decoration: none">
|
|
View tokens
|
|
<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>
|
|
<a href="./DESIGN.md" class="btn btn-secondary" style="text-decoration: none">Read the spec</a>
|
|
</div>
|
|
</div>
|
|
<aside class="hero-meta" aria-label="Booking status">
|
|
<div class="row-between">
|
|
<span class="body-sm" style="color: var(--fg-2)">Booking API</span>
|
|
<span class="badge badge-success">
|
|
<span class="badge-dot" aria-hidden="true"></span>
|
|
Operational
|
|
</span>
|
|
</div>
|
|
<p class="body-sm" style="color: var(--muted)">Last reviewed <time datetime="2026-05-15">2026-05-15</time> · v1.0</p>
|
|
<p class="body-sm" style="color: var(--muted)">Press <kbd>⌘</kbd> <kbd>K</kbd> to search availability.</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: 22ch">A calendar that gets out of the way.</h2>
|
|
</div>
|
|
<div class="features-grid" style="margin-block-start: var(--space-8)">
|
|
<article class="card">
|
|
<h3>Monochrome by design</h3>
|
|
<p class="body-muted body-sm">
|
|
Pure white canvas, charcoal (#242424) text, and a single
|
|
link-blue. Boldness comes from contrast, not from color.
|
|
</p>
|
|
<a href="./tokens.css" class="body-sm card-link">Inspect tokens →</a>
|
|
</article>
|
|
<article class="card">
|
|
<h3>Cal Sans speaks. Inter explains.</h3>
|
|
<p class="body-muted body-sm">
|
|
A custom geometric display face for headings, Inter for body.
|
|
The font pairing enforces a clear typographic division —
|
|
Cal Sans is never used below 16px.
|
|
</p>
|
|
<a href="./DESIGN.md" class="body-sm card-link">Read the pairing →</a>
|
|
</article>
|
|
<article class="card">
|
|
<h3>Shadows do the bordering</h3>
|
|
<p class="body-muted body-sm">
|
|
A multi-layer ring + contact + ambient shadow stack replaces
|
|
CSS borders. Surfaces feel like physical cards sitting on a
|
|
table — never floating, never flat.
|
|
</p>
|
|
<a href="./tokens.css" class="body-sm card-link">Inspect elevation →</a>
|
|
</article>
|
|
</div>
|
|
</section>
|
|
|
|
<section data-od-id="form">
|
|
<div class="form-row">
|
|
<div class="stack-4">
|
|
<p class="eyebrow">Form components</p>
|
|
<h2>Get scheduling at the speed of Cal.</h2>
|
|
<p class="body-muted" style="max-width: 48ch">
|
|
Inputs are minimal: hairline border, charcoal text, and the
|
|
one link-blue makes its second appearance only on the focus
|
|
ring — exactly where it earns its keep.
|
|
</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 your booking link and nothing else.</p>
|
|
</div>
|
|
<div class="form-actions">
|
|
<button type="submit" class="btn btn-primary">Create my link</button>
|
|
<button type="button" class="btn btn-secondary">See a demo</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
</body>
|
|
</html>
|