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>
A styled component. With Props:
Prop | Type | Default | Explanation |
---|---|---|---|
size | string | "sm" |
Size variant. |
color | string | "text" |
Color variant. |