一、④段整套同步(用户选候选 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。
161 lines
10 KiB
CSS
161 lines
10 KiB
CSS
/* ─────────────────────────────────────────────────────────────────────────
|
||
* design-systems/superhuman/tokens.css
|
||
*
|
||
* Structured token bindings for "Design System Inspired by Superhuman".
|
||
* Premium keyboard-first email client. Predominantly white canvas with a
|
||
* single dramatic gesture of color (deep purple hero), warm cream CTAs,
|
||
* lavender as the sole accent, and charcoal ink (warmer than #000) for text.
|
||
*
|
||
* Brand identity in three sentences:
|
||
* 1. Maximum confidence through minimum decoration — white dominates,
|
||
* borders define containers, shadows are whispered. Lavender Glow
|
||
* (#cbb7fb) is the only accent that ever leaves the warm-neutral
|
||
* grayscale.
|
||
* 2. Super Sans VF with non-standard weight stops (460 / 540 / 600 / 700).
|
||
* Body weight is 460 — slightly heavier than regular but lighter than
|
||
* medium — the typographic signature that feels confident, never bold.
|
||
* 3. Two-radius binary system (8px / 16px) and ultra-tight 0.96 leading
|
||
* on display sizes — headlines compress into architectural blocks
|
||
* while body text breathes at 1.50 leading.
|
||
*
|
||
* Schema decisions:
|
||
* - --bg: #ffffff (Pure White) — the dominant content canvas.
|
||
* - --surface: #ffffff — cards inherit the canvas; --border defines them.
|
||
* - --surface-warm: #e9e5dd (Warm Cream) — lifted warm tier for CTAs.
|
||
* - --fg: #292827 (Charcoal Ink) — warm near-black, never pure black.
|
||
* - --fg-2 → var(--fg) — DESIGN.md uses one ink color on light surfaces.
|
||
* - --muted: #6f6c69 — warm mid-gray for captions, derived to sit
|
||
* between Charcoal Ink and Parchment Border on the warm hue family.
|
||
* - --border: #dcd7d3 (Parchment Border) — warm light gray, slight pink.
|
||
* - --accent: #cbb7fb (Lavender Glow); --accent-on: #292827 — charcoal
|
||
* on lavender (DESIGN.md "Don't use bright/saturated CTA text").
|
||
* - --leading-tight: 0.96 — the signature display compression.
|
||
* - --tracking-display: -0.0275em ≈ -1.32px / 48px (DESIGN.md §3).
|
||
* - --radius-md: 8px (no mid-tier — DESIGN.md mandates only 8 / 16).
|
||
* - --elev-raised: charcoal-tinted whisper, never gray; matches the
|
||
* warm-neutral palette used everywhere else.
|
||
* ─────────────────────────────────────────────────────────────────── */
|
||
|
||
:root {
|
||
/* ─── Surface ─────────────────────────────────────────────────────
|
||
* White canvas dominates. Warm Cream (#e9e5dd) lives in --surface-warm
|
||
* as the lifted warm tier — reserved for CTAs, never used as a card bg. */
|
||
--bg: #ffffff; /* Pure White — primary page background */
|
||
--surface: #ffffff; /* Cards inherit the canvas; --border contains them */
|
||
--surface-warm: #e9e5dd; /* Warm Cream — primary button background only */
|
||
|
||
/* ─── Foreground ──────────────────────────────────────────────────
|
||
* Charcoal Ink — warm near-black with faint brown undertone. Body
|
||
* text uses one ink color throughout; --muted is reserved for true
|
||
* subtext like captions and helper labels. */
|
||
--fg: #292827; /* Charcoal Ink — primary text */
|
||
--fg-2: var(--fg); /* alias — DESIGN.md uses one ink for body */
|
||
--muted: #6f6c69; /* Warm mid-gray — captions, helper text */
|
||
--meta: var(--muted); /* alias — same warm gray for metadata */
|
||
|
||
/* ─── Border ──────────────────────────────────────────────────────
|
||
* Parchment Border — warm light gray with slight pink undertone.
|
||
* Cards rely on borders for containment, not box shadows. */
|
||
--border: #dcd7d3; /* Parchment Border — card edges, dividers */
|
||
--border-soft: var(--border); /* alias — no separate inner-row tier */
|
||
|
||
/* ─── Accent ──────────────────────────────────────────────────────
|
||
* Lavender Glow — soft, approachable purple. The ONLY chromatic
|
||
* departure from the warm-neutral palette. Charcoal sits on it for
|
||
* AA contrast (lavender is too light for white text). */
|
||
--accent: #cbb7fb;
|
||
--accent-on: #292827; /* Charcoal on lavender — DESIGN.md §4 */
|
||
--accent-hover: color-mix(in oklab, var(--accent), black 6%);
|
||
--accent-active: color-mix(in oklab, var(--accent), black 12%);
|
||
|
||
/* ─── Semantic ────────────────────────────────────────────────────
|
||
* Superhuman's marketing exercises extreme color restraint, but the
|
||
* schema requires semantic tokens for product-side usage (status pills,
|
||
* inline validation). Defaults from _schema/defaults.css; legible on white. */
|
||
--success: #16a34a;
|
||
--warn: #eab308;
|
||
--danger: #dc2626;
|
||
|
||
/* ─── Typography ──────────────────────────────────────────────────
|
||
* Super Sans VF — custom variable font with non-standard weight axis
|
||
* (460, 540, 600, 700). Body weight is 460 — the signature stop that
|
||
* sits between Regular and Medium. Fallback chain mirrors DESIGN.md §3. */
|
||
--font-display: "Super Sans VF", system-ui, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
||
--font-body: "Super Sans VF", system-ui, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
||
--font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Monaco, Consolas, monospace;
|
||
|
||
/* Type scale — DESIGN.md §3 hierarchy. 64px hero / 48px section /
|
||
* 28px feature title / 22px card heading / 20px body heading.
|
||
* All eight stops appear verbatim in DESIGN.md — no interpolation. */
|
||
--text-xs: 12px; /* Micro Label */
|
||
--text-sm: 14px; /* Caption family */
|
||
--text-base: 16px; /* Body / Button / Nav */
|
||
--text-lg: 20px; /* Body Heading */
|
||
--text-xl: 22px; /* Card Heading */
|
||
--text-2xl: 28px; /* Feature Title */
|
||
--text-3xl: 48px; /* Section Heading */
|
||
--text-4xl: 64px; /* Display Hero */
|
||
|
||
/* Leading + tracking.
|
||
* 0.96 — the signature display compression (DESIGN.md §3).
|
||
* 1.50 — body text breathes generously by contrast.
|
||
* -0.0275em ≈ -1.32px / 48px from DESIGN.md §3, applied at display sizes only. */
|
||
--leading-body: 1.5;
|
||
--leading-tight: 0.96;
|
||
--tracking-display: -0.0275em;
|
||
|
||
/* ─── Spacing ─────────────────────────────────────────────────────
|
||
* 8px base. Scale per DESIGN.md §5: 4 / 8 / 12 / 16 / 20 / 24 / 32 / 48. */
|
||
--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 rhythm — DESIGN.md §5 says 48–80px between major sections.
|
||
* Top of the range on desktop, compresses on smaller breakpoints. */
|
||
--section-y-desktop: 80px;
|
||
--section-y-tablet: 56px;
|
||
--section-y-phone: 40px;
|
||
|
||
/* ─── Radius ──────────────────────────────────────────────────────
|
||
* Binary system — DESIGN.md §5: only 8px and 16px exist on the
|
||
* marketing site. No micro-rounding (2px), no pill buttons (50px+).
|
||
* --radius-md collapses to --radius-sm because the brand has no
|
||
* mid-tier; --radius-pill is reserved for status dots only. */
|
||
--radius-sm: 8px; /* Buttons, inputs, inline elements */
|
||
--radius-md: 8px; /* No mid-tier — DESIGN.md mandates only 8/16 */
|
||
--radius-lg: 16px; /* Cards, links, larger containers */
|
||
--radius-pill: 9999px; /* Status dots only — never buttons */
|
||
|
||
/* ─── Elevation ───────────────────────────────────────────────────
|
||
* Depth lives in borders and color contrast, not shadow. The raised
|
||
* tier is a charcoal-tinted whisper for product-screenshot frames
|
||
* (DESIGN.md §6 "Subtle shadow … product screenshot containers"). */
|
||
--elev-flat: none;
|
||
--elev-ring: 0 0 0 1px var(--border);
|
||
--elev-raised: 0 2px 12px rgba(41, 40, 39, 0.06);
|
||
|
||
/* ─── Focus ring ──────────────────────────────────────────────────
|
||
* Lavender Glow at 45% — Superhuman is keyboard-first, so the focus
|
||
* indicator must read clearly without violating the muted palette. */
|
||
--focus-ring: 0 0 0 3px color-mix(in oklab, var(--accent), transparent 55%);
|
||
|
||
/* ─── Motion ──────────────────────────────────────────────────────
|
||
* Restrained — Superhuman's velocity is in the keyboard, not the page.
|
||
* Defaults from _schema/defaults.css. */
|
||
--motion-fast: 150ms;
|
||
--motion-base: 200ms;
|
||
--ease-standard: cubic-bezier(0.2, 0, 0, 1);
|
||
|
||
/* ─── Layout ──────────────────────────────────────────────────────
|
||
* 1200px container — DESIGN.md §5 "~1200px content container, centered". */
|
||
--container-max: 1200px;
|
||
--container-gutter-desktop: 24px;
|
||
--container-gutter-tablet: 16px;
|
||
--container-gutter-phone: 12px;
|
||
}
|