Agent skill

Better Typography Skill: Type Scale, Wrapping and Punctuation

The better-typography skill checks how text renders, from type scale and line-height to font features, wrapping, truncation and punctuation, with exact values where they are measurable.

Install
git clone https://github.com/jakubkrehel/skills.git
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the better-typography skill?

The better-typography skill sets and reviews how text renders in a product. It covers the type scale, spacing, font loading, wrapping, truncation and punctuation, and writes fixes in your styling system. It separates measured rules, such as unitless line-height, from heuristics it only reports when they break your own scale.

Better-typography splits its advice into two piles. Some values are exact and count as findings when missed. Others are heuristics that get reported only when they break the project's own scale.

The exact pile is short: unitless line-height, weight 400 or heavier below 18px, a 60 to 75 character measure, 16px inputs on iOS and tabular-nums on changing values.

Rules worth knowing

  • Line-height by role: display text 1.1, headings 1.2 to 1.3 and body copy 1.5 to 1.6, always unitless.
  • Letter-spacing in em: negative 0.01em to 0.02em on headings of 24px and up, 0.05em on small uppercase labels.
  • Wrapping: text-wrap: balance on headings, pretty on paragraphs and nowrap on badges.
  • Typographic punctuation in rendered text, with straight quotes kept in code.

Why font loading is in scope

Browsers synthesize a weight or style that a family does not ship, which distorts the face. The skill asks you to load every face the design uses and to disable synthesis only after checking the fallback stack.

Who it suits

Best for

  • Applying a consistent type scale with semantic names across a codebase.
  • Finding shifting numbers, lone last-line words and truncation with no way back.
  • Mobile forms where iOS Safari zooms the page on small inputs.

Not for

  • Choosing a new typeface. The skill never proposes one unless the task asks for a type change.
  • Copy edits, semantic heading structure and RTL spatial layout, which sit with other better skills. Related pages: typeset and tailwind-design-system.

Use it with UiChemy

Lock the scale, weights and measure while the design is still cheap to change. When it is settled, bring it into WordPress with UiChemy Figma to WordPress or AI to WordPress, then compare the rendered text against the scale. Get Started on uichemy.com.