@mixin generate_text_color_classes {
  @for $i from 1 through length($all_colors) {
    .has-text-#{nth($all_colors, $i)},
    .is-text-#{nth($all_colors, $i)} {
      color: variable(#{nth($all_colors, $i)});
    }
  }
}

@mixin generate_headings {
  @for $i from 1 through 6 {
    h#{$i},
    .is-h#{$i} {
      font-size: variable("h#{$i}");
      line-height: variable("h#{$i}");
      font-weight: 700;
    }
  }
}

@include generate_text_color_classes;

/* Headings
----------------------------- */
@include generate_headings; // h<x> or .is-h<x>

.is-bold           { font-weight: bold; }
.is-strike         { text-decoration: line-through }
.is-italic         { font-style: italic; }
.is-capitalized    { text-transform: capitalize; }
.is-uppercase      { text-transform: uppercase; }
.is-underline      { text-decoration: underline; }
.is-aligned-left   { text-align: left; }
.is-aligned-center { text-align: center; }
.is-aligned-right  { text-align: right; }