做产品 PMaker
空格的键盘
七级字号
本月对账
张明的项目
共 12 笔记录
总额 ¥28,400
3 月 28 日生成
待客户确认
每级只差一两像素,看不出主次
四级字号
本月对账
张明的项目
共 12 笔 总额 ¥28,400
3 月 28 日生成
待客户确认
22 / 15 / 13 / 11,四级足够表达

同样六条信息。左边用了六个字号还是分不出主次,右边四级就够,因为差距拉开了。

Type Scale

Use only three to four font sizes across the whole site. The fewer the levels, the clearer each one's meaning.

What you'll run into
  • 页面上有七八种字号,但读起来还是平的
  • 每加一个新元素都要纠结用多大的字
  • 同类信息在不同页面上字号不一样

More sizes doesn't mean more hierarchy. When adjacent levels differ by only a pixel or two, users can't perceive the difference—they just feel it's "a bit uneven." Hierarchy comes from gaps, not from the number of levels.

How to define the scale

级别桌面端移动端用在哪
大标题28–32px22–24px页面主标题,一屏只有一个
小标题16–18px16px区块标题、卡片标题
正文14–15px15–16px主要内容。移动端反而要大一点
辅助12–13px12px时间、状态、说明文字
Four sizes times two weights times three colors gives twenty-four combinations in theory; in practice you'll use no more than eight. Plenty.

When you need more steps, generate them with a geometric ratio: starting from body text, multiply by 1.25 or 1.333 going up and divide by the same ratio going down. The resulting scale is naturally harmonious.

层级来自差距,不来自级数 七八个字号,相邻只差 1–2px 页面主标题 区块标题 正文内容在这里 辅助说明文字 用户感知不到差别,只会觉得「有点不齐」 四级,相邻至少差 1.25 倍 页面主标题 区块标题 正文内容在这里 辅助说明文字 一屏只有一个大标题,其余各归各位 而多数时候,加粗和变灰比加大字号更克制——同一个字号也能拉出三级,布局完全不用调 主要文字 近黑 + 加粗 次要文字 中灰 辅助文字 浅灰 四个字号 × 两档字重 × 三档颜色,理论上二十四种组合,实际常用的不超过八种——够用了。
Four sizes times two weights times three colors gives twenty-four combinations in theory; in practice you'll use no more than eight. Plenty.

Three dimensions beyond size

Hierarchy doesn't have to come entirely from size. Most of the time, bolding and graying are more restrained than enlarging.

维度怎么用好处
字重常规和加粗两档就够不改变占位空间,布局不用调
颜色深浅主文字近黑、次要文字中灰、辅助文字浅灰同一个字号能拉出三个层级
间距重要的周围留更多空间完全不改字本身,最干净的一种
Four sizes times two weights times three colors gives twenty-four combinations in theory; in practice you'll use no more than eight. Plenty.