Aksara UI

Typography

Text styles as single utilities that set family, size, weight, line height and tracking.

Each text style sets family, size, weight, line height and tracking together. Line heights follow data-fontlineheight, so Thai text gets the taller Thai values.

Render text with the Typography component, and use typography(variant) for the class on an element you render yourself. Both take the style name without the typography-content- prefix.

<Typography variant="body-regular">Body text</Typography>
<textarea className={typography('body-regular')} />

The catalog below lists each style by its class name, which works anywhere a class does.

<p className="typography-content-body-regular">Body text</p>
typography-content-body-bold

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-body-medium

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-body-regular

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-body-semi-bold

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-code-bold

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-code-medium

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-code-regular

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-code-semi-bold

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-display-1-bold

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-display-1-medium

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-display-1-regular

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-display-1-semi-bold

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-display-2-bold

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-display-2-medium

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-display-2-regular

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-display-2-semi-bold

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-display-3-bold

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-display-3-medium

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-display-3-regular

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-display-3-semi-bold

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-h1-bold

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-h1-medium

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-h1-regular

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-h1-semi-bold

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-h2-bold

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-h2-medium

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-h2-regular

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-h2-semi-bold

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-h3-bold

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-h3-medium

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-h3-regular

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-h3-semi-bold

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-h4-bold

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-h4-medium

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-h4-regular

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-h4-semi-bold

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-h5-bold

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-h5-medium

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-h5-regular

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-h5-semi-bold

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-h6-bold

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-h6-medium

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-h6-regular

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-h6-semi-bold

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-label-bold

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-label-medium

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-label-regular

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-label-semi-bold

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-large-bold

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-large-medium

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-large-regular

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-large-semi-bold

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-supporting-bold

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

typography-content-supporting-regular

The quick brown fox jumps over the lazy dog. ระบบออกแบบอักษร

To compare font sizes and English or Thai line heights, open the Playground.

Edit on GitHub