Typography
Control text appearance with font size, weight, alignment, and decoration utilities.
Font Size
Section titled “Font Size”<Text className="text-xs" /> // fontSize: 12<Text className="text-sm" /> // fontSize: 14<Text className="text-base" /> // fontSize: 16<Text className="text-lg" /> // fontSize: 18<Text className="text-xl" /> // fontSize: 20<Text className="text-2xl" /> // fontSize: 24<Text className="text-3xl" /> // fontSize: 30<Text className="text-4xl" /> // fontSize: 36<Text className="text-5xl" /> // fontSize: 48<Text className="text-6xl" /> // fontSize: 60<Text className="text-7xl" /> // fontSize: 72<Text className="text-8xl" /> // fontSize: 96<Text className="text-9xl" /> // fontSize: 128Font Weight
Section titled “Font Weight”<Text className="font-thin" /> // fontWeight: '100'<Text className="font-extralight" /> // fontWeight: '200'<Text className="font-light" /> // fontWeight: '300'<Text className="font-normal" /> // fontWeight: '400'<Text className="font-medium" /> // fontWeight: '500'<Text className="font-semibold" /> // fontWeight: '600'<Text className="font-bold" /> // fontWeight: '700'<Text className="font-extrabold" /> // fontWeight: '800'<Text className="font-black" /> // fontWeight: '900'Font Style
Section titled “Font Style”<Text className="italic" /> // fontStyle: 'italic'<Text className="not-italic" /> // fontStyle: 'normal'Text Alignment
Section titled “Text Alignment”<Text className="text-left" /> // textAlign: 'left'<Text className="text-center" /> // textAlign: 'center'<Text className="text-right" /> // textAlign: 'right'<Text className="text-justify" /> // textAlign: 'justify'Text Decoration
Section titled “Text Decoration”<Text className="underline" /> // textDecorationLine: 'underline'<Text className="line-through" /> // textDecorationLine: 'line-through'<Text className="no-underline" /> // textDecorationLine: 'none'Text Transform
Section titled “Text Transform”<Text className="uppercase" /> // textTransform: 'uppercase'<Text className="lowercase" /> // textTransform: 'lowercase'<Text className="capitalize" /> // textTransform: 'capitalize'<Text className="normal-case" /> // textTransform: 'none'Line Height
Section titled “Line Height”Numeric Scale
Section titled “Numeric Scale”<Text className="leading-3" /> // lineHeight: 12<Text className="leading-4" /> // lineHeight: 16<Text className="leading-5" /> // lineHeight: 20<Text className="leading-6" /> // lineHeight: 24<Text className="leading-7" /> // lineHeight: 28<Text className="leading-8" /> // lineHeight: 32<Text className="leading-9" /> // lineHeight: 36<Text className="leading-10" /> // lineHeight: 40Named Values
Section titled “Named Values”<Text className="leading-none" /> // lineHeight: 16<Text className="leading-tight" /> // lineHeight: 20<Text className="leading-snug" /> // lineHeight: 22<Text className="leading-normal" /> // lineHeight: 24<Text className="leading-relaxed" /> // lineHeight: 26<Text className="leading-loose" /> // lineHeight: 32Common Patterns
Section titled “Common Patterns”Heading Styles
Section titled “Heading Styles”<Text className="text-3xl font-bold text-gray-900 mb-2"> Heading 1</Text>
<Text className="text-2xl font-semibold text-gray-800 mb-2"> Heading 2</Text>
<Text className="text-xl font-medium text-gray-700 mb-2"> Heading 3</Text>Body Text
Section titled “Body Text”<Text className="text-base text-gray-600 leading-relaxed"> Lorem ipsum dolor sit amet, consectetur adipiscing elit.</Text>Labels
Section titled “Labels”<Text className="text-sm font-medium text-gray-700 mb-1"> Email Address</Text><Text className="text-blue-500 underline"> Read more</Text>Captions
Section titled “Captions”<Text className="text-xs text-gray-500 italic"> Last updated 2 hours ago</Text>