AppText
A robust typography component for consistent text styling across the application.
Install: pnpm add-component AppText
Headings
Standard heading styles from H1 to H4.
Body & caption
Styles for regular text and smaller secondary content.
Colors & weights
Customize the appearance with theme colors and weights.
API
variant('h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'label' | 'caption' | 'overline'): The typography variant/style.weight('light' | 'normal' | 'medium' | 'semibold' | 'bold' | number): Font weight.color('text' | 'text-muted' | 'text-subtle' | 'accent' | 'success' | 'warning' | 'danger' | 'info' | string): A token colour, mapped to the text-safe token (accent → accent-text, warning → warning-text), or any CSS colour. primary, secondary, text-secondary and error are older names that still work.font('sans' | 'display' | 'mono'): The preset's typefaces. primary and secondary are older names for sans and display.align('left' | 'center' | 'right' | 'justify'): Text alignment.