颜色
文本颜色

.text-primary

.text-secondary

.text-success

.text-danger

.text-warning

.text-info

.text-pink

.text-purple

.text-brown

.text-cyan

.text-yellow

.text-gray

.text-light

.text-lighter

.text-dark

.text-body

.text-muted

.text-white

.text-black-50

.text-white-50

<p class="text-primary">.text-primary</p>
<p class="text-secondary">.text-secondary</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-info">.text-info</p>
<p class="text-pink">.text-pink</p>
<p class="text-purple">.text-purple</p>
<p class="text-brown">.text-brown</p>
<p class="text-cyan">.text-cyan</p>
<p class="text-yellow">.text-yellow</p>
<p class="text-gray">.text-gray</p>
<p class="text-light bg-dark">.text-light</p>
<p class="text-lighter bg-dark">.text-lighter</p>
<p class="text-dark">.text-dark</p>
<p class="text-body">.text-body</p>
<p class="text-muted">.text-muted</p>
<p class="text-white bg-dark">.text-white</p>
<p class="text-black-50">.text-black-50</p>
<p class="text-white-50 bg-dark">.text-white-50</p>

应用于链接的例子这里就不写了。

背景颜色
.bg-primary
.bg-secondary
.bg-success
.bg-danger
.bg-warning
.bg-info
.bg-pink
.bg-purple
.bg-brown
.bg-cyan
.bg-yellow
.bg-gray
.bg-light
.bg-lighter
.bg-lightest
.bg-dark
.bg-white
.bg-transparent
<div class="p-3 mb-2 bg-primary text-white">.bg-primary</div>
<div class="p-3 mb-2 bg-secondary text-white">.bg-secondary</div>
<div class="p-3 mb-2 bg-success text-white">.bg-success</div>
<div class="p-3 mb-2 bg-danger text-white">.bg-danger</div>
<div class="p-3 mb-2 bg-warning text-dark">.bg-warning</div>
<div class="p-3 mb-2 bg-info text-white">.bg-info</div>
<div class="p-3 mb-2 bg-pink text-white">.bg-pink</div>
<div class="p-3 mb-2 bg-purple text-white">.bg-purple</div>
<div class="p-3 mb-2 bg-brown text-white">.bg-brown</div>
<div class="p-3 mb-2 bg-cyan text-dark">.bg-cyan</div>
<div class="p-3 mb-2 bg-yellow text-white">.bg-yellow</div>
<div class="p-3 mb-2 bg-gray text-white">.bg-gray</div>
<div class="p-3 mb-2 bg-light text-dark">.bg-light</div>
<div class="p-3 mb-2 bg-lighter text-dark">.bg-lighter</div>
<div class="p-3 mb-2 bg-lightest text-dark">.bg-lightest</div>
<div class="p-3 mb-2 bg-dark text-white">.bg-dark</div>
<div class="p-3 mb-2 bg-white text-dark">.bg-white</div>
<div class="p-3 mb-2 bg-transparent text-dark">.bg-transparent</div>