jakegiltsoff / sassline

Set text on the web to a baseline grid with Sass & rems using a responsive modular-scale.
https://sassline.com
1.38k stars 91 forks source link

Help me understand this line #54

Closed cocacrave closed 7 years ago

cocacrave commented 7 years ago

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.

cocacrave commented 7 years ago

I get it now. Thanks.