Font sizes from one ratio
Give Claude a base size and the kind of page, and get a type scale written as tokens.
See it work
You give it
Type scale for a photographer's portfolio site. Base 18px.
You get back
For a portfolio I'd use the Augmented Fourth, 1.414. It gives big jumps between steps, which suits large project titles over photographs. If it feels too loud once you see it, 1.333 is the calmer fallback.
Base 18 px, ratio 1.414:
| Step | Formula | Value | Rounded | Role |
|---|---|---|---|---|
| -1 | 18 ÷ 1.414 | 12.73px | 13px → use 14px | captions, image credits |
| 0 | 18 | 18px | 18px | body |
| +1 | 18 × 1.414 | 25.45px | 25px | lead, H4 |
| +2 | 18 × 1.414² | 35.99px | 36px | H3 |
| +3 | 18 × 1.414³ | 50.89px | 51px | H2 |
| +4 | 18 × 1.414⁴ | 71.96px | 72px | H1, project titles |
| +5 | 18 × 1.414⁵ | 101.75px | 102px | display, home page only |
Step -2 comes out at 9px, so I've left it out. Nothing goes below 14px, which is why step -1 is raised from 13px.
First part of a run in Claude (Opus 5.5), Nov 2026
What it does
- Picks a ratio for dense apps or bold heroes.
- Writes the sizes as design tokens.
- Sets line length and spacing for easy reading.
What's inside
modular-scale-typography/CREDITS.mdmodular-scale-typography/LICENSEmodular-scale-typography/SKILL.md
How you use it
- Get the skill: one zip file. It comes with every paid plan.
- Add it to Claude. In Claude, open Customize (Plugins on newer screens), then Skills. Press +, then Create skill, then Upload a skill. In Claude Code, unzip it into ~/.claude/skills/ instead.
- Start a new chat and tell Claude what you need, the way the example above does. The skill takes it from there.
- Then ask for the work. Claude reaches for the skill when it fits, or name it: "use modular-scale-typography".
Get this skill with a paid plan
The download comes with every paid plan, along with all 204 Claude skills and the rest of the AI toolkit. “Sites that don't look templated” in this folder is free, so you can try one first.