02 — Visual Doctrine

Typography Scale


IDL defines a modular type scale with seven named steps: xs, sm, base, md, lg, xl, and 2xl. Each step is a tuple of four values: font-size, font-weight, line-height, and letter-spacing. All typographic expressions in IDL source MUST reference a named scale step by name — not by raw value. Raw numeric values for any typographic property in component declarations are Transform-phase errors.

Type Scale Reference

StepSizeWeightLine HeightLetter Spacing
xs11px4001.450.01em
sm13px4001.550.005em
base15px4001.650
md17px4001.6-0.005em
lg20px6001.4-0.01em
xl26px6001.25-0.02em
2xl36px6001.1-0.025em

Typographic Composition

A component token may override a single axis of a scale step (e.g., specifying a different weight for a button label while retaining the scale step's size and line-height). Partial overrides are permitted at the component-token tier; full scale step declarations are permitted only in the system-level type scale definition. Cross-tier typographic references are prohibited.