$headers:
    h1 ".h1" 1.9535rem 1.2 500,
    h2 ".h2" 1.5625rem 1.25 500,
    h3 ".h3" 1.25rem 1.3 500,
    h4 ".h4" 1.0rem 1.4 700,
    h5 ".h5" 0.8rem 1.5 500,
    h6 ".h6" 0.64rem 1.4 500;

@each $type, $ptype, $size, $height, $weight in $headers {
    #{$type} {
        font-size: $size;
        line-height: $height;
        font-weight: $weight;
    }

    #{$ptype} {
        font-size: $size;
        line-height: $height;
        font-weight: $weight;
    }
}
