Files
workbuddy_skills/open-design/design-systems/nike/components.html
T
admin 5afeb6b78a ④段整套同步(六节 + P/S/F/J + 模板)+ open-design 移到技能根
一、④段整套同步(用户选候选 A)
- 新增 `references/stage-proto-doc/assets/产品文档模板.html`(16 KB/247 行,从备份拷、转 LF)。
- ④段 SKILL.md 换成备份 15:28 那版,并按模板口径改齐:
  · 「产品文档框架」从「四块+一附录」改成**六节** —— 页面结构/功能清单/使用场景/操作流程/
    跨页与界面状态/待确认与偏离;与模板同构,⛔ 不从空白页重写结构。
  · 编号从 R/S/F 改成 **P 页面/S 场景/F 功能/J 二级功能**,各自唯一、按展示顺序通排。
  · 保留旧版有价值的要求:每项功能补齐 做什么/入口在哪/输入边界/异常与恢复;重点功能三处标红;
    横向流程图每步写清页面/功能/操作/完成判据。
  · 完成标准「七节」→「六节」,自查清单同步换掉「需求」那批条目,补模板与配图两条。
  · 路径 `designs/<项目>/` → `docs/pm/<项目>/ui/`(2 处)。
  · 补回本机那条「每份产出文档开头都要有一张图」的引用(指向主 skill,段内不复述)。
- 主 skill 同步:四段结构表④行、④段沿革、画图小节(④段画页面结构图 + 用户路径)。

二、open-design 移到技能根(用户选候选 A)
- `git mv product-planning/references/stage-delivery/assets/open-design → open-design/`(4178 文件)。
- `.gitignore` 白名单加 `!/open-design/` —— 否则移出去就不再纳入版本控制。
- 引用改 11 处:路径形态 `assets/open-design/...` → `<技能根>/open-design/...`;
  「随段携带的自带件」改称「同根技能」;「路径怎么找」那条改成自带件(段内相对路径)与
  同根技能(`<技能根>/<技能名>/`)两类分开写。
- open-design 自己的 ATTRIBUTION.md 两处同步(它现在与 oil-ui-pro 同层)。
- 副作用(有益):命名闸门读数由 2063 降到 225 —— 此前它把 open-design 里 919 个第三方 md
  当成规则一起扫了;现在只扫本包 23 个 md。已确认④段的 H1 与 4a/4b/4c 子步仍在检查范围内。

三、验收
- check_naming.py --ws E:/ProgramData/AIProject/contentm_agent = 通过 225 / 失败 0 / 提示 27。
- 活文件里 `assets/open-design` 残留 0;工作区 CRLF 文件 0。
2026-10-15 21:17:28 +08:00

513 lines
19 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>Nike — reference components</title>
<meta
name="description"
content="Reference fixture for design-systems/nike. Monochromatic UI
(black / white / grey only), massive uppercase Nike Futura ND display
type at 96px / 0.90 line-height, pill-shaped buttons (30px radius),
zero card shadows. Just keep going."
/>
<style>
:root {
--bg: #ffffff;
--surface: #f5f5f5;
--surface-warm: #fafafa;
--fg: #111111;
--fg-2: var(--fg);
--muted: #707072;
--meta: #9e9ea0;
--border: #cacacb;
--border-soft: #e5e5e5;
--accent: #111111;
--accent-on: #ffffff;
--accent-hover: #707072;
--accent-active: #000000;
--success: #007d48;
--warn: #fca600;
--danger: #d30005;
--font-display:
"Nike Futura ND", "Helvetica Now Display Medium", "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
--font-body:
"Helvetica Now Text Medium", "Helvetica Now Text", "Helvetica Neue", Helvetica, Arial, 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: 48px;
--text-4xl: 96px;
--leading-body: 1.75;
--leading-tight: 0.9;
--tracking-display: -0.02em;
--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: 8px;
--radius-md: 20px;
--radius-lg: 24px;
--radius-pill: 30px;
--elev-flat: none;
--elev-ring: 0 0 0 1px var(--border);
--elev-raised: 0 0 0 1px var(--border);
--focus-ring: 0 0 0 2px rgba(39, 93, 197, 1);
--motion-fast: 150ms;
--motion-base: 200ms;
--ease-standard: cubic-bezier(0.2, 0, 0, 1);
--container-max: 1440px;
--container-gutter-desktop: 48px;
--container-gutter-tablet: 24px;
--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);
font-weight: 500; /* Nike's body weight — Helvetica Now Text Medium */
line-height: var(--leading-body);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* ─── Promo bar — Nike's signature dark band atop every page ─
§4: "Top banner: promotional message bar with dark background
(#111111) and white text", 8–12px vertical padding, 12px/500
centered text. */
.promo-bar {
background: var(--fg);
color: var(--bg);
font-size: var(--text-xs);
font-weight: 500;
text-align: center;
padding: var(--space-2) var(--space-4);
letter-spacing: 0.02em;
}
.promo-bar a { color: var(--bg); text-decoration: underline; text-underline-offset: 2px; }
/* ─── 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-soft); }
@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 ─────────────────────────────────────────────
Nike's display layer is uppercase Nike Futura ND at 96px with
0.90 line-height — the "stadium scoreboard" §3 calls for.
Below the display layer, Helvetica Now (body) handles
everything at weight 500 (the brand's documented dominant
weight for interactive copy). */
h1, h2, h3 {
margin: 0;
color: var(--fg);
}
/* h1 — Hero Display, uppercase Futura, ascenders nearly touch
descenders. Nike Futura ND below 24px is forbidden (§7), so
h1 is the ONLY place this size and treatment appear. */
h1 {
font-family: var(--font-display);
font-size: var(--text-4xl);
font-weight: 500;
line-height: var(--leading-tight);
letter-spacing: var(--tracking-display);
text-transform: uppercase;
}
/* h2 — section heading, Helvetica Now Display Medium tier
(the second slot in --font-display falls onto it when
Futura ND is absent). Title-case, NOT uppercase. */
h2 {
font-family: var(--font-display);
font-size: var(--text-2xl);
font-weight: 500;
line-height: 1.2;
}
/* h3 — card title at the body baseline, weight 500. */
h3 {
font-family: var(--font-body);
font-size: var(--text-base);
font-weight: 500;
line-height: 1.5;
}
p { margin: 0; }
.lead {
font-size: var(--text-lg);
line-height: 1.5;
color: var(--muted);
font-weight: 500;
}
.body-muted { color: var(--muted); }
.body-meta { color: var(--meta); font-size: var(--text-sm); }
.body-sm { font-size: var(--text-sm); }
/* `.eyebrow` — small uppercase label above section heads. The
only place Nike pushes positive tracking (uppercase needs the
breathing room); display copy below uses negative tracking. */
.eyebrow {
font-family: var(--font-body);
font-size: var(--text-xs);
font-weight: 500;
line-height: 1;
color: var(--muted);
text-transform: uppercase;
letter-spacing: 0.12em;
}
.stack-3 > * + * { margin-block-start: var(--space-3); }
.stack-4 > * + * { margin-block-start: var(--space-4); }
.stack-6 > * + * { margin-block-start: var(--space-6); }
.stack-8 > * + * { margin-block-start: var(--space-8); }
/* ─── Buttons — pill geometry, monochrome only ───────────────
Nike's pill (30px radius) is the SOLE button silhouette across
the whole brand (§4). Primary uses --accent (Nike Black) with
the hover shifting to grey-500 — the documented behaviour, not
a darken. Secondary is the 1.5px outlined variant from §4. */
.btn {
display: inline-flex;
align-items: center;
gap: var(--space-2);
padding: 12px 24px;
border: none;
border-radius: var(--radius-pill);
font-family: var(--font-body);
font-size: var(--text-base);
font-weight: 500; /* §7 — never weight 400 on buttons */
line-height: 1.2;
cursor: pointer;
text-decoration: none;
transition:
background-color var(--motion-base) var(--ease-standard),
color var(--motion-base) var(--ease-standard),
border-color var(--motion-base) var(--ease-standard),
box-shadow var(--motion-fast) var(--ease-standard);
}
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn:active { opacity: 0.85; }
.btn-primary {
background: var(--accent);
color: var(--accent-on);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-active); }
/* §4 — secondary outlined: 1.5px solid grey-300, 30px pill. */
.btn-secondary {
background: transparent;
color: var(--fg);
border: 1.5px solid var(--border);
padding: 10.5px 22.5px; /* compensates for the 1.5px border */
}
.btn-secondary:hover {
border-color: var(--muted);
background: var(--surface);
}
/* ─── Inputs — fill-led, soft hairline ───────────────────────
§4 — non-search inputs use grey-100 fill, 8px radius
(--radius-sm), border-active darkens to Nike Black on focus,
and the focus ring is the documented blue 2px halo. */
.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: 14px 16px;
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);
font-weight: 500;
line-height: 1.2;
outline: none;
transition:
border-color var(--motion-base) var(--ease-standard),
background-color var(--motion-base) var(--ease-standard),
box-shadow var(--motion-fast) var(--ease-standard);
}
.field input::placeholder { color: var(--muted); font-weight: 500; }
.field input:hover { border-color: var(--muted); }
.field input:focus-visible {
border-color: var(--fg); /* Border Active = Nike Black, §2 */
background: var(--bg);
box-shadow: var(--focus-ring);
}
.field-help { font-size: var(--text-xs); color: var(--muted); }
/* ─── Cards — flat, surface-defined, NO shadow ───────────────
§6 — "Nike's elevation philosophy is radically flat. There
are no card shadows, no hover lifts, no floating elements."
Cards differentiate from --bg by sitting on --surface, with
a 20px (--radius-md) corner for "interactive containers"
per §5. */
.card {
background: var(--surface);
border-radius: var(--radius-md);
padding: var(--space-6);
display: flex;
flex-direction: column;
gap: var(--space-3);
/* No box-shadow, no border, no hover lift — by Nike contract. */
}
/* ─── Badges — pill-shaped status indicators ─────────────── */
.badge {
display: inline-flex;
align-items: center;
gap: var(--space-2);
padding: 4px var(--space-3);
border-radius: var(--radius-pill);
font-family: var(--font-body);
font-size: var(--text-xs);
font-weight: 500;
line-height: 1.4;
}
.badge-success {
color: var(--success);
background: color-mix(in oklab, var(--success), transparent 88%);
}
.badge-muted {
color: var(--muted);
background: var(--surface);
}
.badge-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: currentColor;
}
/* ─── Links — black text, hover underline, kbd ─────────────
§4 nav: "text color shifts to Grey-500 (#707072)" on hover.
No blue inline links here — Nike keeps reading copy
monochrome and reserves --focus-ring blue for keyboard focus
alone. */
a { color: var(--fg); text-decoration: none; transition: color var(--motion-base) var(--ease-standard); }
a:hover { color: var(--muted); 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, features, form ───────────────── */
.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-5);
background: var(--surface);
border-radius: var(--radius-md);
/* No border, no shadow — surface contrast does the work. */
}
.features-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: var(--space-2); /* Nike's "tight 4-12px" product-grid gap */
}
@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); flex-wrap: wrap; }
.icon { width: 16px; height: 16px; flex-shrink: 0; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
/* `.swoosh` — a stylized swoosh divider rule that anchors the
hero. Pure CSS, no real Nike marks, just a visual nod to the
brand's geometric language. */
.swoosh {
width: 64px;
height: 4px;
background: var(--fg);
border-radius: var(--radius-pill);
}
</style>
</head>
<body>
<div class="promo-bar" role="region" aria-label="Promotional banner">
Free shipping for members. <a href="#join">Join us.</a>
</div>
<main class="container">
<section data-od-id="hero">
<div class="hero-grid">
<div class="stack-6">
<div class="stack-3">
<span class="swoosh" aria-hidden="true"></span>
<p class="eyebrow">Reference fixture · nike</p>
</div>
<h1>Just keep going.</h1>
<p class="lead" style="max-width: 44ch">
Built for the ones who don't quit. From dawn miles to sold-out
stadiums, every stitch earns its place — and every pixel of
this page is here to sell sport, nothing else.
</p>
<div class="hero-actions">
<a href="./tokens.css" class="btn btn-primary">
Shop new arrivals
<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">Read the spec</a>
</div>
</div>
<aside class="hero-meta" aria-label="Member benefits">
<div class="row-between">
<span class="body-sm" style="font-weight: 500">Member status</span>
<span class="badge badge-success">
<span class="badge-dot" aria-hidden="true"></span>
Active
</span>
</div>
<p class="body-meta">Last reviewed <time datetime="2026-05-15">2026-05-15</time> · v1.0</p>
<p class="body-meta">Press <kbd>⌘</kbd> <kbd>K</kbd> to search the spec.</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">Restraint as an athletic discipline.</h2>
</div>
<div class="features-grid" style="margin-block-start: var(--space-8)">
<article class="card">
<h3>Monochrome on purpose</h3>
<p class="body-muted body-sm">
--bg (#ffffff) → --surface (#f5f5f5) → --fg (#111111).
The UI carries no color so product photography can. Red, green,
blue are reserved for semantic moments only.
</p>
<a href="./tokens.css" class="body-sm" style="font-weight: 500">Inspect tokens →</a>
</article>
<article class="card">
<h3>Display type that punches</h3>
<p class="body-muted body-sm">
Nike Futura ND at 96px / 0.90 line-height, uppercase, tightened
tracking. A typographic shockwave reserved exclusively for the
hero — never below 24px.
</p>
<a href="./DESIGN.md" class="body-sm" style="font-weight: 500">Read the rule →</a>
</article>
<article class="card">
<h3>Pills, no shadows</h3>
<p class="body-muted body-sm">
--radius-pill is bound to 30px (the literal Nike value, not
9999). --elev-raised collapses onto --elev-ring because the
brand refuses card shadows outright.
</p>
<a href="./tokens.css" class="body-sm" style="font-weight: 500">Inspect radius →</a>
</article>
</div>
</section>
<section data-od-id="form" id="join">
<div class="form-row">
<div class="stack-4">
<p class="eyebrow">Become a member</p>
<h2>Free shipping. First access. No nonsense.</h2>
<p class="body-muted" style="max-width: 48ch">
Members hear about drops first, get free shipping on every order,
and unlock the Nike Run Club / Training Club apps. One account,
every sport.
</p>
</div>
<form class="form" onsubmit="event.preventDefault();">
<div class="field">
<label for="email">Email address</label>
<input id="email" type="email" placeholder="[email protected]" autocomplete="email" required />
<p class="field-help">We'll send membership perks. No marketing noise.</p>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-primary">Sign me up</button>
<button type="button" class="btn btn-secondary">Learn more</button>
</div>
</form>
</div>
</section>
</main>
</body>
</html>