@import "settings";

/// Set to false to not include font and background color classes
/// @type Boolean
$bonsai-include-color-classes: $bonsai-include-components !default;

/// iterates through the palette to generate background color classes
@mixin background-colors {
  @if $bonsai-include-color-classes {
    @each $color-name, $color in $bonsai-palette {
      .#{$color-name}-background {
        background-color: $color !important;
      }
    }
  }
}

/// iterates through the palette to generate font color classes
@mixin colors {
  @if $bonsai-include-color-classes {
    @each $color-name, $color in $bonsai-palette {
      .#{$color-name}-color {
        color: $color !important;
      }
    }
  }
}
