In few of the mixins like @mixin fontsize there's this line of code:
// Check if value exists in scale.
$in-scale: in-modular-scale(scale-0, $fontsize);
A function that checks if given $fontsize is in $modular-scale.
The mixin is returning fontsize in rem in a given breakpoint which is default 0.
Why is the call to in-modular-scale() only looking at scale-0?
Shouldn't it look for the font-size (by user) from the breakpoint (also by user) input in modular-scale?
I'm most likely wrong but I just need to understand before I just plug this in.
In few of the mixins like
@mixin fontsize
there's this line of code:A function that checks if given
$fontsize
is in$modular-scale
. The mixin is returning fontsize in rem in a given breakpoint which is default 0. Why is the call toin-modular-scale()
only looking at scale-0? Shouldn't it look for the font-size (by user) from the breakpoint (also by user) input in modular-scale?I'm most likely wrong but I just need to understand before I just plug this in.