组件文档

23 个组件已交付 · 31 个排期中 · 78 个设计令牌

阶段 1 完成

语义色

组件只允许引用语义名(primary / success …),不直接写颜色值。深浅主题各有一套取值。

background

--background · 页面底色

foreground

--foreground · 正文文字

card

--card · 卡片/面板底

muted-foreground

--muted-foreground · 次要文字

border

--border · 分割线与描边

primary

--primary · 主色、选中态、进度

品牌三色

渐变必须按 蓝 → 紫 → 青 的顺序使用,反向会显得脏。

brand-1

--brand-1 · 渐变起点(蓝)

brand-2

--brand-2 · 渐变中点(紫)

brand-3

--brand-3 · 渐变终点(青)

状态色

考试类界面里,对错与告警必须有唯一色彩语义,不能复用品牌色。

success

--success · 答对 / 达成

warning

--warning · 标记 / 剩余时间告警

danger

--danger · 答错 / 危险操作

info

--info · 提示 / 中性强调

玻璃与辉光

同一屏最多两层玻璃;辉光只跟随主按钮和选中态。

--glass-bgwhite / 4.5%
--glass-borderwhite / 9%
--glass-blur22px
--glass-saturate150%
--shadow-glow双层阴影
.glass
.glass-strong

圆角与动效

--radius-sm8px · 按钮、输入框、标签
--radius-md12px · 列表项、分段控件
--radius-lg16px · 中号卡片
--radius-xl20px · 标准卡片、面板
--radius-2xl28px · 弹层、模考浮层
--dur-fast120ms
--dur200ms
--dur-slow340ms
--ease-outcubic-bezier(.22,1,.36,1)
--ease-springcubic-bezier(.34,1.36,.64,1)

字号阶梯

只有 6 档,不允许出现 13.5px 这种中间值。

text-[28px]/[1.15]四六级冲刺计划
text-[21px]今日待复习
text-[15px]薄弱词汇 · 32 个
text-sm按记忆曲线安排今天的复习顺序。
text-xs预计用时 8 分钟
text-2xsCET-6 · 高频

词阶 · CET / 雅思 / 托福 备考设计系统 · v0.1.0

所有题目与数据为自编 Mock,不含真题内容组件文档