用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/gnurio/refactoring-ui-plugin --skill apply-typography-scale命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | apply-typography-scale |
| description | Create clear typographic hierarchy using hand-crafted font sizes, weights, and colors |
| domain | ui-design |
| skill-type | generative |
| version | 1.0.0 |
| prerequisites | ["01-establish-visual-hierarchy"] |
| dependencies | [] |
| input | [{"content_structure":"array"},{"base_size":"number (default 16)"},{"context":"marketing | application | content"}] |
| output | [{"type_scale":"array of sizes"},{"weight_assignments":"object"},{"color_assignments":"object"}] |
Create clear typographic hierarchy using a hand-crafted set of font sizes, weights, and colors.
Hero: 48-60px, weight 700, line-height 1.1
H1: 36-40px, weight 700, line-height 1.2
H2: 28-32px, weight 600, line-height 1.3
Body: 16-18px, weight 400, line-height 1.6
Small: 14px, weight 400, line-height 1.6
Caption: 12px, weight 400, line-height 1.5
H1: 30-36px, weight 700
H2: 24px, weight 600
H3: 20px, weight 600
H4: 16px, weight 600
Body: 14-16px, weight 400
Small: 12-13px, weight 400
Inverse proportion to size:
em sizing compounds unpredictably in nested elements| Failure | Example | Fix |
|---|---|---|
1.25em parent, 0.875em child = 17.5px |
Use px or rem |
| Micro-steps | 16px, 18px, 20px | 16px, 20px, 28px |
| Weight 300 | Light body text | Minimum 400 |
| Long lines | 100+ characters | Constrain to 35em |
| Uniform line-height | 1.5 for all | Vary by size |
See examples/typography-scale/ for scale implementations.
references/hand-crafted-scales.mdreferences/avoid-em-units.mdreferences/line-height-proportion.md