better-typography
Web typography from choosing fonts to spacing, wrapping and accessibility. Use when picking or pairing typefaces, configuring variable fonts or OpenType features, setting up a type scale, styling text in components, truncating text, styling underlines, selection, placeholders or carets, or reviewing frontend code for typography. Triggers on typography, fonts, font formats, woff2, variable fonts, font-weight, opentype, font-feature-settings, letter-spacing, line-height, type scale, tabular numbers, text-wrap, truncation, line clamp, underlines, text-decoration, text selection, iOS input zoom, font smoothing, text contrast, measure, line length, text-box, smart punctuation, drop cap.
Install
npx skills add https://github.com/jakubkrehel/skills --skill better-typographyChoosing fonts
Font categories, fallback stacks for a type change, file formats and why fonts look the way they do.
Choosing a typeface
"Display" in a font's name does not make it a display font. SF Pro and Heldane ship a Display variant for large sizes and a Text variant for small ones. Use the variant matching the size you are setting.
Fallback stacks for a type change
When a type change is asked for, two routes. system-ui gives each operating system's own interface face. A commercial face such as Helvetica Now is a brand decision and still needs a fallback stack.
Formats
How the files load is the project's concern.
Anatomy of a typeface
These measurements are why two fonts at the same font-size look like different sizes. A large x-height looks bigger.