Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Builds a modular or fluid type scale with line-height, tracking, weight roles, and vertical rhythm as tokens, Tailwind config, and CSS.
68% 82%+14 ptsof test cases passed
Passed 18 of 22 test cases with the skill, and 15 of 22 without it.
Our team created individual Tailwind classes like `text-24`, `leading-tight`, and `tracking-tight` for engineers to combine manually on heading elements. What is the recommended way to structure these design tokens for consumption?
Typography tokens bundle size, line-height, letter-spacing, weight, and family into semantic role tokens.
3 of 3 safety checks passed
Typography is the design system's skeleton: most products that look "off" have inconsistent type long before they have bad colors. Build the scale as a system with roles and math, then make the codebase actually use it. Input: the chosen fonts (or run font-pairing-suggester first), the product type (marketing site, dense app UI, long-form editorial), and the target range of devices.
clamp() per step so headings scale between viewport bounds without breakpoint jumps; fixed steps are fine for app UI.display, h1-h4, body-lg, body, body-sm, caption, overline, code. Each role = size step + line-height + tracking + weight + family, as one token. Components consume roles; nobody composes raw steps.text-wrap: balance on headings, and measure limits (65-75ch for body prose) so line length stays readable at every viewport.typography-tokens.json, Tailwind fontSize config (size + line-height + tracking tuples per role; v4 @theme), typography.css with role classes, and TYPOGRAPHY.md. Then map the step-1 inventory onto roles and replace -- with a per-case flag on anything that does not cleanly map (it is either a missing role or drift to delete).text-h2, never text-[28px] -- and no role means the component asks the system for one, not the developer for a number.clamp() minimum must stay readable on a 320px phone and the max must not blow the layout on ultrawide.Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.