Typography

Text components

  • Heading: used for headings. A h2 element by default.
  • Text: used for single line text. A span element by default.
  • Paragraph: used for multiline text. A p element by default.
  • Link: used for links. A a element by default.
  • Strong: used to make text strong. A strong element by default.
  • Small: used for inline small text. A small element by default.
  • Pre: used for preformatted content. A pre element by default.
  • Code: used for inline code. A code element by default.

List components

  • OrderedList: used for ordered lists. A ol element.
  • UnorderedList: used for unordered lists. A ul element.
  • ListItem: used as the list item in either an unordered list, or ordered list. A li element.

Font families

Evergreen uses three font family stacks, ui, display and mono. Text components will set the font family accordingly to their use case. There is not need for you to override this on a component level.

Heading component

The Heading component is used for all headings.

The size options are: 100, 200, 300, 400, 500 (default), 600, 700, 800, 900.

100: The quick brown fox jumps over the lazy dog

200: The quick brown fox jumps over the lazy dog

300: The quick brown fox jumps over the lazy dog

400: The quick brown fox jumps over the lazy dog

500: The quick brown fox jumps over the lazy dog

600: The quick brown fox jumps over the lazy dog

700: The quick brown fox jumps over the lazy dog

800: The quick brown fox jumps over the lazy dog

900: The quick brown fox jumps over the lazy dog

Changing the semantic element

The Heading component will always render a h2 until you specify otherwise with the is property. It’s important to realize that the style of a heading is independent from the semantic underlying element.

Heading h3

Text component

The Text component is used for single line text. The component renders a span element by default. If you need a multiline paragraph use the Paragraph component.

The size options are: 300, 400 (default), 500

The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog

Set a muted color on a Text component

The quick brown fox jumps over the lazy dog

Paragraph component

The Paragraph component is used for multiline text. This renders a p element by default.

The size options are: 300, 400 (default), 500

Size 300. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Size 400. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Size 500. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Set a muted color on a paragraph

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

The Link component is used for anchor links. This component renders a a element by default.

The size options are: 300, 400 (default), 500

Strong component

The Strong component renders strong text. This component renders a strong element by default. Make sure to set the size property if you are using this within a other text component such as a Paragraph.

The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog

Small component

The Small component works only inside other text components.

The small component can only be used in a other text component

Code component

The Code component is based on the Text component but renders a code element by default.

The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog

Pre component

The Pre component renders a chunk of preformatted text. This component renders a pre element by default.

Preformatted text.

UnorderedList component

  • Lorem ipsum dolor sit amet
  • Consectetur adipiscing elit
  • Integer molestie lorem at massa
  • Facilisis in pretium nisl aliquet

Changing the size of all list items in a UnorderedList

  • Lorem ipsum dolar set amet
  • Lorem ipsum dolar set amet
  • Lorem ipsum dolar set amet
  • Lorem ipsum dolar set amet
  • Lorem ipsum dolar set amet

Adding icons to a list

The icon property has access to all available icons.

Set icons for all list items on the list

  • Lorem ipsum dolar set amet
  • Lorem ipsum dolar set amet
  • Lorem ipsum dolar set amet
  • Lorem ipsum dolar set amet

Set icons on each individual list item

  • Lorem ipsum dolar set amet
  • Lorem ipsum dolar set amet
  • Lorem ipsum dolar set amet
  • Lorem ipsum dolar set amet

OrderedList component

  1. Lorem ipsum dolor sit amet
  2. Consectetur adipiscing elit
  3. Integer molestie lorem at massa
  4. Facilisis in pretium nisl aliquet

Changing the size of all list items in a OrderedList

  1. Lorem ipsum dolar set amet
  2. Lorem ipsum dolar set amet
  3. Lorem ipsum dolar set amet
  4. Lorem ipsum dolar set amet
  5. Lorem ipsum dolar set amet

ListItem component

  • List item. Use inside of a UnorderedList or OrderedList.