typography
Skill1 starsChanged 3 months agoMITView on GitHub
Choose and implement the site's type system — a display/body pairing from a curated library of 12 Google-Fonts combos mapped to direction archetypes, loaded via next/font/google with CSS variables, a fluid clamp() type scale (390→1440px, hero ≥3.5× body), and hard weight/tracking/leading rules. Invoke in the Foundation phase right after ultraweb:direction, whenever fonts must be chosen or the scale defined, or when the user says "pick the fonts", "font pairing", "set up typography", "the type feels generic", "make the headlines bigger", or "which font should this use".
9 other projects use a version of this.
Adopted by
Most recently taken up by
- HugoLopes45/design-skillstheir own version, first seen Aug 26, 2026
- Above-the-Fold-Studio/designmd-skillstheir own version, first seen Aug 24, 2026
- danium/practicaltypographytheir own version, first seen Aug 22, 2026
- petekp/claude-code-setuptheir own version, first seen Aug 20, 2026
- dkadts/landing-kit-buildingtheir own version, first seen Aug 19, 2026
- rshankras/claude-code-apple-skillstheir own version, first seen Jul 16, 2026
Used with
Projects with it also use deep-research.
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.
NVIDIASkilldeep-research
Queue deep, multi-step research and analysis tasks to the DeepAgents worker. Supports execution depth presets, request-specific rubrics, SubAgent delegation, and RubricMiddleware cross-validation.
Also in 3 projects that use this
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- rshankras/claude-code-apple-skills★ 777same name
- glebis/claude-skills★ 387same name
- petekp/claude-code-setup★ 47same name
- danium/practicaltypography★ 29same name
- Dragoon0x/dragoon-skills★ 4same name
- AntJanus/skillbox★ 2same name
- dkadts/landing-kit-building★ 2same name
- HugoLopes45/design-skills★ 1same name
- Above-the-Fold-Studio/designmd-skills★ 0same 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 repository79 other files it gives its agents.
- ultrawebSkill
- analyticsSkill
- animejsSkill
- api-designSkill
- app-structureSkill
- assetsSkill
- authSkill
- award-canonSkill
- briefSkill
- buttonsSkill
- cardsSkill
- cartSkill
- checkpointSkill
- colorSkill
- command-paletteSkill
- component-apiSkill
- consentSkill
- content-cmsSkill
- copywritingSkill
- databaseSkill
- data-displaySkill
- data-fetchingSkill
- depthSkill
- directionSkill
- emailSkill
- faqSkill
- feature-sectionsSkill
- footerSkill
- formsSkill
- gate-accessibilitySkill
- gate-antislopSkill
- gate-codeSkill
- gate-contentSkill
- gate-performanceSkill
- gate-responsiveSkill
- gate-visualSkill
- handoffSkill
- heroSkill
- hidden-craftSkill
- i18nSkill
- iconsSkill
- identitySkill
- imagerySkill
- iterateSkill
- layout-gridSkill
- marginaliaSkill
- media-optimizationSkill
- micro-interactionsSkill
- mockupSkill
- motion-languageSkill
- navigationSkill
- overlaysSkill
- page-transitionsSkill
- paymentsSkill
- physicsSkill
- previewSkill
- pricingSkill
- print-craftSkill
- product-detailSkill
- retrofitSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
Read DIRECTION.md's type stance.
- Very specific: line 25
Write lib/fonts.ts (snippet below): export display + body (+ mono if earned), each with a CSS variable.
- Distinctive: line 27
Write SYSTEM.md §type: pairing + one-line why, loaded weights, tracking/leading table, scale values.
- Distinctive: line 28
Verify: render a page, screenshot at 390 and 1440.
- Distinctive: line 62
Default to the Google tier.
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
typography — type does the design work
Stage: Phase 3 — Foundation (parallel with color) - Reads: design/DIRECTION.md - Writes: design/SYSTEM.md §type + lib/fonts.ts
Standard
- A real pairing chosen for THIS direction — never default-Inter-only (pipeline ban).
- ≤2 families (+1 optional mono for code/labels/figures), ≤4 loaded weights site-wide.
- Hero display resolves to ≥3.5× body at 1440px (taste floor); fluid via clamp(), zero breakpoint jumps.
- Type is the award record's cheapest, most durable win (
award-canon: Type as Evidence) — commit to ONE heroic face and let extreme scale contrast alone build documentary hierarchy; jurors read that conviction in seconds. - That scale also feeds Kinetic Reveal Type — the headline animating as the signature moment (background-clip wipe, per-char stagger) built from real DOM text with CSS/Motion, owned by
scroll-motion/showpiece, never body copy. Pioneer Corn (SOTD + Developer Award, July 2020; overall SOTY unconfirmed) rendered ALL type as canvas MSDF with no DOM text — reconstructed from the write-up, cautionary not exemplary: the razor-crisp glyphs are inseparable from an accessibility failure. - Tight tracking on large text, generous leading on body — the numbers below, not vibes.
- Loaded via next/font/google: auto self-hosted, zero runtime Google requests, variable fonts need no weight.
- Line-breaking is the browser's job:
text-wrap: balanceon every H1–H3,text-wrap: prettyon multi-line body/prose. Evens the headline rag, kills body widows, handles German compounds — zero cost, and hand-authored<br>for line control is banned. - Free display craft the type designer already shipped:
font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1at hero/H1 scale, andtext-box-trim: trim-both; text-box-edge: cap alphabeticfor exact cap-height alignment (retires the negative-margin hack; Firefox ignores it and loses a pixel of leading, not the layout).
Process
- Read DIRECTION.md's type stance; match against the Energy column below. Shortlist two rows, set the REAL H1 copy in both at 96px (a scratch HTML file is enough), pick by eye.
- Write lib/fonts.ts (snippet below): export display + body (+ mono if earned), each with a CSS
variable. - Apply the variables on
<html>in app/layout.tsx; hand variable names + scale values to ultraweb:tokens for the@theme inlinebridge. - Write SYSTEM.md §type: pairing + one-line why, loaded weights, tracking/leading table, scale values.
- Verify: render a page, screenshot at 390 and 1440. Hero must feel almost too big at 1440 (taste); body measure 60–75ch.
Pairing library (all on next/font/google)
Match DIRECTION.md's archetype energy to a row. "Display wt" are the ONLY display weights you load.
| # | Display + Body | Energy | Display wt | Notes |
| 1 | Fraunces + Instrument Sans | warm editorial, crafted product | 550–650 | axes: ["opsz"] — big sizes sharpen automatically |
| 2 | Instrument Serif + Geist | quiet luxury, minimal product | 400 only | display face only — set it huge or not at all |
| 3 | Playfair Display + Source Sans 3 | classic luxury, heritage | 600 | high-contrast serif: never below 28px |
| 4 | Newsreader + Archivo | editorial, essays, journal | 500 | axes: ["opsz"]; the italics are the personality |
| 5 | Space Grotesk + IBM Plex Sans | tech-precise, dev tools | 500–700 | Plex is static: weight: ["400","600"] |
| 6 | Bricolage Grotesque + Inter Tight | loud contemporary agency | 600–800 | axes: ["opsz"]; heavy cuts carry the attitude |
| 7 | Syne + Manrope | avant-garde portfolio | 700–800 | Syne 800 is the signature — headline-only doses |
| 8 | DM Serif Display + DM Sans | friendly boutique premium | 400 only | same superfamily; DM Sans takes axes: ["opsz"] |
| 9 | Archivo + Archivo | brutalist poster, one-family | 800 | axes: ["wdth"], display at wdth 125, uppercase |
| 10 | Crimson Pro + Work Sans | literary, humanist warmth | 500–600 | long-form body can flip: Crimson Pro for prose |
| 11 | Anton + Public Sans | sport, impact, poster | 400 only | already condensed — never negative-track it |
| 12 | Unbounded + Figtree | bold futurist | 500–700 | slop-adjacent (dark-navy-glow); needs DIRECTION.md justification |
Mono accent when earned: JetBrains Mono, Geist Mono, or IBM Plex Mono — code, labels, tabular figures.
Foundry tier — when Google Fonts is the tell
Inter / Manrope / Space Grotesk have become the new default-shadcn look; the type layer is where AI sameness shows first. On Refined Luxury Serif, Brutalist, or Art-House Immersive with budget, escalate past the Google tier — load via next/font/local (fallback-metric caveat below). Grilli Type and Dinamo are Swiss (Zürich/Basel), Pangram Pangram is Berlin — a real DACH provenance, not a forced one.
| Foundry | Faces | Fits |
| Klim | Tiempos, Founders Grotesk, Söhne | Refined Luxury Serif, quiet authority |
| Grilli Type | GT America, GT Walsheim, GT Sectra | editorial, boutique premium |
| Pangram Pangram | Neue Machina, Ogg | Brutalist, avant-garde |
| Dinamo | Whyte, Diatype | Neo-grotesque, tech-precise |
Default to the Google tier. A foundry licence is a one-time cost you justify in DIRECTION.md, never a reflex.
Loading — lib/fonts.ts
import { Fraunces, Instrument_Sans } from "next/font/google";
export const display = Fraunces({ subsets: ["latin"], variable: "--font-fraunces", axes: ["opsz"] });
export const body = Instrument_Sans({ subsets: ["latin"], variable: "--font-instrument" });
// app/layout.tsx:
// <html className={`${display.variable} ${body.variable}`} suppressHydrationWarning>- Variable fonts: no
weightneeded. Single-weight faces (Instrument Serif, DM Serif Display, Anton) REQUIREweight: "400"— omitting it fails the build. - Static families take an array:
weight: ["400", "600"]— load only what SYSTEM.md uses. - ultraweb:tokens bridges into utilities:
@theme inline { --font-display: var(--font-fraunces); --font-sans: var(--font-instrument); }. - Variable axes ARE tokens: when the display face ships a
wght(oropsz/wdth) axis, request the range via next/font instead of static cuts — one file, smaller payload — and hand--font-wght-min/--font-wght-maxto ultraweb:tokens for runtime use (see Breathing Type). - Foundry/licensed faces load through
next/font/local, which drops next/font/google's automatic fallback-metric matching — so keepadjustFontFallbackon with an explicitfallbackface, or match metrics by hand (size-adjust/ascent-override— a serif over Georgia wantssize-adjust: ~0.88).font-display: swapalone still reflows; verify CLS = 0 (ultraweb:gate-performance) before shipping a foundry font.
Fluid scale
Linear interpolation between V1 = 390px and V2 = 1440px; min/max in px:
slope = 100 × (max − min) / (V2 − V1) → the vw coefficient
intercept = (min − slope × V1 / 100) / 16 → rem
--text-5xl: clamp(2.5rem, 1.66rem + 3.43vw, 4.75rem) /* 40px → 76px */- Body stays near-static (16→18px max); display grows fast. The scale RATIO widens: ×1.2 steps at 390px stretching to ×1.33–1.45 at 1440px.
- Hero (
--text-5xl/--text-6xl): 40–48px min, 76–100px max. 76/16 = 4.75× body — clear of the 3.5× floor. - Full worked values live in the ultraweb:tokens globals.css example — reuse them, don't re-derive.
- Viewport clamp() is for section-level headlines only. Type inside a reusable component that renders at many widths (stat-card numbers, bento-cell heads) sizes to its box, not the viewport:
font-size: clamp(1rem, 6cqi, 2.5rem)inside acontainer-type: inline-sizewrapper (@supportsback to the plain clamp()). ultraweb:cards is the direct beneficiary.
Weight, tracking, leading
- Weights contrast: body 400 against a display weight at least 200 away (600–800 typical). Never use two adjacent mid weights (500 AND 600) in one hierarchy — they read as rendering errors, not hierarchy. Single-weight and expressive rows (2, 4, 8, 11) earn contrast from style and size instead of weight.
- Tracking: display ≥40px gets −0.01em to −0.03em (grotesques take more, serifs less); body 0; uppercase labels 11–13px at +0.06 to +0.12em, weight 500–600. Positive tracking on large lowercase text is banned.
- Leading: display (≥48px) 0.95–1.05; headings 1.1–1.2; body 1.55–1.7; captions 1.4.
- Measure: body 60–75ch — set a ch-based max-width; full-container paragraphs are a defect.
- Load the
opszaxis wherever it exists (Fraunces, Newsreader, DM Sans, Bricolage) — display cuts sharpen for free. - One curated OpenType flourish, or none: if the face ships stylistic sets/alternates (check its specimen) and the direction wants personality (Playful Geometric, Retro-Futurist), enable exactly ONE —
font-feature-settings: 'ss01' 1or'dlig' 1— on display tokens only, never body, logged in SYSTEM.md. Two is indecision.
Breathing Type — the one variable-axis accent (opt-in)
When the display face loads a live wght axis, ONE element per page — a logotype, a nav link, a single hero word — may interpolate weight on hover/focus via font-variation-settings: 'wght' var(--font-wght-hover), transitioned on ultraweb:motion-language's --ease-micro. This is glyph-level motion, distinct from the transform/opacity vocabulary, and scarcity is the whole point. Gated to Editorial/Magazine, Neo-grotesque Minimal, Art-House Immersive — never Warm Organic or Refined Luxury Serif. Non-negotiable caps: one element per page (it IS the signature move), display tokens only, and frozen at rest weight under prefers-reduced-motion. Break a cap and it becomes the gimmicky over-motion the constitution bans.
Anti-patterns
Inter(as the only next/font import — the default look the pipeline exists to kill.<link href="https://fonts.googleapis.com— runtime Google requests; next/font self-hosts everything.text-7xl,text-8xl,text-9xl— escaping the fluid scale via Tailwind defaults (tokens wipes them; their presence means stale globals.css).tracking-wideston headlines;tracking-wideon anything lowercase above 24px.leading-noneon multi-line text; body leading below 1.4.font-mediumandfont-semiboldmixed inside one hierarchy — pick one mid weight.- Three or more families: grep lib/fonts.ts exports; more than display + body + mono is indecision.
- Hand-authored
<br>inside a headline component to force wrapping —text-wrap: balancedoes it and survives copy edits (ultraweb:gate-antislop greps for this). - More than one stylistic set, or any
ss0x/dligon body text — expressive OpenType is a display-only, single-dose move.
Worked example — Ledger & Lane, type system for a two-partner law firm
Moved to references/example.md — read only when this build's case is genuinely ambiguous; the sections above are the decision material.
Composes with
Moved to references/composes.md — the handoff map; load it when orchestrating this skill against its neighbors.
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.

