mirror of
https://github.com/nexu-io/open-design.git
synced 2026-06-01 03:14:35 +07:00
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>
413 lines
16 KiB
HTML
413 lines
16 KiB
HTML
<!doctype html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="utf-8" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||
<title>Webflow — reference components</title>
|
||
<meta
|
||
name="description"
|
||
content="Reference fixture for design-systems/webflow. White marketing canvas,
|
||
Webflow Blue (#146ef5) accent, conservative 4px corners, 5-layer cascading
|
||
shadow on raised surfaces, WF Visual Sans Variable + Inconsolata."
|
||
/>
|
||
|
||
<style>
|
||
:root {
|
||
--bg: #ffffff;
|
||
--surface: #ffffff;
|
||
--surface-warm: var(--surface);
|
||
|
||
--fg: #080808;
|
||
--fg-2: #363636;
|
||
--muted: #5a5a5a;
|
||
--meta: #ababab;
|
||
|
||
--border: #d8d8d8;
|
||
--border-soft: #ebebeb;
|
||
|
||
--accent: #146ef5;
|
||
--accent-on: #ffffff;
|
||
--accent-hover: #0055d4;
|
||
--accent-active: color-mix(in oklab, var(--accent), black 14%);
|
||
|
||
--success: #00d722;
|
||
--warn: #ffae13;
|
||
--danger: #ee1d36;
|
||
|
||
--font-display: "WF Visual Sans Variable", "Inter", Arial, system-ui, sans-serif;
|
||
--font-body: "WF Visual Sans Variable", "Inter", Arial, system-ui, sans-serif;
|
||
--font-mono: "Inconsolata", ui-monospace, "SF 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: 56px;
|
||
--text-4xl: 80px;
|
||
|
||
--leading-body: 1.6;
|
||
--leading-tight: 1.04;
|
||
--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: 96px;
|
||
--section-y-tablet: 64px;
|
||
--section-y-phone: 48px;
|
||
|
||
--radius-sm: 4px;
|
||
--radius-md: 4px;
|
||
--radius-lg: 8px;
|
||
--radius-pill: 9999px;
|
||
|
||
--elev-flat: none;
|
||
--elev-ring: 0 0 0 1px var(--border);
|
||
--elev-raised:
|
||
0px 84px 24px rgba(0, 0, 0, 0),
|
||
0px 54px 22px rgba(0, 0, 0, 0.01),
|
||
0px 30px 18px rgba(0, 0, 0, 0.04),
|
||
0px 13px 13px rgba(0, 0, 0, 0.08),
|
||
0px 3px 7px rgba(0, 0, 0, 0.09);
|
||
|
||
--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);
|
||
font-weight: 500;
|
||
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: 991px) {
|
||
.container { padding-inline: var(--container-gutter-tablet); }
|
||
section { padding-block: var(--section-y-tablet); }
|
||
}
|
||
@media (max-width: 479px) {
|
||
.container { padding-inline: var(--container-gutter-phone); }
|
||
section { padding-block: var(--section-y-phone); }
|
||
}
|
||
|
||
/* ─── Typography — display 600, body 500 (DESIGN.md §3) ── */
|
||
h1, h2, h3 {
|
||
font-family: var(--font-display);
|
||
font-weight: 600;
|
||
line-height: var(--leading-tight);
|
||
color: var(--fg);
|
||
margin: 0;
|
||
}
|
||
h1 { font-size: var(--text-4xl); letter-spacing: var(--tracking-display); }
|
||
h2 { font-size: var(--text-3xl); letter-spacing: normal; }
|
||
h3 { font-size: var(--text-xl); font-weight: 500; line-height: 1.3; }
|
||
p { margin: 0; color: var(--fg-2); }
|
||
.lead { font-size: var(--text-lg); color: var(--fg-2); line-height: 1.4; }
|
||
.body-muted { color: var(--muted); }
|
||
.body-sm { font-size: var(--text-sm); }
|
||
/* Uppercase eyebrow — DESIGN.md §3 Micro Uppercase: 10–15px,
|
||
weight 500–600, wide tracking. We use 12px / 600 / 0.12em. */
|
||
.eyebrow {
|
||
font-family: var(--font-display);
|
||
font-size: var(--text-xs);
|
||
color: var(--accent);
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.12em;
|
||
font-weight: 600;
|
||
line-height: 1.3;
|
||
}
|
||
.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 — 4px radius, 6px translate hover (DESIGN.md §4) */
|
||
.btn {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: var(--space-2);
|
||
padding: 12px 20px;
|
||
border-radius: var(--radius-sm);
|
||
font-family: var(--font-body);
|
||
font-size: var(--text-base);
|
||
font-weight: 500;
|
||
line-height: 1;
|
||
letter-spacing: -0.01em;
|
||
cursor: pointer;
|
||
border: 1px solid transparent;
|
||
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),
|
||
transform var(--motion-fast) var(--ease-standard);
|
||
}
|
||
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
|
||
.btn .btn-icon {
|
||
transition: transform var(--motion-fast) var(--ease-standard);
|
||
}
|
||
/* The signature translate(6px) on the trailing icon — DESIGN.md §7 */
|
||
.btn:hover .btn-icon { transform: translateX(6px); }
|
||
|
||
/* Primary: Webflow Blue */
|
||
.btn-primary { background: var(--accent); color: var(--accent-on); }
|
||
.btn-primary:hover { background: var(--accent-hover); }
|
||
.btn-primary:active { background: var(--accent-active); }
|
||
|
||
/* Secondary: outlined, near-black ink — the precise builder look */
|
||
.btn-secondary {
|
||
background: var(--bg);
|
||
color: var(--fg);
|
||
border-color: var(--border);
|
||
}
|
||
.btn-secondary:hover { border-color: #898989; } /* DESIGN.md §2 Border Hover */
|
||
|
||
/* ─── Inputs — 4px radius, blue 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: 12px 14px;
|
||
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);
|
||
font-weight: 500;
|
||
outline: none;
|
||
transition:
|
||
border-color var(--motion-fast) var(--ease-standard),
|
||
box-shadow var(--motion-fast) var(--ease-standard);
|
||
}
|
||
.field input:hover { border-color: #898989; }
|
||
.field input:focus-visible {
|
||
border-color: var(--accent);
|
||
box-shadow: var(--focus-ring);
|
||
}
|
||
.field input::placeholder { color: var(--meta); font-weight: 500; }
|
||
.field-help { font-size: var(--text-xs); color: var(--muted); }
|
||
|
||
/* ─── Cards — 1px border, 5-layer cascading shadow ──────── */
|
||
.card {
|
||
background: var(--surface);
|
||
border: 1px solid var(--border);
|
||
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),
|
||
border-color var(--motion-base) var(--ease-standard);
|
||
}
|
||
.card:hover {
|
||
transform: translateY(-2px);
|
||
border-color: #898989;
|
||
}
|
||
.card .card-link {
|
||
color: var(--accent);
|
||
font-weight: 500;
|
||
margin-block-start: auto;
|
||
padding-block-start: var(--space-2);
|
||
}
|
||
|
||
/* ─── Badges — blue 10% tint, 4px radius (DESIGN.md §4) ─── */
|
||
.badge {
|
||
display: inline-flex; align-items: center; gap: var(--space-2);
|
||
padding: 4px var(--space-2);
|
||
border-radius: var(--radius-sm);
|
||
font-size: var(--text-xs);
|
||
font-weight: 550;
|
||
line-height: 1.2;
|
||
font-family: var(--font-display);
|
||
}
|
||
.badge-accent {
|
||
color: var(--accent);
|
||
background: color-mix(in oklab, var(--accent), transparent 90%);
|
||
}
|
||
.badge-success {
|
||
color: var(--success);
|
||
background: color-mix(in oklab, var(--success), transparent 88%);
|
||
}
|
||
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
|
||
|
||
/* ─── Links + kbd ───────────────────────────────────────── */
|
||
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);
|
||
}
|
||
|
||
/* ─── Section helpers ───────────────────────────────────── */
|
||
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-12); align-items: end; }
|
||
@media (max-width: 991px) { .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-5);
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-md);
|
||
background: var(--surface);
|
||
box-shadow: var(--elev-raised);
|
||
}
|
||
.meta-row {
|
||
display: flex; align-items: center; justify-content: space-between;
|
||
gap: var(--space-3);
|
||
padding-block: var(--space-2);
|
||
}
|
||
.meta-row + .meta-row { border-top: 1px solid var(--border-soft); }
|
||
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
|
||
@media (max-width: 991px) { .features-grid { grid-template-columns: 1fr 1fr; } }
|
||
@media (max-width: 479px) { .features-grid { grid-template-columns: 1fr; } }
|
||
.form-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-12); align-items: start; }
|
||
@media (max-width: 991px) { .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; }
|
||
.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 · webflow</p>
|
||
<h1>Design and build production-ready websites — visually.</h1>
|
||
<p class="lead" style="max-width: 52ch">
|
||
The visual web platform for designers. Drag, configure, and ship sites
|
||
that meet the standards of the production web — no shortcuts, no compromises.
|
||
</p>
|
||
<div class="hero-actions">
|
||
<a href="./tokens.css" class="btn btn-primary">
|
||
Start building
|
||
<svg class="icon btn-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">Read the spec</a>
|
||
</div>
|
||
</div>
|
||
<aside class="hero-meta" aria-label="System status">
|
||
<div class="meta-row">
|
||
<span class="body-sm body-muted">Render status</span>
|
||
<span class="badge badge-success">
|
||
<span class="badge-dot" aria-hidden="true"></span>
|
||
Live
|
||
</span>
|
||
</div>
|
||
<div class="meta-row">
|
||
<span class="body-sm body-muted">Brand version</span>
|
||
<span class="badge badge-accent">v1.0</span>
|
||
</div>
|
||
<div class="meta-row">
|
||
<span class="body-sm body-muted">Shortcut</span>
|
||
<span class="body-sm"><kbd>⌘</kbd> <kbd>K</kbd></span>
|
||
</div>
|
||
</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 precise builder, made for the production web.</h2>
|
||
</div>
|
||
<div class="features-grid" style="margin-block-start: var(--space-8)">
|
||
<article class="card">
|
||
<h3>Webflow Blue, on purpose</h3>
|
||
<p class="body-muted body-sm">
|
||
--accent (#146ef5) is the single chromatic move — CTAs, links,
|
||
focus rings. Hover darkens to the documented #0055d4, not a formula.
|
||
</p>
|
||
<a href="./tokens.css" class="card-link body-sm">Inspect accents →</a>
|
||
</article>
|
||
<article class="card">
|
||
<h3>Five-layer cascading shadow</h3>
|
||
<p class="body-muted body-sm">
|
||
--elev-raised stacks five shadows from 84px presence to 3px contact.
|
||
Cards feel built into the page, not floating above it.
|
||
</p>
|
||
<a href="./DESIGN.md" class="card-link body-sm">Read the rule →</a>
|
||
</article>
|
||
<article class="card">
|
||
<h3>Sharp, conservative corners</h3>
|
||
<p class="body-muted body-sm">
|
||
--radius-sm and --radius-md sit at 4px; --radius-lg caps at 8px.
|
||
Nothing rounds beyond functional — precise, builder-grade geometry.
|
||
</p>
|
||
<a href="./tokens.css" class="card-link body-sm">Inspect radius →</a>
|
||
</article>
|
||
</div>
|
||
</section>
|
||
|
||
<section data-od-id="form">
|
||
<div class="form-row">
|
||
<div class="stack-4">
|
||
<p class="eyebrow">Form components</p>
|
||
<h2>Inputs on the white canvas.</h2>
|
||
<p class="body-muted" style="max-width: 48ch">
|
||
Border Gray (#d8d8d8) at rest, Border Hover (#898989) on hover,
|
||
Webflow Blue focus ring. The same precision applies to every interactive
|
||
surface — buttons, inputs, cards.
|
||
</p>
|
||
</div>
|
||
<form class="form" onsubmit="event.preventDefault();">
|
||
<div class="field">
|
||
<label for="email">Work email</label>
|
||
<input id="email" type="email" placeholder="you@studio.com" autocomplete="email" required />
|
||
<p class="field-help">We'll send a workspace invite — nothing else.</p>
|
||
</div>
|
||
<div class="form-actions">
|
||
<button type="submit" class="btn btn-primary">
|
||
Get started
|
||
<svg class="icon btn-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>
|
||
</button>
|
||
<button type="button" class="btn btn-secondary">Talk to sales</button>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
</section>
|
||
</main>
|
||
</body>
|
||
</html>
|