Repository navigation
ONE-88 / Stage 3 · 页面级视觉重构(11 页接入设计 token) - #139
Merged
Merged
Conversation
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
范围
ONE-88 Stage 3:11 个页面(Setup / Login / Register / TwoFactor / ForgotPassword / Links / Analytics / Settings / AdminLinks / AdminUsers / AdminSettings)全面接入 Stage 2 冻结的 token 与组件。不改 token、不改组件/layout 结构、不改后端与业务逻辑。
核心变化
text-h1 font-bold tracking-tight+ 副标题(新增 i18n key);正文/辅助文字归入text-body/text-caption/text-micro阶梯;CardTitle/CardDescription 自带阶梯,页面不再覆盖text-base/text-2xl。space-y-6节奏;loading/emptypy-12 → py-16;label→input 间距space-y-1 → space-y-2(契约 2.6 的 8px 档)。tracking-caps全大写;序号列降 micro;点击量/统计值一律font-mono font-semibold tabular-nums(契约 §3.4);StatCard 改为 caps 标签 + h1 等宽数值。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)→ 本分支。