Default text style for paragraphs. Follow hiearchy when using "light" or "lighter" variants to deemphasize text — default style should be followed by "light" followed by "lighter".
Use "success" and "error" for status. View footer notes for things to avoid.
This kit uses default
color by default, and can be replaced with colors below:
light
lighter
success
error
link
These colors are not for standard usage. You can use the color prop to make fixes if colors are not appearing properly, but consult your UX team members if you are deciding to implement it
import React from 'react' import { Body } from '../../' const BodyLight = (props) => { return ( <div> <Body text="I am a body kit (Default)" {...props} /> <Body color="light" text="I am a body kit (Light)" {...props} /> <Body color="lighter" text="I am a body kit (Lighter)" {...props} /> <Body color="link" text="I am a body kit (Link)" {...props} /> <Body color="error" text="I am a body kit (Error)" {...props} /> <Body color="success" text="I am a body kit (Success)" {...props} /> </div> ) } export default BodyLight
import React from 'react' import { Body } from '../../' const BodyBlock = (props) => { return ( <div> <Body {...props}> {'I am a body kit'} </Body> </div> ) } export default BodyBlock
Do not use positive and negative variants with each other. Use Pill Kit to show status if the text is short. Otherwise, use positive and negative variants and use them sparingly.