A set of CSS utility classes that apply the design-system text styles. Typography ships no JavaScript export — there is no @uxf/ui/typography module and no React component; you apply the classes to any element.
Use these classes to apply consistent heading and text styles to plain elements (<h1>, <p>, <span>, …) without pulling in a component. Reach for them wherever a piece of text should match the design system's type scale.
Note: this is distinct from @uxf/ui/css/tokens/typography.css, which is the app-level token layer that defines the underlying font scale.
<h1 className="uxf-typo-h1">Heading</h1>
<p className="uxf-typo-body">Body text</p>
<span className="uxf-typo-caption">Caption</span>
| Class | Applies |
|---|---|
uxf-typo-h1 | Desktop H1, bold. |
uxf-typo-h2 | Desktop H2, bold. |
uxf-typo-h3 | Desktop H3, bold. |
uxf-typo-h4 | Desktop H4, bold. |
uxf-typo-h5 | Desktop H5, bold. |
uxf-typo-h6 | Desktop H6, bold. |
uxf-typo-body | Body text. |
uxf-typo-body2 | Secondary body text. |
uxf-typo-button | Body size, bold (button label). |
uxf-typo-caption | Caption text. |
uxf-typo-medium | Medium text, medium weight. |
uxf-typo-medium2 | Smaller medium text, medium weight. |
uxf-typo-overline | Overline text, bold. |
Import the stylesheet once in your global CSS:
@import url("@uxf/ui/css/typography.css");