Text

A paragraph of text.

Examples

Primary colored text

Accent colored text

Danger colored text

Success colored text

import { Text } from "@styple/design-system";
<Flex css={{ flexDirection: "column", }} >
<Text size="md" color="primary">Primary colored text</Text>
<Text size="md" color="accent">Accent colored text</Text>
<Text size="md" color="danger">Danger colored text</Text>
<Text size="md" color="success">Success colored text</Text>
</Flex>

API Reference

Text

A styled component. With Props:

Prop Type Default Explanation
sizestring"sm"

Size variant.

colorstring"text"

Color variant.