Examples

Size modifiers

Heading level modifiers

Page title

Documentation

Overview

The title component styles font-size, font-weight, and line-height to titles.

The content component defines margin on headers. To regain the same spacing use, spacer utility classes:

TitleMargin topMargin bottom
4xl.pf-v6-u-mt-lg.pf-v6-u-mb-sm
3xl.pf-v6-u-mt-lg.pf-v6-u-mb-sm
2xl.pf-v6-u-mt-lg.pf-v6-u-mb-sm
xl.pf-v6-u-mt-lg.pf-v6-u-mb-sm
lg.pf-v6-u-mt-lg.pf-v6-u-mb-sm
md.pf-v6-u-mt-lg.pf-v6-u-mb-sm

Usage

ClassAppliedOutcome
.pf-v6-c-titleh1-h6Initiates a title. Always use it with a modifier class.
.pf-m-4xl.pf-v6-c-titleModifies for 4xl size
.pf-m-3xl.pf-v6-c-titleModifies for 3xl size
.pf-m-2xl.pf-v6-c-titleModifies for 2xl size
.pf-m-xl.pf-v6-c-titleModifies for xl size
.pf-m-lg.pf-v6-c-titleModifies for lg size
.pf-m-md.pf-v6-c-titleModifies for md size
.pf-m-h1.pf-v6-c-titleModifies for default h1 size
.pf-m-h2.pf-v6-c-titleModifies for default h2 size
.pf-m-h3.pf-v6-c-titleModifies for default h3 size
.pf-m-h4.pf-v6-c-titleModifies for default h4 size
.pf-m-h5.pf-v6-c-titleModifies for default h5 size
.pf-m-h6.pf-v6-c-titleModifies for default h6 size
.pf-m-page-title.pf-v6-c-titleApplies page title styles. Note: .pf-m-page-title should only apply to the heading that serves as the title for the current page.

CSS variables