Skip to content
Patternfly Logo

Text

Examples

Font size

Extra small text
Small text
Medium text
Large text
Extra large text
2xl text
3xl text
4xl text

Font weight

Light
Normal
Bold

Standard colors

Font color 100
Font color 200
Font color 300
Font color 400
Active color 100
Active color 400
Primary color 100

Inverse colors

Font color light 100
Font color light 200

Status and state text colors

Font color default 100
Font color default 200
Font color default 300
Font color success 100
Font color success 200
Font color info 100
Font color info 200
Font color warning 100
Font color warning 200
Font color danger 100
Font color danger 200
Font color danger 300

Disabled text colors

Font color disabled 100
Font color disabled 200

Icon colors

Controlling text

Breakword

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus pretium est a porttitor vehicula. Quisque vel commodo urna. Morbi mattis rutrum ante, id vehicula ex accumsan ut.


No Wrap

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus pretium est a porttitor vehicula.


Wrap

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus pretium est a porttitor vehicula. Quisque vel commodo urna. Morbi mattis rutrum ante, id vehicula ex accumsan ut.


Truncate

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus pretium est a porttitor vehicula. Quisque vel commodo urna. Morbi mattis rutrum ante, id vehicula ex accumsan ut.

Documentation

Overview

These text utilities can be used to modify text within the PatternFly framework. In most cases, using the components with available modifiers should be sufficient to implement most designs, and should be preferred over customizations using these utilities.

Care should be taken especially when applying text colors, as this can have a negative effect on the readability and accessibility of text. Refer to the information on contrast ratios for more information.

Note that "inverse" text colors are labeled as such to indicate that they best used with the "inverse" background colors.

Usage

Class
Applied to
Outcome
.pf-u-font-size-xs
*
Sets font-size to xs
.pf-u-font-size-sm
*
Sets font-size to sm
.pf-u-font-size-md
*
Sets font-size to md
.pf-u-font-size-lg
*
Sets font-size to lg
.pf-u-font-size-xl
*
Sets font-size to xl
.pf-u-font-size-2xl
*
Sets font-size to 2xl
.pf-u-font-size-3xl
*
Sets font-size to 3xl
.pf-u-font-size-4xl
*
Sets font-size to 4xl
.pf-u-font-weight-light
*
Sets font-weight to light
.pf-u-font-weight-normal
*
Sets font-weight to normal
.pf-u-font-weight-bold
*
Sets font-weight to bold
.pf-u-color-100
*
Sets font-color to color 100
.pf-u-color-200
*
Sets font-color to color 200
.pf-u-color-300
*
Sets font-color to color 300
.pf-u-color-400
*
Sets font-color to color 400
.pf-u-active-color-100
*
Sets font-color to active color 100
.pf-u-active-color-400
*
Sets font-color to active color 400
.pf-u-primary-color-100
*
Sets font-color to primary color 100
.pf-u-color-light-100
*
Sets font-color to light color 100
.pf-u-color-light-200
*
Sets font-color to light color 200
.pf-u-link-color
*
Sets font-color to link color
.pf-u-link-color-hover
*
Sets font-color to hover link color
.pf-u-link-color-light
*
Sets font-color to light link color
.pf-u-link-color-light-hover
*
Sets font-color to light hover link color
.pf-u-link-color-dark
*
Sets font-color to dark link color
.pf-u-link-color-dark-hover
*
Sets font-color to dark hover link color
.pf-u-link-color-visited
*
Sets font-color to visited link color
.pf-u-default-color-100
*
Sets font-color to default color 100
.pf-u-default-color-200
*
Sets font-color to default color 200
.pf-u-default-color-300
*
Sets font-color to default color 300
.pf-u-success-color-100
*
Sets font-color to success color 100
.pf-u-success-color-200
*
Sets font-color to success color 200
.pf-u-info-color-100
*
Sets font-color to info color 100
.pf-u-info-color-200
*
Sets font-color to info color 200
.pf-u-warning-color-100
*
Sets font-color to warning color 100
.pf-u-warning-color-200
*
Sets font-color to warning color 200
.pf-u-danger-color-100
*
Sets font-color to danger color 100
.pf-u-danger-color-200
*
Sets font-color to danger color 200
.pf-u-danger-color-300
*
Sets font-color to danger color 300
.pf-u-disabled-color-100
*
Sets font-color to disabled color 100
.pf-u-disabled-color-200
*
Sets font-color to disabled color 200
.pf-u-icon-color-light
*
Sets font-color to light icon color
.pf-u-icon-color-dark
*
Sets font-color to dark icon color
.pf-u-text-break-word
*
Sets word-break to break-word
.pf-u-text-nowrap
*
Sets white-space to nowrap
.pf-u-text-wrap
*
Sets white-space to normal
.pf-u-text-truncate
*
Truncates text field

View source on GitHub