Skip to content

ONE-88 / Stage 3 · 页面级视觉重构(11 页接入设计 token) - #139

Merged
mapxn merged 1 commit into
mainfrom
agent/mary/096affdb73e0
Oct 24, 2026
Merged

mapxn merged 1 commit into
mainfrom
agent/mary/096affdb73e0

Conversation

@mapxn

@mapxn mapxn commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

范围

ONE-88 Stage 3:11 个页面(Setup / Login / Register / TwoFactor / ForgotPassword / Links / Analytics / Settings / AdminLinks / AdminUsers / AdminSettings)全面接入 Stage 2 冻结的 token 与组件。不改 token、不改组件/layout 结构、不改后端与业务逻辑。

核心变化

  • Typography:页面标题统一 text-h1 font-bold tracking-tight + 副标题(新增 i18n key);正文/辅助文字归入 text-body / text-caption / text-micro 阶梯;CardTitle/CardDescription 自带阶梯,页面不再覆盖 text-base/text-2xl。
  • Whitespace:页面容器统一 space-y-6 节奏;loading/empty py-12 → py-16;label→input 间距 space-y-1 → space-y-2(契约 2.6 的 8px 档)。
  • Visual hierarchy:表头统一 caption + tracking-caps 全大写;序号列降 micro;点击量/统计值一律 font-mono font-semibold tabular-nums(契约 §3.4);StatCard 改为 caps 标签 + h1 等宽数值。
  • Color:Analytics 图表色从硬编码 hex 改为 hsl(var(--chart-*)) token(暗色主题自动适配);裸 select 样式对齐 Input;交互过渡补齐 token 化的 duration/easing。

验证

  • pnpm build:2/2 packages 成功(web tsc + vite build 通过)。
  • biome check(仓库 lint):0 errors,103 files。

PR 栈

base: agent/mary/e5e99dbb6618(Stage 2,PR #138)→ 本分支。

- Page headers adopt text-h1/bold/tracking-tight with muted subtitles
  (new i18n keys: links.titleDesc, analytics.titleDesc,
  settings.titleDesc, admin.{usersDesc,allLinksDesc,globalSettingsDesc})
- Typography ladder: text-sm/xs/2xl -> text-body/caption/micro/h*;
  CardTitle/CardDescription own the heading ladder (drop text-base overrides)
- Whitespace: page containers -> space-y-6 rhythm; loading/empty states
  py-12 -> py-16; label->input gap space-y-1 -> space-y-2
- Tables: caption + tracking-caps uppercase headers, micro seq column,
  numeric click counts in font-mono semibold tabular-nums, tokenized
  hover transitions, rounded-lg card-backed containers
- Analytics: charts use hsl(var(--chart-*)) tokens (dark-theme aware)
  instead of hardcoded hex; stat cards get caption/caps labels and
  h1 mono values
- Raw selects restyled to match Input (h-10, shadow-xs, focus ring)
- TwoFactor tabs and toggle chips use token durations/easings
- dialog.tsx/card.tsx whitespace-only biome formatting fixes
@mapxn
mapxn changed the base branch from agent/mary/e5e99dbb6618 to main October 24, 2026 02:34
@mapxn
mapxn merged commit fcd02b1 into main Oct 24, 2026
@mapxn
mapxn deleted the agent/mary/096affdb73e0 branch November 8, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant