nexu-io--open-design
371 行
14 KiB
HTML
371 行
14 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>Linear — reference components</title>
|
|
<meta
|
|
name="description"
|
|
content="Reference fixture for design-systems/linear-app. Every visible
|
|
value comes from tokens.css. Linear's signature moves: near-black
|
|
canvas, Inter Variable with cv01+ss03, weight-510 emphasis, indigo
|
|
accent, semi-transparent white borders, luminance stepping for depth."
|
|
/>
|
|
|
|
<style>
|
|
:root {
|
|
--bg: #08090a;
|
|
--surface: #191a1b;
|
|
--surface-warm: var(--surface);
|
|
|
|
--fg: #f7f8f8;
|
|
--fg-2: #d0d6e0;
|
|
--muted: #8a8f98;
|
|
--meta: #62666d;
|
|
|
|
--border: rgba(255, 255, 255, 0.08);
|
|
--border-soft: rgba(255, 255, 255, 0.05);
|
|
|
|
--accent: #5e6ad2;
|
|
--accent-on: #ffffff;
|
|
--accent-hover: #828fff;
|
|
--accent-active: #4752c4;
|
|
|
|
--success: #27a644;
|
|
--warn: #eab308;
|
|
--danger: #dc2626;
|
|
|
|
--font-display: "Inter Variable", "Inter", "SF Pro Display", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
|
|
--font-body: "Inter Variable", "Inter", "SF Pro Display", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
|
|
--font-mono: "Berkeley Mono", ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
|
|
|
|
--text-xs: 12px;
|
|
--text-sm: 14px;
|
|
--text-base: 16px;
|
|
--text-lg: 18px;
|
|
--text-xl: 24px;
|
|
--text-2xl: 32px;
|
|
--text-3xl: 48px;
|
|
--text-4xl: 72px;
|
|
|
|
--leading-body: 1.5;
|
|
--leading-tight: 1.00;
|
|
--tracking-display: -0.022em;
|
|
|
|
--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: 80px;
|
|
--section-y-tablet: 48px;
|
|
--section-y-phone: 32px;
|
|
|
|
--radius-sm: 6px;
|
|
--radius-md: 8px;
|
|
--radius-lg: 12px;
|
|
--radius-pill: 9999px;
|
|
|
|
--elev-flat: none;
|
|
--elev-ring: 0 0 0 1px var(--border);
|
|
--elev-raised:
|
|
rgba(0, 0, 0, 0.4) 0px 2px 4px,
|
|
0 0 0 1px rgba(255, 255, 255, 0.05);
|
|
|
|
--focus-ring: 0 0 0 2px color-mix(in oklab, var(--accent), transparent 30%), 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
|
|
--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;
|
|
}
|
|
|
|
*, *::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);
|
|
/* Linear's signature: cv01 (alternate 'a') + ss03 (geometric alternates). */
|
|
font-feature-settings: "cv01", "ss03";
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
.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 ────────────────────────────────────────────── */
|
|
h1, h2, h3 {
|
|
font-family: var(--font-display);
|
|
font-weight: 510; /* Linear's signature between-weight */
|
|
margin: 0;
|
|
color: var(--fg);
|
|
font-feature-settings: "cv01", "ss03";
|
|
line-height: var(--leading-tight);
|
|
}
|
|
h1 {
|
|
font-size: var(--text-4xl);
|
|
letter-spacing: var(--tracking-display);
|
|
}
|
|
h2 {
|
|
font-size: var(--text-2xl);
|
|
/* 32px heading 1: line-height 1.13, tracking -0.704px (-0.022em). */
|
|
line-height: 1.13;
|
|
letter-spacing: -0.022em;
|
|
}
|
|
h3 {
|
|
font-size: var(--text-xl);
|
|
/* 24px heading 2: line-height 1.33, tracking -0.288px (-0.012em).
|
|
Overrides the shared 1.00 set on h1/h2/h3 above. */
|
|
line-height: 1.33;
|
|
letter-spacing: -0.012em;
|
|
font-weight: 590;
|
|
}
|
|
p { margin: 0; }
|
|
.lead {
|
|
font-size: var(--text-lg);
|
|
line-height: 1.60;
|
|
color: var(--muted);
|
|
font-weight: 400;
|
|
letter-spacing: -0.009em;
|
|
}
|
|
.body-muted { color: var(--muted); }
|
|
.body-sm { font-size: var(--text-sm); color: var(--muted); }
|
|
.eyebrow {
|
|
font-size: var(--text-xs);
|
|
font-weight: 510;
|
|
color: var(--meta);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
}
|
|
.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 ───────────────────────────────────────────────── */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
padding: 8px 16px;
|
|
border-radius: var(--radius-sm);
|
|
font-family: var(--font-display);
|
|
font-size: var(--text-sm);
|
|
font-weight: 510;
|
|
font-feature-settings: "cv01", "ss03";
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
border: 1px solid transparent;
|
|
transition: background-color var(--motion-fast) var(--ease-standard),
|
|
color 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-ghost {
|
|
background: rgba(255, 255, 255, 0.02);
|
|
color: #e2e4e7;
|
|
border-color: rgba(36, 40, 44, 1);
|
|
}
|
|
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); }
|
|
|
|
/* ─── Pill badges ───────────────────────────────────────────── */
|
|
.pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 0 10px 0 5px;
|
|
border-radius: var(--radius-pill);
|
|
font-size: var(--text-xs);
|
|
font-weight: 510;
|
|
color: var(--fg-2);
|
|
border: 1px solid #23252a;
|
|
line-height: 1.8;
|
|
}
|
|
|
|
/* ─── Cards ─────────────────────────────────────────────────── */
|
|
.card {
|
|
background: rgba(255, 255, 255, 0.02);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
padding: var(--space-6);
|
|
transition: background-color var(--motion-base) var(--ease-standard);
|
|
}
|
|
.card:hover { background: rgba(255, 255, 255, 0.04); }
|
|
|
|
/* ─── Inputs ────────────────────────────────────────────────── */
|
|
.field { display: flex; flex-direction: column; gap: var(--space-2); }
|
|
.field label {
|
|
font-size: var(--text-sm);
|
|
font-weight: 510;
|
|
color: var(--fg-2);
|
|
font-feature-settings: "cv01", "ss03";
|
|
}
|
|
.field input {
|
|
background: rgba(255, 255, 255, 0.02);
|
|
color: var(--fg-2);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
padding: 12px 14px;
|
|
font-family: var(--font-body);
|
|
font-size: var(--text-base);
|
|
font-feature-settings: "cv01", "ss03";
|
|
outline: none;
|
|
transition: border-color var(--motion-fast) var(--ease-standard);
|
|
}
|
|
.field input::placeholder { color: var(--meta); }
|
|
.field input:focus { border-color: var(--accent); }
|
|
|
|
/* ─── Layout ────────────────────────────────────────────────── */
|
|
.hero-grid {
|
|
display: grid;
|
|
grid-template-columns: 1.2fr 1fr;
|
|
gap: var(--space-12);
|
|
align-items: center;
|
|
}
|
|
@media (max-width: 1023px) { .hero-grid { grid-template-columns: 1fr; } }
|
|
.features-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: var(--space-4);
|
|
}
|
|
@media (max-width: 1023px) { .features-grid { grid-template-columns: 1fr 1fr; } }
|
|
@media (max-width: 639px) { .features-grid { grid-template-columns: 1fr; } }
|
|
.hero-actions { display: flex; gap: var(--space-3); margin-block-start: var(--space-6); }
|
|
.icon { width: 16px; height: 16px; flex-shrink: 0; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<main class="container">
|
|
<!-- HERO -->
|
|
<section data-od-id="hero">
|
|
<div class="hero-grid">
|
|
<div class="stack-4">
|
|
<p class="eyebrow">Reference fixture · linear</p>
|
|
<h1>Built for the next era of product development.</h1>
|
|
<p class="lead" style="max-width:50ch">
|
|
Linear streamlines software projects, sprints, tasks, and bug
|
|
tracking. Precision engineered — from the 510 between-weight to
|
|
the semi-transparent white borders. Every value from tokens.css.
|
|
</p>
|
|
<div class="hero-actions">
|
|
<a href="./tokens.css" class="btn btn-primary">Start building</a>
|
|
<a href="./DESIGN.md" class="btn btn-ghost">Read the spec</a>
|
|
</div>
|
|
</div>
|
|
|
|
<aside style="display:flex;flex-direction:column;gap:var(--space-4)">
|
|
<div class="card">
|
|
<p class="eyebrow" style="margin-bottom:var(--space-3)">Issue tracker</p>
|
|
<div style="display:flex;flex-direction:column;gap:var(--space-2)">
|
|
<div style="display:flex;align-items:center;gap:var(--space-3);font-size:var(--text-sm);color:var(--fg-2)">
|
|
<span style="width:8px;height:8px;border-radius:50%;background:#27a644;flex-shrink:0"></span>
|
|
Fix token channel drift in derive script
|
|
</div>
|
|
<div style="display:flex;align-items:center;gap:var(--space-3);font-size:var(--text-sm);color:var(--muted)">
|
|
<span style="width:8px;height:8px;border-radius:50%;background:var(--accent);flex-shrink:0"></span>
|
|
Add 10 brand oracle fixtures
|
|
</div>
|
|
<div style="display:flex;align-items:center;gap:var(--space-3);font-size:var(--text-sm);color:var(--meta)">
|
|
<span style="width:8px;height:8px;border-radius:2px;background:rgba(255,255,255,0.1);flex-shrink:0"></span>
|
|
Ship PR-B derive script
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</aside>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- FEATURES -->
|
|
<section data-od-id="features">
|
|
<div class="stack-3">
|
|
<p class="eyebrow">What this fixture exercises</p>
|
|
<h2 style="max-width:28ch">Darkness as the native medium.</h2>
|
|
</div>
|
|
|
|
<div class="features-grid" style="margin-block-start:var(--space-6)">
|
|
<article class="card stack-3">
|
|
<h3>Dark-first</h3>
|
|
<p class="body-sm">
|
|
#08090a marketing black → #191a1b elevated surface. Luminance
|
|
stepping, not color: each level increases white opacity by 0.02.
|
|
</p>
|
|
</article>
|
|
<article class="card stack-3">
|
|
<h3>Weight 510</h3>
|
|
<p class="body-sm">
|
|
Inter Variable's between-weight. Not 500, not 600 — precisely 510.
|
|
cv01+ss03 on all text transforms generic Inter into Linear's face.
|
|
</p>
|
|
</article>
|
|
<article class="card stack-3">
|
|
<h3>Indigo accent</h3>
|
|
<p class="body-sm">
|
|
#5e6ad2 for CTA backgrounds; #7170ff for interactive; #828fff
|
|
on hover. The only chromatic color in an otherwise achromatic system.
|
|
</p>
|
|
</article>
|
|
</div>
|
|
|
|
<div style="margin-block-start:var(--space-6);display:flex;gap:var(--space-2);flex-wrap:wrap">
|
|
<span class="pill">All issues</span>
|
|
<span class="pill">Active</span>
|
|
<span class="pill">Backlog</span>
|
|
<span class="pill">Done</span>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- FORM -->
|
|
<section data-od-id="form">
|
|
<div style="display:grid;grid-template-columns:1.2fr 1fr;gap:var(--space-12);align-items:start">
|
|
<div class="stack-4">
|
|
<p class="eyebrow">Form components</p>
|
|
<h2>Inputs on dark surfaces.</h2>
|
|
<p class="lead" style="max-width:44ch">
|
|
rgba(255,255,255,0.02) background, border: 1px solid rgba(255,255,255,0.08).
|
|
Focus shifts border to --accent; no halo, no blue ring.
|
|
</p>
|
|
</div>
|
|
<form style="display:flex;flex-direction:column;gap:var(--space-4);max-width:400px"
|
|
onsubmit="event.preventDefault()">
|
|
<div class="field">
|
|
<label for="email">Work email</label>
|
|
<input id="email" type="email" placeholder="you@company.com" />
|
|
</div>
|
|
<div style="display:flex;gap:var(--space-3);margin-top:var(--space-2)">
|
|
<button type="submit" class="btn btn-primary">Sign up</button>
|
|
<button type="button" class="btn btn-ghost">Learn more</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
</body>
|
|
</html>
|