Colors

Convey meaning through color with a handful of color utility classes. Includes support for styling links with hover states, too.

Color

.text-white

.text-blue-corporate

.text-blue-allports

.text-blue-venice

.text-green-java

.text-green-pine

.text-green

.text-orange

.text-red

.text-blue-bigstone

.text-blue-rhino

.text-green-fun

.text-green-riogrande

.text-yellow

.text-purple

.text-violet

.text-violet-eggplant

.text-cerise

.text-muted

.text-primary

.text-success

.text-danger

.text-warning

.text-light

<p class="text-white bg-blue-corporate">.text-white</p>
<p class="text-blue-corporate">.text-blue-corporate</p>
<p class="text-blue-allports">.text-blue-allports</p>
<p class="text-blue-venice">.text-blue-venice</p>
<p class="text-green-java">.text-green-java</p>
<p class="text-green-pine">.text-green-pine</p>
<p class="text-green">.text-green</p>
<p class="text-orange">.text-orange</p>
<p class="text-red">.text-red</p>
<p class="text-blue-bigstone">.text-blue-bigstone</p>
<p class="text-blue-rhino">.text-blue-rhino</p>
<p class="text-green-fun">.text-green-fun</p>
<p class="text-green-riogrande">.text-green-riogrande</p>
<p class="text-yellow">.text-yellow</p>
<p class="text-purple">.text-purple</p>
<p class="text-violet">.text-violet</p>
<p class="text-violet-eggplant">.text-violet-eggplant</p>
<p class="text-cerise">.text-cerise</p>
<p class="text-muted">.text-muted</p>

<p class="text-primary">.text-primary</p>
<p class="text-success">.text-success</p>
<p class="text-danger">.text-danger</p>
<p class="text-warning">.text-warning</p>
<p class="text-light bg-blue-corporate">.text-light</p>

Useful color classes for texts on background color.

.text-on-blue-allports

.text-on-primary

<p class="bg-blue-allports text-on-blue-allports">.text-on-blue-allports</p>
<p class="bg-primary text-on-primary">.text-on-primary</p>

.text-gray-100

.text-gray-200

.text-gray-300

.text-gray-400

.text-gray-500

.text-gray-600

.text-gray-700

.text-gray-800

.text-gray-900

<p class="text-gray-100">.text-gray-100</p>
<p class="text-gray-200">.text-gray-200</p>
<p class="text-gray-300">.text-gray-300</p>
<p class="text-gray-400">.text-gray-400</p>
<p class="text-gray-500">.text-gray-500</p>
<p class="text-gray-600">.text-gray-600</p>
<p class="text-gray-700">.text-gray-700</p>
<p class="text-gray-800">.text-gray-800</p>
<p class="text-gray-900">.text-gray-900</p>

Grays non-reactive to dark mode

.text-gray-light-100

.text-gray-light-200

.text-gray-light-300

.text-gray-light-400

.text-gray-light-500

.text-gray-light-600

.text-gray-light-700

.text-gray-light-800

.text-gray-light-900

<p class="text-gray-light-100">.text-gray-light-100</p>
<p class="text-gray-light-200">.text-gray-light-200</p>
<p class="text-gray-light-300">.text-gray-light-300</p>
<p class="text-gray-light-400">.text-gray-light-400</p>
<p class="text-gray-light-500">.text-gray-light-500</p>
<p class="text-gray-light-600">.text-gray-light-600</p>
<p class="text-gray-light-700">.text-gray-light-700</p>
<p class="text-gray-light-800">.text-gray-light-800</p>
<p class="text-gray-light-900">.text-gray-light-900</p>

.text-gray-dark-100

.text-gray-dark-200

.text-gray-dark-300

.text-gray-dark-400

.text-gray-dark-500

.text-gray-dark-600

.text-gray-dark-700

.text-gray-dark-800

.text-gray-dark-900

<p class="text-gray-dark-100">.text-gray-dark-100</p>
<p class="text-gray-dark-200">.text-gray-dark-200</p>
<p class="text-gray-dark-300">.text-gray-dark-300</p>
<p class="text-gray-dark-400">.text-gray-dark-400</p>
<p class="text-gray-dark-500">.text-gray-dark-500</p>
<p class="text-gray-dark-600">.text-gray-dark-600</p>
<p class="text-gray-dark-700">.text-gray-dark-700</p>
<p class="text-gray-dark-800">.text-gray-dark-800</p>
<p class="text-gray-dark-900">.text-gray-dark-900</p>

Background color

Similar to the contextual text color classes, easily set the background of an element to any contextual class. Anchor components will darken on hover, just like the text classes. Background utilities do not set color, so in some cases you’ll want to use .text-* utilities.

.bg-white
.bg-blue-corporate
.bg-blue-allports
.bg-blue-venice
.bg-green-java
.bg-green-pine
.bg-green
.bg-orange
.bg-red
.bg-blue-bigstone
.bg-blue-rhino
.bg-green-fun
.bg-green-riogrande
.bg-yellow
.bg-purple
.bg-violet
.bg-violet-eggplant
.bg-cerise
.bg-primary
.bg-success
.bg-danger
.bg-warning
.bg-light
<div class="p-1 mb-1 bg-white text-on-white">.bg-white</div>
<div class="p-1 mb-1 bg-blue-corporate text-on-blue-corporate">.bg-blue-corporate</div>
<div class="p-1 mb-1 bg-blue-allports text-on-blue-allports">.bg-blue-allports</div>
<div class="p-1 mb-1 bg-blue-venice text-on-blue-venice">.bg-blue-venice</div>
<div class="p-1 mb-1 bg-green-java text-on-green-java">.bg-green-java</div>
<div class="p-1 mb-1 bg-green-pine text-on-green-pine">.bg-green-pine</div>
<div class="p-1 mb-1 bg-green text-on-green">.bg-green</div>
<div class="p-1 mb-1 bg-orange text-on-orange">.bg-orange</div>
<div class="p-1 mb-1 bg-red text-on-red">.bg-red</div>
<div class="p-1 mb-1 bg-blue-bigstone text-on-blue-bigstone">.bg-blue-bigstone</div>
<div class="p-1 mb-1 bg-blue-rhino text-on-blue-rhino">.bg-blue-rhino</div>
<div class="p-1 mb-1 bg-green-fun text-on-green-fun">.bg-green-fun</div>
<div class="p-1 mb-1 bg-green-riogrande text-on-green-riogrande">.bg-green-riogrande</div>
<div class="p-1 mb-1 bg-yellow text-on-yellow">.bg-yellow</div>
<div class="p-1 mb-1 bg-purple text-on-purple">.bg-purple</div>
<div class="p-1 mb-1 bg-violet text-on-violet">.bg-violet</div>
<div class="p-1 mb-1 bg-violet-eggplant text-on-violet-eggplant">.bg-violet-eggplant</div>
<div class="p-1 mb-1 bg-cerise text-on-cerise">.bg-cerise</div>

<div class="p-1 mb-1 bg-primary text-on-primary">.bg-primary</div>
<div class="p-1 mb-1 bg-success text-on-success">.bg-success</div>
<div class="p-1 mb-1 bg-danger text-on-danger">.bg-danger</div>
<div class="p-1 mb-1 bg-warning text-on-warning">.bg-warning</div>
<div class="p-1 mb-1 bg-light text-on-light">.bg-light</div>
.bg-gray-100
.bg-gray-200
.bg-gray-300
.bg-gray-400
.bg-gray-500
.bg-gray-600
.bg-gray-700
.bg-gray-800
.bg-gray-900
<div class="p-1 mb-1 bg-gray-100 text-on-gray-100">.bg-gray-100</div>
<div class="p-1 mb-1 bg-gray-200 text-on-gray-200">.bg-gray-200</div>
<div class="p-1 mb-1 bg-gray-300 text-on-gray-300">.bg-gray-300</div>
<div class="p-1 mb-1 bg-gray-400 text-on-gray-400">.bg-gray-400</div>
<div class="p-1 mb-1 bg-gray-500 text-on-gray-500">.bg-gray-500</div>
<div class="p-1 mb-1 bg-gray-600 text-on-gray-600">.bg-gray-600</div>
<div class="p-1 mb-1 bg-gray-700 text-on-gray-700">.bg-gray-700</div>
<div class="p-1 mb-1 bg-gray-800 text-on-gray-800">.bg-gray-800</div>
<div class="p-1 mb-1 bg-gray-900 text-on-gray-900">.bg-gray-900</div>

Grays non-reactive to dark mode

.bg-gray-light-100
.bg-gray-light-200
.bg-gray-light-300
.bg-gray-light-400
.bg-gray-light-500
.bg-gray-light-600
.bg-gray-light-700
.bg-gray-light-800
.bg-gray-light-900
<div class="p-1 mb-1 bg-gray-light-100 text-white">.bg-gray-light-100</div>
<div class="p-1 mb-1 bg-gray-light-200 text-white">.bg-gray-light-200</div>
<div class="p-1 mb-1 bg-gray-light-300 text-white">.bg-gray-light-300</div>
<div class="p-1 mb-1 bg-gray-light-400 text-white">.bg-gray-light-400</div>
<div class="p-1 mb-1 bg-gray-light-500 text-white">.bg-gray-light-500</div>
<div class="p-1 mb-1 bg-gray-light-600 text-white">.bg-gray-light-600</div>
<div class="p-1 mb-1 bg-gray-light-700 text-white">.bg-gray-light-700</div>
<div class="p-1 mb-1 bg-gray-light-800 text-white">.bg-gray-light-800</div>
<div class="p-1 mb-1 bg-gray-light-900 text-white">.bg-gray-light-900</div>
.bg-gray-dark-100
.bg-gray-dark-200
.bg-gray-dark-300
.bg-gray-dark-400
.bg-gray-dark-500
.bg-gray-dark-600
.bg-gray-dark-700
.bg-gray-dark-800
.bg-gray-dark-900
<div class="p-1 mb-1 bg-gray-dark-100 text-white">.bg-gray-dark-100</div>
<div class="p-1 mb-1 bg-gray-dark-200 text-white">.bg-gray-dark-200</div>
<div class="p-1 mb-1 bg-gray-dark-300 text-white">.bg-gray-dark-300</div>
<div class="p-1 mb-1 bg-gray-dark-400 text-white">.bg-gray-dark-400</div>
<div class="p-1 mb-1 bg-gray-dark-500 text-white">.bg-gray-dark-500</div>
<div class="p-1 mb-1 bg-gray-dark-600 text-white">.bg-gray-dark-600</div>
<div class="p-1 mb-1 bg-gray-dark-700 text-white">.bg-gray-dark-700</div>
<div class="p-1 mb-1 bg-gray-dark-800 text-white">.bg-gray-dark-800</div>
<div class="p-1 mb-1 bg-gray-dark-900 text-white">.bg-gray-dark-900</div>

Background gradient

.bg-gradient-primary
<div class="p-3 mb-2 bg-gradient-primary text-white">.bg-gradient-primary</div>

Dealing with specificity

Sometimes contextual classes cannot be applied due to the specificity of another selector. In some cases, a sufficient workaround is to wrap your element’s content in a <div> with the class.

Conveying meaning to assistive technologies

Using color to add meaning only provides a visual indication, which will not be conveyed to users of assistive technologies – such as screen readers. Ensure that information denoted by the color is either obvious from the content itself (e.g. the visible text), or is included through alternative means, such as additional text hidden with the .sr-only class.