Install
openclaw skills install @ivangdavila/typographySet type with optimal measure, leading, tracking, optical sizes, and weight for screen and print, distinguishing display versus text cuts and effective pairing.
openclaw skills install @ivangdavila/typographyletter-spacing in px does not scale with font-size: -0.5px is huge at 12px and nothing at 120px. Use em (-0.02em) so it tracks the size.tracking-tight class on body is a frequent culprit.word-spacing is the lever nobody pulls: +5 to +10 / 1000 em loosens long-measure ragged text without touching letter spacing; justified text reads denser when word-spacing tightens.font-synthesis: none.wght as a continuous 1-1000 range. The win is not more weights, it is the exact optical weight a size needs: a 550 at 14px, a 500 at 16px, a 480 at 24px. Static fonts force 400 or 700 with nothing between.font-variation-settings on an axis the file lacks is a silent no-op.tabular-nums on any number that aligns in a column or changes (price, timer, count): font-variant-numeric: tabular-nums is the CSS, font-feature-settings: "tnum" the fallback. Proportional figures are the default and misalign.font-display: swap shows fallback then swaps (FOUT, shift risk), block hides text up to 3s then shows fallback (FOIT, no shift but invisible), optional loads if cached else stays fallback (no shift, no flash, first visit sees the fallback).size-adjust on the fallback, to kill the shift.font-feature-settings is the power tool: tnum (tabular figures) for any number that aligns in a column or changes, lnum vs onum (lining vs old-style figures) for data vs prose, ss01-ss20 for stylistic sets the designer built in. Set on body, not per element, to avoid cascade cost.hyphens: auto is spotty and the engine is weak, so justified web text gets rivers (word spaces stacking vertically) and loose lines. Ragged right is the web default for a reason.widows and orphans properties control them but support is uneven. Manual fix: tighten or loosen the paragraph by a word.| Situation | Play |
|---|---|
| Body feels cramped on mobile | Bump leading to 1.5-1.6, not font-size. Check measure is 30-40 chars. |
| Heading looks loose and airy | line-height 1.0-1.15, tracking -10 to -20 / 1000 em. Reset inherited line-height. |
| Display face looks anemic at large size | Wrong cut. Switch to display opsz, or tighten tracking -20 to -30. |
| Text face clogs at small size | Wrong cut. Switch to text opsz, or open tracking +10 to +15. |
| Pairing reads "off" but you cannot name why | x-height mismatch. Set both faces side by side, size the sans down until x-heights align. |
| Justified web text has rivers | Enable hyphens: auto + lang attribute, or switch to ragged. Reduce measure to 45-60. |
| Web font swap causes layout shift | Match fallback x-height and advance width. Use font-display: swap + size-adjust on the fallback. |
| Heading inherits body line-height | Set line-height unitless on body, reset per heading. Never px line-height. |
| Bold looks uneven, counters clog | Faux bold. Load the real bold weight file, set font-synthesis: none. |
| Caps look too tight | Add +50 to +100 / 1000 em tracking. Caps need positive, lowercase display needs negative. |
| Numbers misalign in a table | font-variant-numeric: tabular-nums (or font-feature-settings: "tnum"). Proportional figures are the default. |
font-display: optional is the compromise for content below the fold.hyphens: auto with a lang attribute works in modern engines but break quality varies by language and browser. The elite hyphenates long-measure justified text in print, leaves web ragged unless the CMS has a server-side hyphenation engine.Install with clawhub install <slug> if the user confirms:
figma - where type specs become components, variables, and Dev Mode handoffdesign-tokens - pipe the type scale and font features into platform code via Style Dictionarydesign-system - the type scale, weights, and feature settings this skill feedscss, tailwindcss - the font-variation-settings, font-feature-settings, and line-height units this skill reasons aboutaccessibility - contrast, resize, and the legibility floor this skill sets