Returns the golden ratio of a given number. Must provide a pixel or em value for the first argument. Also takes a required integer for an increment value: ...-3, -2, -1, 0, 1, 2, 3...
Note: The golden-ratio function can be wrapped in sass's abs()
, floor()
, or ceil()
functions to get the absolute value, round down, or round up respectively.
Resources: modularscale.com & goldenrationcalculator.com