Skip to content

Instantly share code, notes, and snippets.

@budparr
Created May 3, 2015 04:54
Show Gist options
  • Save budparr/7e82a21acd7f8eeff9f8 to your computer and use it in GitHub Desktop.
Save budparr/7e82a21acd7f8eeff9f8 to your computer and use it in GitHub Desktop.
Automatically scale header font sizes in Bourbon/Bitters
@for $i from 1 through 6 {
h#{$i} {
font-size: modular-scale((6 - $i), 1em, 1.2);
}
}
// via https://github.com/thoughtbot/bitters/issues/153#issuecomment-85744338
@budparr
Copy link
Author

budparr commented May 3, 2015

worth noting the modular scale function resides here: /bourbon/functions/_modular-scale.scss

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment