Typography

Fonts used by the Red Hat Developer Design Team.

Our font family

We use the open source Red Hat Text and Red Hat Display fonts.

Header XL

Font familyFont sizeFont weightLine heightClass + ModifierViewport size
RedHatDisplay40px30053.pf-c-title .pf-m-4xl992px & above
RedHatDisplay36px30043.2.pf-c-title .pf-m-4xl991px to 480px
RedHatDisplay32px30038.4.pf-c-title .pf-m-4xl479px & below
<h1 class="pf-c-title pf-m-4xl">"Design is where science and art break even."</h1>

"Design is where science and art break even."

"Design is where science and art break even."


Header 1

Font familyFont sizeFont weightLine heightClass + Modifier or Element
RedHatDisplay32px40042.pf-c-title .pf-m-3xl
<h1 class="pf-c-title pf-m-3xl">"Design is where science and art break even."</h1>
<div class="pf-c-content">
  <h1>"Design is where science and art break even."</h1>
  <h1><a href="#" title="Design is where science and art break even. (Link)">"Design is where science and art break even. (Link)"</a></h1>
</div>

Header 2

Font familyFont sizeFont weightLine heightClass + Modifier or Element
RedHatDisplay28px40031.2.pf-c-title .pf-m-2xl or <h2>
<h2 class="pf-c-title pf-m-2xl">"Design is where science and art break even."</h2>
<div class="pf-c-content">
  <h2>"Design is where science and art break even."</h2>
  <h2><a href="#" title="Design is where science and art break even. (Link)">"Design is where science and art break even. (Link)"</a></h2>
</div>

Header 3

Font familyFont sizeFont weightLine heightClass + Modifier or Element
RedHatDisplay20px40030.pf-c-title .pf-m-xl or <h3>
<h3 class="pf-c-title pf-m-xl">"Design is where science and art break even."</h3>
<div class="pf-c-content">
  <h3>"Design is where science and art break even."</h3>
  <h3>
    <a href="#" title="Design is where science and art break even. (Link)">"Design is where science and art break even. (Link)"</a>
  </h3>
</div>

Header 4

Font familyFont sizeFont weightLine heightClass + Modifier or Element
RedHatDisplay18px40027.pf-c-title .pf-m-lg or <h4>
<h4 class="pf-c-title pf-m-lg">"Design is where science and art break even."</h4>
<div class="pf-c-content">
  <h4>"Design is where science and art break even."</h4>
  <h4>
    <a href="#" title="Design is where science and art break even. (Link)">"Design is where science and art break even. (Link)"</a>
  </h4>
</div>

Standard text / Link text / Line text + hover

Font familyFont sizeFont weightLine heightColorText decorationClass or Element
RedHatText16px40024#333none<p>
RedHatText16px40024#0066ccnone.pf-m-link or <a>
RedHatText16px40024#004080underline.pf-m-link or <a>
<p>This is standard text for the developer site</p>
<a>This is link text for the developer site</a>
<p style="font-family: var(--pfe-theme--font-family); font-size: 16px; font-weight: 400; color: #004080; text-decoration: underline;">This is hovered link text for the developer site</p>

Dark typography - on dark background

To properly use the dark theme, you can either place the content in a dark < section > with class="pf-c-page__main-section pf-m-dark-100", wrap the content with .pf-content or add pf-m-dark to your element.

example:

<section class="pf-c-page__main-section pf-m-dark-100"><p>"Design is where science and art break even."</p></section>
<div class="pf-c-content pf-m-dark"><p>"Design is where science and art break even."</p></div>
<h1 class="pf-c-title pf-m-lg pf-m-dark">"Design is where science and art break even."</h1>

Header XL

Font familyFont sizeFont weightLine heightClass + ModifierViewport size
RedHatDisplay40px30053.pf-c-title .pf-m-4xl992px & above
RedHatDisplay36px30043.2.pf-c-title .pf-m-4xl991px to 480px
RedHatDisplay32px30038.4.pf-c-title .pf-m-4xl479px & below
<h1 class="pf-c-title pf-m-4xl pf-m-dark">"Design is where science and art break even."</h1>
<section class="pf-c-page__main-section pf-m-dark-100">
  <h1 class="pf-c-title pf-m-4xl">"Design is where science and art break even."</h1>
</section>

"Design is where science and art break even."

"Design is where science and art break even."


Header 1

Font familyFont sizeFont weightLine heightClass + Modifier or Element
RedHatDisplay32px40042.pf-c-title .pf-m-3xl
<h1 class="pf-c-title pf-m-3xl pf-m-dark">"Design is where science and art break even."</h1>
<section class="pf-c-page__main-section pf-m-dark-100">
  <h1 class="pf-c-title pf-m-3xl">"Design is where science and art break even."</h1>
</section>

Header 2

Font familyFont sizeFont weightLine heightClass + Modifier or Element
RedHatDisplay28px40031.2.pf-c-title .pf-m-2xl or <h2>
<h1 class="pf-c-title pf-m-2xl pf-m-dark">"Design is where science and art break even."</h1>
<div class="pf-c-content pf-m-dark">
  <h2>"Design is where science and art break even."</h2>
</div>
<section class="pf-c-page__main-section pf-m-dark-100">
  <h2 class="pf-c-title pf-m-2xl">"Design is where science and art break even."</h2>
</section>

Header 3

Font familyFont sizeFont weightLine heightClass + Modifier or Element
RedHatDisplay20px40030.pf-c-title .pf-m-xl or <h3>
<h1 class="pf-c-title pf-m-xl pf-m-dark">"Design is where science and art break even."</h1>
<div class="pf-c-content pf-m-dark">
  <h3>"Design is where science and art break even."</h3>
</div>
<section class="pf-c-page__main-section pf-m-dark-100">
  <h3 class="pf-c-title pf-m-xl">"Design is where science and art break even."</h3>
</section>

Header 4

Font familyFont sizeFont weightLine heightClass + Modifier or Element
RedHatDisplay18px40027.pf-c-title .pf-m-lg or <h4>
<h4 class="pf-c-title pf-m-lg pf-m-dark">"Design is where science and art break even."</h4>
<div class="pf-c-content pf-m-dark">
  <h4>"Design is where science and art break even."</h4>
</div>
<section class="pf-c-page__main-section pf-m-dark-100">
  <h4 class="pf-c-title pf-m-lg">"Design is where science and art break even."</h4>
</section>

Standard text / Link text / Line text + hover

Font familyFont sizeFont weightLine heightColorText decorationClass
RedHatText16px40024#fffnone 
RedHatText16px40024#0066ccnone.pf-m-link or .pf-m-link.pf-m-dark
RedHatText16px40024#004080underline 
RedHatText16px40024#fffnone.pf-m-link--secondary-on-dark
RedHatText16px40024#d2d2d2underline 
<div class="pf-c-content pf-m-dark">
  <p>White text</p>
  <p><a href="#" class="pf-m-link">Link on dark</a></p>
  <p><a href="#" class="pf-m-link--secondary-on-dark">Secondary link on dark</a></p>
</div>
<a href="#" class="pf-m-link pf-m-dark">Link on dark background without wrapper</a>
<section class="pf-c-page__main-section pf-m-dark-100">
  <a href="#" class="pf-m-link pf-m-dark">"Design is where science and art break even."</a>
</section>

This is standard text for the developer site

This is link text for the developer site

This is hovered link text for the developer site

This is standard text for the developer site

This is hovered link text for the developer site


Light CTAs (dark - pfe-theme)

Font familyFont sizeFont weightLine heightColorVariation
RedHatDisplay16px70023#fffbase
RedHatDisplay16px70023#d2d2d2hover
RedHatDisplay16px70023#73bcf7link
RedHatDisplay16px70023#2b9af3hover

This is a light CTA for the developer site

This is a light CTA for the developer site

This is a light CTA for the developer site

This is a light CTA for the developer site