$rubik-font-path: '/static/fonts/Rubik' !default;

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

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


@include rubik-font-pair('Light', 300);
@include rubik-font-pair('Regular', 400);
@include rubik-font-pair('Medium', 500);
@include rubik-font-pair('Bold', 700);
@include rubik-font-pair('Black', 900);
