better-typography

Reviews and fixes CSS typography covering type scales, spacing, wrapping, and variable fonts.

6.7k|239|Updated Jul 10, 2026
One-click install
npx skills add https://github.com/jakubkrehel/skills --skill better-typography-jakubkrehel
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: better-typography
Source: https://github.com/jakubkrehel/skills/tree/main/skills/better-typography
Command: npx skills add https://github.com/jakubkrehel/skills --skill better-typography-jakubkrehel

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Interfaces often ship with inconsistent font sizes, broken heading hierarchy, bad line wrapping, truncated content, and synthesized font weights that distort the intended design. This Skill audits rendered typography against concrete CSS rules and produces fixes written in the project's own styling system. ## Core Features & Use Cases - Type system review: Checks type scale usage, semantic size naming, heading hierarchy, line-height by role, and letter-spacing by size. - Rendering and wrapping fixes: Applies text-wrap balance/pretty, truncation with ellipsis or line-clamp, tabular numbers, and measure caps of 60-75 characters. - Font loading and OpenType guidance: Covers woff2 formats, font-synthesis risks, variable font axes, and OpenType features like tabular-nums and stylistic sets. - Use Case: Ask it to review a page's styles and receive a severity-ranked table of findings with before/after values, such as a card description using heading line-height or an input under 16px triggering iOS zoom. ## Quick Start Review the typography in my project and report any issues with font sizes, spacing, wrapping, and truncation.

Frequently Asked Questions about better-typography

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

FAQPage Schema
How do I fix bad text wrapping in CSS headings?▼

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

How to prevent iOS Safari zoom on input focus?▼

Keep the input font-size at 16px or larger, since Safari zooms when it is smaller. Either size the input up on mobile with a responsive class, or keep 16px and render the intended size with a transform scale while compensating width and line-height.

What is the difference between font-variation-settings and font-weight?▼

font-weight is a CSS property that keeps working when a non-variable fallback font renders, while font-variation-settings with the wght tag silently does nothing on fallback fonts. Reserve raw axis tags for custom axes like GRAD that have no property equivalent.

Why do numbers shift layout when values update?▼

Digits have different widths by default, so timers, counters, and prices shift the layout as they change. Apply font-variant-numeric: tabular-nums to any changing value so every digit occupies equal width.

When should I use text-overflow ellipsis versus line-clamp?▼

Use text-overflow: ellipsis with overflow: hidden and white-space: nowrap for single-line truncation, and line-clamp when multiple lines are allowed before cutting off. When the hidden text matters, keep the full value reachable in a tooltip or expanded view.