Principles
系统的四条底层原则 — 任何一个新组件诞生前都应先对齐。
01 · Legibility over decoration
数据优先。正文对比度不低于 7:1,数字使用 tabular mono,标签永远大于 11px。
02 · One action color
主 CTA 只用 Primary Mint。金色仅授予 grade / achievement。不允许「双主色」并存。
03 · Physics-only rainbow
Refractor 彩虹只出现在「代表卡片本身」的元素上。UI chrome 一律走灰阶 + 单色。
04 · Motion earns its place
持续循环动画只用于「现在正在发生」的事(live pulse / rip reveal)。其他所有运动用于状态反馈且 ≤ 240ms。
Inter + JetBrains Mono
Inter 负责所有 UI、标题、正文;JetBrains Mono 专门给数字(余额、价格、地址、代码)。Outfit 与 Space Mono 全面下线。
Semantic palette
每一个颜色都有明确用途。不允许把装饰色(refractor rainbow)当语义色用。
Primary · The only action color
★ p-500 是 Primary action。用于所有主 CTA、focus ring、progress、链接。
Gold · Grade & achievement only
用于:PSA grade badge、Legendary tier、achievement unlock、vault NAV accent。 严禁用于按钮或链接。
Semantic · Status & signal
Text ladder · WCAG contrast
Primary text sample
Secondary body text
Tertiary labels
Decorative only
7 层背景阶梯
每一层都有明确职责映射。取代原来的 3 层(card / surface / elevated),解决嵌套场景下的层次混淆。
Ladder
5 级圆角阶梯
Mapped to components
Single base + 4 variants + 3 sizes
Variants
Sizes
States
Numeric-first
Text input
Swap amount (numeric + token selector)
Status signals
Semantic chips
Grade badges (gold reserved)
Trading terminal density
Pool table
Segmented control + Progress
Three durations, three purposes
Only persistent motion: live pulse
Refractor lives here — and only here
卡面的物理质感是 Tens 的核心叙事。Chrome surface + oil-slick refractor 被严格限制在代表物理卡片的元素上。
Rules of the refractor
- ✓ 卡片产品展示 · slab card · grade tile
- ✓ Legendary tier 表面
- ✓ Rip reveal 瞬间
- ✗ 按钮、链接、progress bar
- ✗ Hero 标题渐变
- ✗ Loading / skeleton 状态
- ✗ 图标、nav 品牌元素