Typography
Nine text styles, from page headings to muted captions, that render as a single <text> element.
Installation
Typography imports class-variance-authority (see Installation).
Usage
src/app/app.ts
<ui-text> wraps its content in a <text> element and sets the color for you, so the text follows your theme.
Variants
Custom classes
Your classes replace the variant's classes where they conflict, so text-primary wins over text-foreground.
API
UiText
No outputs.
The file also exports typographyVariants and the TypographyVariant type.
Related
<text>: the element it renders- Theming: the
foregroundandmuted-foregroundcolors - Custom fonts
