Skip to main content

Typography Tokens

Hashi uses tokens to enforce consistency throughout the ecosystem via the smallest of design units.

Typography tokens are values that have to do with fonts, from the size and weights, to the leading and spacing. Like the other two, this also follows a particular schema.

TypeSize (px)Line Height (1.5)Default Weight
Supertitleclamp(36px, 10vw, 42px)63800
Titleclamp(26px, 8vw, 36px)54700
Subtitleclamp(18px, 6vw, 24px)30700
Bodyclamp(14px, 4vw, 16px)24400
Monoclamp(14px, 4vw, 16px)24400
Smallclamp(10px, 2vw, 12px)18300

Weight Specs

TypeWeight
Black800
Bold700
Regular400
Light300

Line Height Specs

TypeLeading
Broad2
Regular1.5
Condensed1.25

Extending Typography Tokens

Escape Hatch Typography Tokens

Escape hatch typography tokens are tokens that are not within the given in the default typography token set. Keep in mind that as much as possible, use the provided typography tokens instead of creating your own, this guideline is only provided as an "escape hatch" if the provided typography tokens don't work.

Escape hatch typography tokens have a limit to how many you can have. Generally we only allow 1 to 2 presets to avoid complete deviation.

These tokens also need to have at least one of the following properties: family, size, weight, and line-height.