superlatief-mixins
Version:
A custom set of stylus and sass functions and mixins
25 lines (23 loc) • 499 B
text/stylus
$weights = {
'thin' : 100,
'extra-light' : 200,
'ultra-light' : 200,
'light' : 300,
'normal' : 400,
'book' : 400,
'regular' : 400,
'medium' : 500,
'semi-bold' : 600,
'demi-bold' : 600,
'bold' : 700,
'extra-bold' : 800,
'ultra-bold' : 900,
'heavy' : 900,
'black' : 900,
'ultra' : 900
};
fw($weight)
for $ent, $key in $weights
if $weight is $ent
return $key
return $weight