Design Tokens Typography

Typography

Typography tokens give your theme consistent, scalable text styles across every component. You can adjust individual tokens or use scale multipliers to change all sizes or weights at once.

Font Family

Font family tokens are assigned to specific roles — body text, headings, code, and long-form prose. By default, they use system fonts for maximum performance.

Font Size

Font sizes use a ratio of 1.125 to scale proportionally. The medium size (m) is the base; sizes below are 1.125× smaller and sizes above are twice 1.125× larger to maximize visual contrast between larger sizes. All values use rem units and round to the nearest whole pixel.

Use --wa-font-size-scale to proportionally increase or decrease all sizes at once.

Font Weight

Font weight tokens come in two flavors: named weights that cover the full range, and role-based weights for specific text types. Role-based weights reference named weights by default.

Line Height

Line heights are unitless to scale proportionately with text size. For readability, paragraph text should be at least 1.5.

Together with --wa-color-text-link, these tokens add text decoration to <a> elements to signal their role as hyperlinks.

    No results