Typography
Typography renders text using Falcon’s legacy type scale, color tokens, font weights, line heights, and responsive font-size utilities.
Code
import { Typography } from "@falcon/ui-kit/dist/legacy";
export function Example() { return ( <Typography variant="p"> Order total updated after the last save. </Typography> );}Variants
Section titled “Variants”Code
import { Typography } from "@falcon/ui-kit/dist/legacy";
export function Example() { return ( <div className="tw:flex tw:flex-col tw:flex-wrap tw:gap-6"> {(["h1", "h2", "h3", "h4", "h5", "h6", "p", "span"] as const).map( (variant) => ( <Typography key={variant} variant={variant}> {`<Typography.${variant}/>`} </Typography> ), )} </div> );}Colors
Section titled “Colors”Code
import { Typography } from "@falcon/ui-kit/dist/legacy";
export function Example() { return ( <div className="tw:flex tw:flex-wrap tw:items-center tw:gap-6"> {( [ "text-dark", "text", "text-light", "alert", "link", "primary", "success", ] as const ).map((color) => ( <Typography color={color} key={color}> {`${color} color`} </Typography> ))} </div> );}Typography
Section titled “Typography”children
Section titled “children”children?: React.ReactNodeclassName
Section titled “className”className?: stringcolor?: "success" | "link" | "text" | "primary" | "text-dark" | "alert" | "text-light"fontSize
Section titled “fontSize”fontSize?: numberfontSizeBreakpoints
Section titled “fontSizeBreakpoints”fontSizeBreakpoints?: Partial<Record<Breakpoint, number>>fontWeight
Section titled “fontWeight”fontWeight?: 400 | 500 | 700lineHeight
Section titled “lineHeight”lineHeight?: "large" | "medium" | "base"variant
Section titled “variant”variant?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" = "p"