Text

Text styles a string.

Usage

This component is used to style text using Primer's typographic styles as defined in our design token library, Primer Primitives.

Options

Color

Text can be colored using any of the functional color tokens. Only foreground colors should be used.

Other typographic styles

See Primer Primitives typography for more details about Primer's typography system.

Accessibility

Known accessibility issues (GitHub staff only)

View open accessibility issues related to this component