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
size:tiny|small|regular(default) |medium|largetone:default|secondary(supporting copy) |brand(small brand-coloured labels) |inverse-light(for inverse sections).secondaryandbrandpass WCAG AAA on white, andinverse-lighton inverse sections.weight:normal(default) |semiboldas:p(default) |span|div. Usespaninside other text.
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.
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.
default
secondary
brand
semibold
inverse-light (on inverse surfaces)