@import './state';

@mixin Alert {
  font-family: $system-font;
  border-radius: $alert-border-radius;
  font-weight: $alert-font-weight;
  font-size: $alert-font-size;
  padding: $alert-padding;
  position: relative;
  display: block;

  background-color: mix($black, $white, 5%);
  border: 1px solid mix($black, $white, 25%);
  color: darken($black, 20%);

  @each $state, $color in $states {
    @include state($state) {
      background-color: mix($color, $white, 12.5%);
      border: 1px solid mix($color, $white, 45%);
      color: darken($color, 20%);
    }
  }
}
