Skip to content

Instantly share code, notes, and snippets.

@budparr
Created May 3, 2015 04:54
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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