Contextual colors
Bootstrap's eight alert classes as they come, with no extra markup. Each picks up the palette, and the text color is mixed toward the body text so it stays readable on its tint.
Show code
<div class="alert alert-primary" role="alert">Customers can now pay invoices in euros.</div> <div class="alert alert-secondary" role="alert">…</div> <div class="alert alert-success" role="alert">…</div> <div class="alert alert-danger" role="alert">…</div> <div class="alert alert-warning" role="alert">…</div> <div class="alert alert-info" role="alert">…</div> <div class="alert alert-light" role="alert">…</div> <div class="alert alert-dark" role="alert">…</div>