thoughtbot/bourbon — pull request #45 by frankzilla (2012-01-18 14:00:18+00:00)
Title: Modular scale mixin

I ran into a situation were the golden ratio was not suitable, and needed a convenient way to change the ratio to (2:3 perfect fifth).

I moved the code of the golden-ratio mixin to a new modular-scale mixin allowing the ratio to be altered via the $ratio argument. I also updated the golden-ratio mixin to use the new mixin.

Example Usage:

h1 {
font-size : modular-scale(13px, 2, 1.5); }