type-scale
Skill3 starsChanged 7 days agoMITView on GitHub
Use when designing, auditing, or extending a typography size scale built on a modular ratio. Names the canonical preset ratios (1.067 minor second → 1.618 golden), the picking heuristic by context (UI vs editorial vs marketing), the stops-up / stops-down convention (−2 to +8 default), the rounding rule (round to nearest integer px, rem derived after), and the upper-bound on ratios for product UI. Cite when an agent proposes a ratio above 1.5 for a product system or hand-picks scale steps outside a modular ratio.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- dylantarre/design-system-skillstheir own version, first seen Dec 30, 2025
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- dylantarre/design-system-skills★ 50same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository66 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- clud-bug-collaborationSkill
- critical-issues-onlySkill
- evidence-based-reviewSkill
- respect-existing-conventionsSkill
- skill-frontmatter-qualitySkill
- apca-contrastSkill
- api-contract-enforcementSkill
- brand-voice-reviewSkill
- chroma-harmonizationSkill
- clud-bug-collaborationSkill
- component-sizing-principlesSkill
- component-sizingSkill
- composing-a-screenSkill
- consuming-a-design-systemSkill
- conventions-templateSkill
- critical-issues-onlySkill
- curating-a-skill-catalogSkill
- designing-a-design-systemSkill
- designing-elite-uiSkill
- design-system-consistencySkill
- design-token-namingSkill
- dtcg-formatSkill
- empirical-design-principlesSkill
- evidence-based-reviewSkill
- finding-a-catalog-skillSkill
- frontend-a11ySkill
- guarding-a-regressionSkill
- ios-safari-surfacesSkill
- line-height-gridSkill
- logmindSkill
- motion-continuitySkill
- oklch-color-spaceSkill
- orchestrating-agent-delegationSkill
- orchestrating-a-multi-agent-runSkill
- orchestrating-elite-agent-qaSkill
- palette-relationshipsSkill
- pii-and-complianceSkill
- proving-an-absenceSkill
- respect-existing-conventionsSkill
- retiring-a-superseded-decisionSkill
- reviewing-design-workSkill
- semver-design-tokensSkill
- session-heartbeatSkill
- skillforgeSkill
- skill-frontmatter-qualitySkill
- spacing-systemSkill
- technical-writingSkill
- test-disciplineSkill
- thrill-designSkill
- token-frugal-toolingSkill
- token-naming-conventionsSkill
- udts-component-sizing-laddersSkill
- udts-dtcg-extensionsSkill
- udts-linter-rulesSkill
- udts-naming-conventionSkill
- udts-reviewSkill
- udts-semver-defaultsSkill
- udts-spacing-defaultsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 73
If two adjacent steps would round to the same px, bump the larger one up by 1 px to preserve monotonic spacing.
- Distinctive: line 80
After picking a ratio and emitting the scale:
- Distinctive: line 82
Monotonicity: every step is strictly larger than the previous.
- Distinctive: line 85
Upper-bound sanity: if the +5 step is unusable for headings in your system, the ratio is too aggressive.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Type scale
A modular type scale derives every font size from a single ratio applied to a base size. The discipline is choosing the ratio for the system's typical surface — UI density, editorial reading, marketing impact — then committing to it across the whole scale rather than per-role.
When to use
- Designing a new typography scale from a base font size and a context (product UI / editorial / marketing).
- Auditing an existing scale where sizes feel off-rhythm or step gaps look inconsistent.
- Extending a scale up or down (e.g. adding a display rung above the existing max).
- Code review: flag hand-picked sizes outside a modular ratio, ratios above 1.5 in product systems, or rems-as-source-of-truth (always derive rem from rounded px, not the other way around).
When NOT to use
- Editorial-only books / long-form prose where the ratio is a typographer's pick and a modular scale would over-constrain. The discipline still applies to documenting the choices, not to forcing a ratio.
- Single-size systems (rare; usually a stopgap during initial system definition).
Canonical preset ratios
| Ratio | Name | Best for |
| 1.067 | Minor second | Very dense UI; gaps so small that most stops feel near-identical |
| 1.125 | Major second | Dense UI (admin consoles, data-heavy tools); subtle hierarchy |
| 1.200 | Minor third | A common default for product UI — balanced, readable, distinct headings |
| 1.250 | Major third | Slightly more dramatic UI; comfortable for mixed product + marketing |
| 1.333 | Perfect fourth | Editorial leaning; large gap between body and H1 |
| 1.414 | Augmented fourth | Editorial; sharp hierarchy |
| 1.500 | Perfect fifth | Marketing-leaning; aggressive but still usable |
| 1.618 | Golden | Hero / display only; ratios above ~1.5 break down for product UI because step gaps grow too fast |
Upper bound: ratios above 1.5 rarely work for product UI — by step +5 the size is huge, and H4/H5 stop feeling distinct from body. Reserve 1.5 / 1.618 for editorial or marketing systems.
Stops-up / stops-down
A common default range is step −2 to step +8. Step 0 is the base size.
size(n) = round(base × ratio^n)
rem(n) = size(n) / 16Typical role mapping for a 16 px base, 1.200 ratio:
| Step | px | rem | Typical role |
| −2 | 11 | 0.6875 | Micro, legal, fine print |
| −1 | 13 | 0.8125 | Small UI, metadata |
| 0 | 16 | 1.0000 | Body, base |
| +1 | 19 | 1.1875 | Lead paragraph, H5 |
| +2 | 23 | 1.4375 | H4 |
| +3 | 28 | 1.7500 | H3 |
| +4 | 33 | 2.0625 | H2 |
| +5 | 40 | 2.5000 | H1 |
| +6 | 48 | 3.0000 | Display |
| +7 | 57 | 3.5625 | Hero |
| +8 | 69 | 4.3125 | Marketing splash |
The range is generous so a single scale spans dense UI through marketing without per-surface forking.
Rounding rules
Round font sizes to integer px by default:
- Compute the raw size:
base × ratio^n. - Round to the nearest integer px. Sub-pixel sizes render inconsistently across browsers and OS hinting.
- If two adjacent steps would round to the same px, bump the larger one up by 1 px to preserve monotonic spacing.
- Derive rem from the rounded px, not from the raw value.
rem = rounded_px / 16. The other direction (round the rem) compounds with the px round and produces drift.
Rounding can be disabled for math-pure systems where fractional sizes are tolerated downstream. Document the choice if you turn it off.
Verification
After picking a ratio and emitting the scale:
- Monotonicity: every step is strictly larger than the previous; no two adjacent steps share a px value after rounding.
- Round-trip:
rem(n) × 16 = px(n)exactly (no drift from re-rounding). - Distinguishability at small sizes: −1 and −2 are visually distinct (a ratio + base combo where they round to the same px is broken; pick a tighter ratio or larger base).
- Upper-bound sanity: if the +5 step is unusable for headings in your system, the ratio is too aggressive; drop to a tighter preset.
Cross-references
- Routed here by: designing-a-design-system — the L1 dispatcher for building or extending a system.
- REQUIRED BACKGROUND: line-height-grid — every size in the scale needs a line-height; the lh-ui (× 1.20) / lh-prose (× 1.50) tracks pair with this scale.
- For role assignment after picking sizes: the typography-styles spec (compound tokens combining size + lh + tracking + weight + paragraph margin).
- For the base size choice: 16 px is the common base; smaller bases (14 px) are valid for dense product UI but require revisiting line-heights and tap targets.
Sources
- Modular Scale by Tim Brown — interactive picker for the canonical ratios.
- Type Scale — same idea with live preview.
- One worked instantiation: the UDTS typography foundations (its L2 skills are incubating in thrillmade/tokenomics).
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
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.

