@import "../settings/settings.colors";

@mixin buttonColor($colors...) {
  @each $color in $colors {
    $mappedColors: (
      "primary": $cerulean,
      "secondary": $licorice,
      "error": $error-default
    );

    @if map-has-key($mappedColors, $color) {
      &.#{$color} {
        .qd-icon {
          color: map-get($mappedColors, $color);
        }
      }
    } @else {
      @error "Unknown color #{$color}.";
    }
  }
}
