Skip to content
Somewhere design system

Typography

Text

Body copy on the Somewhere type scale.

import { Text } from "@somewhere-com/ds";

<Text size="medium" tone="secondary">
  Somewhere connects companies with vetted professionals worldwide.
</Text>;

Props

Text isn’t a heading. Use Heading for anything that titles content.

The sw-text--accent class has no React tone. Highlight green on white is 1.87:1, which fails text contrast. Use highlight green for fills, not for text.

Examples

Rendered from the Storybook stories. To change props and see every state live, open Text in Storybook.

Sizes

large: Somewhere connects companies with vetted professionals worldwide.

medium: Somewhere connects companies with vetted professionals worldwide.

regular: Somewhere connects companies with vetted professionals worldwide.

small: Somewhere connects companies with vetted professionals worldwide.

tiny: Somewhere connects companies with vetted professionals worldwide.

Tones

default

secondary

brand

semibold

inverse-light (on inverse surfaces)