Alerts

Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.

Default Alerts

Change colours using .alert-{theme-color}

Themed Alerts

Themed alerts require a different structure to allow custom icons to work properly.

<div class="alert alert-box alert-konkon alert-dismissible" role="alert">
  <div class="alert-box-icon"><span class="ski zmdi zmdi-favorite"></span></div>
  <div class="alert-box-body">
    <h4 class="alert-heading">Well done!</h4>
    <p>Content Here...</p>
  </div>
  <button class="btn-close" type="button" data-bs-dismiss="alert" aria-label="Close"></button>
</div>

Alerts with icons

Add .alert-box with .alert-box-icon and .alert-box-body for our custom icon alerts. Icon alerts use flex and require a different html structure.

Full Colour Alerts

Add full colour using .bg-*. You may add .text-white when necessary. Use .alert-box-contrast to lighten icon areas (or text color if color-mix is supported).

Icon Alerts

Add bg-body text-body border-0 to get a coloured icon with white body and no border. You may also want to use .link-* instead of .alert-link for links.

Border Icon Alerts

Add .bg-body .text-body and .border-* to get a white body with coloured border. You may add .text-bg-* to the .icon element so it matches the border colour.

More Examples