bootrsap 4 bg colors code example
Example 1: bootstrap background color
<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-light text-dark">.bg-light</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>
Example 2: Bootstrap Text Colors Example
<p class="text-primary">It's primary text message</p>
<p class="text-secondary">It's secondary text message</p>
<p class="text-success">It's success text message</p>
<p class="text-danger">It's danger text message</p>
<p class="text-warning">It's warning text message</p>
<p class="text-info">It's info text message</p>
<p class="text-light bg-dark">It's light text message</p>
<p class="text-dark">It's dark text message</p>
<p class="text-muted">It's muted text message</p>