Skip to content
Patternfly Logo

Background color

Examples

Standard background colors

Background color 100

Background color 200

Active color 100

Active color 300

Primary color 200

Inverse background colors

Background color dark 100

Background color dark 200

Background color dark 300

Background color dark 400

Disabled background colors

Disabled color 200

Disabled color 300

Status and state background colors

Default

Success

Info

Warning

Danger

Documentation

Overview

These background color utilities can be used to modify the background color of an element. 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 background colors, as this can have a negative effect on the readability and accessibility of text. Refer to contrast ratios for more information.

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

Usage

Class
Applied to
Outcome
.pf-u-background-color-100
*
Applies background color 100.
.pf-u-background-color-200
*
Applies background color 200.
.pf-u-background-color-active-color-100
*
Applies background color active 100.
.pf-u-background-color-active-color-300
*
Applies background color active 300.
.pf-u-background-color-primary-color-200
*
Applies background color primary 200.
.pf-u-background-color-dark-100
*
Applies background color dark 100.
.pf-u-background-color-dark-200
*
Applies background color dark 200.
.pf-u-background-color-dark-300
*
Applies background color dark 300.
.pf-u-background-color-dark-400
*
Applies background color dark 400.
.pf-u-background-color-disabled-color-200
*
Applies background color disabled 200.
.pf-u-background-color-disabled-color-300
*
Applies background color disabled 300.
.pf-u-background-color-default
*
Applies the background color for the default state.
.pf-u-background-color-success
*
Applies the background color for the success state.
.pf-u-background-color-info
*
Applies the background color for the info state.
.pf-u-background-color-warning
*
Applies the background color for the warning state.
.pf-u-background-color-danger
*
Applies the background color for the danger state.

View source on GitHub