字体
字体配置包含字体、字号、字重和行高多个部分,下面分别进行介绍。
字体风格
字体用于设置文本呈现的风格,在 ZUI 中预设了三种字体风格,包括无衬线字体、衬线字体和等宽字体。下面为三种字体的直观展示:
—无衬线字体 默认字体,易于阅读,通常用于正文
The quick brown fox jumps over the lazy dog. 白日依山尽,黄河入海流。欲穷千里目,更上一层楼。
—衬线字体 更美观,通常用于标题或装饰性文本
The quick brown fox jumps over the lazy dog. 白日依山尽,黄河入海流。欲穷千里目,更上一层楼。
—等宽字体 每个字符宽度一致,便于对齐,辨识度高,通常用于代码和编号等
The quick brown fox jumps over the lazy dog. 白日依山尽,黄河入海流。欲穷千里目,更上一层楼。
在 ZUI 中,以上三种字体风格所使用的 CSS font-family 属性值如下:
无衬线字体 font-sans
…
衬线字体 font-serif
…
等宽字体 font-mono
…
修改字体
通常不建议修改字体,如需修改可以通过定制主题实现,具体参见 主题 文档。
在 ZUI 中可以通过 CSS 工具类来设置字体,详细用法参见 CSS 工具类 / 排版 / 字体 文档。
字号
字号用于设置文本呈现的大小,在 ZUI 中预设了多种字号。详情参见下表:
—根节点字号设置在
<html> 元素上的字号font-size: …
The quick brown fox jumps over the lazy dog. 白日依山尽,黄河入海流。欲穷千里目,更上一层楼。
—小号文本
font-size: …
The quick brown fox jumps over the lazy dog. 白日依山尽,黄河入海流。欲穷千里目,更上一层楼。
—基准字号文本通常与页面默认字号一致
font-size: …
The quick brown fox jumps over the lazy dog. 白日依山尽,黄河入海流。欲穷千里目,更上一层楼。
—中号文本
font-size: …
The quick brown fox jumps over the lazy dog. 白日依山尽,黄河入海流。欲穷千里目,更上一层楼。
—大号文本
font-size: …
The quick brown fox jumps over the lazy dog. 白日依山尽,黄河入海流。欲穷千里目,更上一层楼。
—超大号文本
font-size: …
The quick brown fox jumps over the lazy dog. 白日依山尽,黄河入海流。欲穷千里目,更上一层楼。
—2x 超大号文本
font-size: …
The quick brown fox jumps over the lazy dog. 白日依山尽,黄河入海流。欲穷千里目,更上一层楼。
—3x 超大号文本
font-size: …
The quick brown fox jumps over the lazy dog. 白日依山尽,黄河入海流。欲穷千里目,更上一层楼。
—4x 超大号文本
font-size: …
The quick brown fox jumps over the lazy dog. 白日依山尽,黄河入海流。欲穷千里目,更上一层楼。
修改字号
通常不建议修改字号,如需修改可以通过定制主题实现,具体参见 主题 文档。
在 ZUI 中可以通过 CSS 工具类来设置字号,详细用法参见 CSS 工具类 / 排版 / 字号 文档。
字重
在 ZUI 中预设了 6 种常见字重,详情参见下表:
—超细文本
font-weight: …
The quick brown fox jumps over the lazy dog. 白日依山尽,黄河入海流。欲穷千里目,更上一层楼。
—细文本
font-weight: …
The quick brown fox jumps over the lazy dog. 白日依山尽,黄河入海流。欲穷千里目,更上一层楼。
—正常粗细文本
font-weight: …
The quick brown fox jumps over the lazy dog. 白日依山尽,黄河入海流。欲穷千里目,更上一层楼。
—中等粗细文本
font-weight: …
The quick brown fox jumps over the lazy dog. 白日依山尽,黄河入海流。欲穷千里目,更上一层楼。
—加粗文本
font-weight: …
The quick brown fox jumps over the lazy dog. 白日依山尽,黄河入海流。欲穷千里目,更上一层楼。
—超粗文本
font-weight: …
The quick brown fox jumps over the lazy dog. 白日依山尽,黄河入海流。欲穷千里目,更上一层楼。
修改字重
通常不建议修改字重,如需修改可以通过定制主题实现,具体参见 主题 文档。
在 ZUI 中可以通过 CSS 工具类来设置字重,详细用法参见 CSS 工具类 / 排版 / 字重 文档。
行高
ZUI 中预设了多种常见行高,下面为几种常见行高的示例:
—紧密
line-height: …
The release review is scheduled for Friday at 15:00. The team will confirm the delivery scope, review the acceptance results, and check the upgrade instructions before publishing. After the update, the on-call engineer will verify sign-in, ticket search, and file uploads. Any remaining issues will be recorded with an owner and a follow-up date. 本次迭代交付工单查询、附件预览和消息通知。发布前请核对验收结果与升级说明,确认负责人和回退步骤。发布后由值班成员检查核心操作,记录客户反馈,并安排下一轮改进。
—紧凑
line-height: …
The release review is scheduled for Friday at 15:00. The team will confirm the delivery scope, review the acceptance results, and check the upgrade instructions before publishing. After the update, the on-call engineer will verify sign-in, ticket search, and file uploads. Any remaining issues will be recorded with an owner and a follow-up date. 本次迭代交付工单查询、附件预览和消息通知。发布前请核对验收结果与升级说明,确认负责人和回退步骤。发布后由值班成员检查核心操作,记录客户反馈,并安排下一轮改进。
—正常
line-height: …
The release review is scheduled for Friday at 15:00. The team will confirm the delivery scope, review the acceptance results, and check the upgrade instructions before publishing. After the update, the on-call engineer will verify sign-in, ticket search, and file uploads. Any remaining issues will be recorded with an owner and a follow-up date. 本次迭代交付工单查询、附件预览和消息通知。发布前请核对验收结果与升级说明,确认负责人和回退步骤。发布后由值班成员检查核心操作,记录客户反馈,并安排下一轮改进。
—宽松
line-height: …
The release review is scheduled for Friday at 15:00. The team will confirm the delivery scope, review the acceptance results, and check the upgrade instructions before publishing. After the update, the on-call engineer will verify sign-in, ticket search, and file uploads. Any remaining issues will be recorded with an owner and a follow-up date. 本次迭代交付工单查询、附件预览和消息通知。发布前请核对验收结果与升级说明,确认负责人和回退步骤。发布后由值班成员检查核心操作,记录客户反馈,并安排下一轮改进。
—松散
line-height: …
The release review is scheduled for Friday at 15:00. The team will confirm the delivery scope, review the acceptance results, and check the upgrade instructions before publishing. After the update, the on-call engineer will verify sign-in, ticket search, and file uploads. Any remaining issues will be recorded with an owner and a follow-up date. 本次迭代交付工单查询、附件预览和消息通知。发布前请核对验收结果与升级说明,确认负责人和回退步骤。发布后由值班成员检查核心操作,记录客户反馈,并安排下一轮改进。
在 ZUI 中可以通过 CSS 工具类来设置行高,详细用法参见 CSS 工具类 / 排版 / 行高 文档。