1<p class="text-primary">.text-primary</p>
2<p class="text-secondary">.text-secondary</p>
3<p class="text-success">.text-success</p>
4<p class="text-danger">.text-danger</p>
5<p class="text-warning">.text-warning</p>
6<p class="text-info">.text-info</p>
7<p class="text-light bg-dark">.text-light</p>
8<p class="text-dark">.text-dark</p>
9<p class="text-muted">.text-muted</p>
10<p class="text-white bg-dark">.text-white</p>
1<div class="p-3 mb-2 bg-primary text-white">.bg-primary</div>
2<div class="p-3 mb-2 bg-secondary text-white">.bg-secondary</div>
3<div class="p-3 mb-2 bg-success text-white">.bg-success</div>
4<div class="p-3 mb-2 bg-danger text-white">.bg-danger</div>
5<div class="p-3 mb-2 bg-warning text-dark">.bg-warning</div>
6<div class="p-3 mb-2 bg-info text-white">.bg-info</div>
7<div class="p-3 mb-2 bg-light text-dark">.bg-light</div>
8<div class="p-3 mb-2 bg-dark text-white">.bg-dark</div>
9<div class="p-3 mb-2 bg-white text-dark">.bg-white</div>
1primary - #007bff
2secondary - #6c757d
3success - #28a745
4danger - #dc3545
5warning - #ffc107
6info - #17a2b8
7light - #f8f9fa
8dark - #343a40
9muted - #6c757d
10white - #ffffff
1<style type="text/css">
2 body { background: navy !important; } /* Adding !important forces the browser to overwrite the default style applied by Bootstrap */
3</style>