• CMSnpm version

    • Overview
    • ContentBuilder
    • InviteUserForm
    • LoginForm
    • RenewPasswordForm
  • UInpm version

    • Overview
    • Accordion
    • AlertBubble
    • AnnouncementBar
    • Avatar
    • AvatarFileInput
    • Badge
    • Button
    • ButtonGroup
    • ButtonList
    • Calendar
    • Checkbox
    • CheckboxButton
    • CheckboxInput
    • CheckboxList
    • Chip
    • ColorRadio
    • ColorRadioGroup
    • Combobox
    • DatePicker
    • DatePickerInput
    • DateRangePicker
    • DateRangePickerInput
    • DatetimePicker
    • DatetimePickerInput
    • Dialog
    • Dropdown
    • Dropzone
    • ErrorMessage
    • FileInput
    • FlashMessages
    • FormComponent
    • Icon
    • IconButton
    • ImageGallery
    • InfoBox
    • Input
    • Label
    • Layout
    • Lightbox
    • ListItem
    • Loader
    • Lozenge
    • Menu
    • Message
    • Modal
    • ✅ ModalDialog
    • ✅ ModalHeader
    • MultiCombobox
    • MultiSelect
    • Pagination
    • Paper
    • Popover
    • Radio
    • RadioGroup
    • RasterImage
    • Select
    • ✅ Tabs
    • TextInput
    • TextLink
    • Textarea
    • TimePicker
    • TimePickerInput
    • Toggle
    • Tooltip
    • Typography
  • Formnpm version

    • Overview
    • AvatarFileInput
    • CheckboxButton
    • CheckboxInput
    • CheckboxList
    • ColorRadioGroup
    • Combobox
    • DatePickerInput
    • DateRangePickerInput
    • DatetimePickerInput
    • Dropzone
    • FileInput
    • Form
    • FormRenderer
    • GpsInput
    • MoneyInput
    • MultiCombobox
    • MultiSelect
    • NumberInput
    • PasswordInput
    • RadioGroup
    • Select
    • TextInput
    • Textarea
    • TimePickerInput
    • Toggle
  • DataGridnpm version

    • Overview
    • DataGrid
    • DataGridCustomExample
    • ExportButton
    • FilterList
    • Filters
    • FiltersButton
    • FulltextInput
    • HiddenColumns
    • HiddenColumnsButton
    • Pagination
    • RowCounts
    • RowsPerPageSelect
    • SelectedRowsToolbar
    • TableV2
    • ToolbarControl
    • ToolbarCustoms
    • ToolbarTabs
  • Wysiwygnpm version

    • Overview
  • Resizernpm version

    • Overview
  • Routernpm version

    • Overview
  • Corenpm version

    • Overview
  • Core-Reactnpm version

    • Overview
  • Stylesnpm version

    • Overview
  • Localizenpm version

    • Overview
  • Analyticsnpm version

    • Overview
  • Datepickernpm version

    • Overview
  • Icons-generatornpm version

    • Overview
  • Smart-addressnpm version

    • Overview
  • E2Enpm version

    • Overview
  • E2E-Playwrightnpm version

    • Overview
View source on GitLab

Typography

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.

When to use

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.

Usage

<h1 className="uxf-typo-h1">Heading</h1>
<p className="uxf-typo-body">Body text</p>
<span className="uxf-typo-caption">Caption</span>

Classes

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.

Requirements

Import the stylesheet once in your global CSS:

@import url("@uxf/ui/css/typography.css");
Default
Open in new tab
OnlyForE2ETests
Open in new tab