better-typography

Reviews and fixes web typography across fonts, spacing, wrapping, and accessibility in CSS.

Updated Sep 3, 2026
One-click install
npx skills add https://github.com/xzedm/clipplic-landing --skill better-typography-xzedm
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: better-typography
Source: https://github.com/xzedm/clipplic-landing/tree/main/.agents/skills/better-typography
Command: npx skills add https://github.com/xzedm/clipplic-landing --skill better-typography-xzedm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Web interfaces often ship with inconsistent font choices, broken heading hierarchy, poor line lengths, and wrapping or truncation issues that hurt readability. This Skill provides a systematic set of typography principles and review procedures so text renders correctly across browsers, devices, and writing directions. ## Core Features & Use Cases - Font Selection and Loading: Guides woff2 format usage, variable font axes, OpenType features, and correct use of CSS properties like font-weight and font-variant-numeric over raw low-level tags. - Spacing, Sizing, and Wrapping: Covers type scales, heading hierarchy, line-height, letter-spacing, measure caps, text-wrap, truncation, and tabular numbers for changing values. - Accessibility and Details: Addresses iOS input zoom at 16px, underline metrics, text selection, font smoothing, lang/dir attributes, and bidi handling. - Use Case: When reviewing a React component where a live price shifts layout as digits change, the Skill identifies the issue and recommends font-variant-numeric: tabular-nums, expressed in the project's own styling system such as Tailwind utilities. ## Quick Start Review the typography in my frontend components and report findings with severity, location, and fixes.

Frequently Asked Questions about better-typography

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix layout shift caused by changing numbers in CSS?▼

Apply font-variant-numeric: tabular-nums to any value that changes, such as timers, counters, or prices. Proportional digits have varying widths, so tabular numbers keep each digit the same width and prevent layout shift.

How do I stop iOS Safari from zooming when focusing an input?▼

iOS Safari zooms when input text is below 16px. Either size the input up on mobile with a responsive class like text-base sm:text-sm, or keep font-size at 16px and scale it down visually with transform while compensating width and line-height.

What font format should I use for web projects?▼

Use woff2, which offers Brotli compression and broad browser support. Woff is only a fallback for very old browsers, while ttf and otf are raw desktop formats without web compression and should not be served on the web.

Should I use font-feature-settings or font-variant-numeric for tabular numbers?▼

Prefer font-variant-numeric: tabular-nums over font-feature-settings: "tnum" 1. High-level CSS properties keep working when a non-variable fallback font renders, while raw feature tags only apply to fonts supporting them.

When should I use text-wrap balance versus pretty?▼

Use text-wrap: balance on headings to distribute text evenly across lines, and text-wrap: pretty on descriptions to avoid a single short word on the last line. Skip both in long-form paragraphs, where they waste space and reduce readability.

What are the limits of disabling font synthesis in CSS?▼

Setting font-synthesis: none should only happen after verifying every required bold, italic, small-cap, superscript, and subscript form stays visually distinct across the full fallback stack. Disabling synthesis blindly can erase emphasis and harm meaning.