agentleFS
HugoLopes45HugoLopes45/design-skills/skills/typography/SKILL.md

typography

Skill1 starsChanged 3 months agoMITView on GitHub

Type scale, optical sizing, tracking, measure, tabular figures, OpenType features, and font pairing. Use when choosing fonts, building a type scale, or when text looks off — tracking, line length, numeral alignment, heading hierarchy.

16 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use graphic-design and ui-design.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • travisjneumanSkill

    graphic-design

    Professional graphic design principles for digital and print media. Use when creating visual designs, choosing color palettes, typography, layouts, or providing design feedback.

    Also in 3 projects that use this

  • SentrySkill

    ui-design

    Also in 3 projects that use this

The file

Files
SKILL.md

Typography

Typography is not a font list. It is the design of reading.

Optical sizing — type behaves differently at different sizes

At display scale (48px+), letterforms have tight tracking and strong weight — the optical mass of the stroke fills the needed hierarchy. At body scale (14–16px), the same tracking becomes compressed and hard to read; loosen it slightly. At caption scale (11–12px), tracking needs significant loosening to maintain legibility — cramped small text is invisible text.

The principle: tighten as size increases, loosen as size decreases. Adjust per typeface — a condensed grotesque tightens faster than a humanist sans. The values below are starting points, not targets. Set them, then look, then adjust.

ScaleSize rangeTracking directionWeightLeading
Display48px+Tight (negative)HeavyCompressed
Headline24–40pxSlightly tightMedium-heavyTight
Subhead18–22pxNeutralMediumStandard
Body14–16pxNeutral to looseRegularRelaxed
Caption/Label11–13pxLoose (positive)RegularStandard

Specific em values are typeface-dependent. The direction column is the invariant — the numbers are where you start, not where you stop.

Measure — line length controls comprehension

Long lines force eye tracking. Short lines cause constant line breaks. The optimal measure for body text is 50–75 characters (roughly 45ch–70ch). This is not a soft suggestion — at > 80ch, comprehension degrades. Use max-width: 65ch on prose containers. Never 100% on body text in a full-width layout.

Tabular figures — numbers need alignment

In tables, price lists, leaderboards, or any interface where numbers are scanned vertically: use font-variant-numeric: tabular-nums. Proportional numerals have different widths per digit — 1 narrower than 8 — which means column values won't align. tabular-nums gives all digits the same horizontal advance. Apply via font-feature-settings: "tnum" as a fallback.

.data-numeric {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

OpenType feature flags — use the font's built-in intelligence

Modern fonts ship features that are off by default:

FeatureCodeWhen to use
Ligatures"liga", "calt"Always — better letter combinations
Small caps"smcp"Legal labels, abbreviations, run-in subheads
Oldstyle figures"onum"Body text running with prose — less intrusive than lining numerals
Tabular figures"tnum"Any numeric column — price, stat, metric
Fraction support"frac"Recipe, specification, measurement displays
Discretionary ligatures"dlig"Display text only — too decorative for body

Type pairing logic

Pairing is contrast + harmony. The two fonts must differ enough to signal role, similar enough not to fight.

  • Display + body sans: sharp display (Fraunces, Playfair, Canela) over neutral humanist sans (Geist, Satoshi). The contrast is personality versus utility.
  • Editorial serif + humanist sans: editorial serif (Freight, Libre Baskerville) over humanist sans for body — warm, readable long-form.
  • Single family, weight contrast: one variable font, extreme weight range (100–900). The hierarchy comes entirely from weight and size. Clean. Requires a font with full weight support.
  • Forbidden: two decorative fonts competing for attention. Two geometric sans at similar weights. Serif for data-dense UI.

Font families — selection criteria

An existing product's typeface stays unless you are explicitly reopening visual direction. Choose by personality fit, not by avoiding overuse:

FamilyPersonalityUse for
GeistPrecise, technical, slightly coldDeveloper tools, APIs, data products
SatoshiFriendly geometric, roundedConsumer apps, onboarding, marketing
Cabinet GroteskExpressive, slightly idiosyncraticCreative tools, editorial, brand-forward
OutfitClean, neutral, flexibleDashboards, SaaS products, minimal UI
FrauncesOptical, variable, display-firstEditorial headers, marketing heroes, culture brands
JetBrains MonoDesigned for code at small sizesCode blocks, terminal, monospace data

Banned: system-ui as the sole choice for premium UI. Inter — not wrong; overused; choose on craft grounds.


Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.