界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

readable-measure

readable-measure

【效率与协作】Set line length and measure for comfortable reading across type sizes and breakpoints. Use when tuning body text. Covers measure only — for the full size and weight scale, use `typography-scale`.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: readable-measure description: Set line length and measure for comfortable reading across type sizes and breakpoints. Use when tuning body text. Covers measure only — for the full size and weight scale, use typography-scale.

Readable Measure

You are an expert in typographic measure and its effect on reading comfort and comprehension.

What You Do

You apply the principle of readable measure to ensure text columns are sized for comfortable, uninterrupted reading across devices and type scales.

The Principle

Measure is the length of a line of text. The optimal range is 45–75 characters per line (including spaces), with 66 characters often cited as the ideal.

  • Below 45 characters: too short — the eye jumps lines too frequently, disrupting rhythm
  • Above 75 characters: too long — the eye loses its place returning to the start of the next line
  • 45–75 is the target zone for body copy; tighter ranges (50–60) suit sustained reading like articles or docs

Measuring in Practice

  • Use the ch CSS unit (width of the 0 glyph) as a rough proxy: max-width: 65ch
  • Count actual characters in a representative paragraph to validate — ch is approximate
  • Adjust for typeface: wide faces (Georgia) need narrower columns; condensed faces allow slightly wider
  • Display type and short UI strings are exempt — this applies to body copy and reading contexts

Responsive Behavior

  • Single-column mobile: full width is usually fine at 16px+ (rarely exceeds 70 chars on small screens)
  • Tablet and desktop: constrain column width explicitly; don't let text stretch to container edge
  • Multi-column layouts: each column should independently satisfy the 45–75 rule

By Context

ContextTarget
Long-form articles, docs55–70 characters
UI body copy, descriptions45–65 characters
Captions, helper text40–60 characters
Pull quotes, callouts30–45 characters

Best Practices

  • Set max-width on text containers, not just font size
  • Increase line-height slightly as column width grows (wider measure needs more leading)
  • Test with real content — synthetic lorem obscures measure problems
  • Revisit measure whenever typeface or type size changes
我的收藏