Skip to content
This repository was archived by the owner on Jul 7, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions content/components/Text.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: Text
description: Text styles a string.
reactId: text
componentId: text
---

## Usage

This component is used to style text using Primer's typographic styles as defined in our design token library, [Primer Primitives](../primitives).

## Options

### Color

Text can be colored using any of the [functional color tokens](../primitives/colors#functional-variables). Only foreground colors should be used.

### Other typographic styles

See Primer Primitives [typography](../primitives/typography#styles) for more details about Primer's typography system.

## Related links

- [Primer Primitives](../primitives)
2 changes: 2 additions & 0 deletions src/@primer/gatsby-theme-doctocat/nav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@
url: /components/select
- title: Select panel
url: /components/selectpanel
- title: Text
url: /components/text
- title: Text input
url: /components/text-input
- title: Text input with tokens
Expand Down