@mixin calcFontSize($target){
    font-size: calc( $target / $basesize);
}

// Setting font-weight by name
@mixin fw($weight){

    @if $weight == thin{
        font-weight: 100;
    }
    @if $weight == ultrathin{
        font-weight: 200;
    }
    @if $weight == light{
        font-weight: 300;
    }
    @if $weight == normal{
        font-weight: 400;
    }
    @if $weight == medium{
        font-weight: 500;
    }
    @if $weight == semibold{
        font-weight: 600;
    }
    @if $weight == bold{
        font-weight: 700;
    }
    @if $weight == ultrabold{
        font-weight: 800;
    }
    @if $weight == black{
        font-weight: 900;
    }

}