Skip to main content Skip to main navigation

Alerts

Create custom branded alerts by using the alert color mixin: @include alert-color($border-color, $background-color).

<div class="alert" role="alert">
    This is a base alert. <a href="#" class="alert--link">It may have a link.</a>
</div>
<div class="alert alert--error" role="alert">
    This is an error alert. <a href="#" class="alert--link">It may have a link.</a>
</div>
<div class="alert alert--warning" role="alert">
    This is a warning alert. <a href="#" class="alert--link">It may have a link.</a>
</div>
<div class="alert alert--success" role="alert">
    This is a success alert. <a href="#" class="alert--link">It may have a link.</a>
</div>
<div class="alert alert--info" role="alert">
    This is an info alert. <a href="#" class="alert--link">It may have a link.</a>
</div>