$publicsans-font-path: '/static/fonts/PublicSans' !default;

@mixin publicsans-font($type, $weight, $style: normal) {
    @font-face {
        font-family: 'Public Sans';
        src: url('#{$publicsans-font-path}/PublicSans-#{$type}.woff2') format('woff2');
        font-weight: $weight;
        font-style: $style;
    }
}

@mixin publicsans-font-pair($type, $weight) {
    @include publicsans-font($type, $weight);
    @include publicsans-font(#{$type}Italic, $weight, italic);
}

@include publicsans-font-pair('Thin', 100);
@include publicsans-font-pair('ExtraLight', 200);
@include publicsans-font-pair('Light', 300);
@include publicsans-font-pair('Regular', 400);
@include publicsans-font-pair('Medium', 500);
@include publicsans-font-pair('SemiBold', 600);
@include publicsans-font-pair('Bold', 700);
@include publicsans-font-pair('ExtraBold', 800);
@include publicsans-font-pair('Black', 900);
