Created
February 6, 2014 09:28
-
-
Save snowman-repos/8841029 to your computer and use it in GitHub Desktop.
Typographic scale
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//BODY | |
body | |
font-size 100% | |
body, | |
h1, | |
h2, | |
h3, | |
h4, | |
h5, | |
h6 | |
font-size-adjust 0.5 | |
.container | |
font-size 1em | |
line-height 1.25 | |
@media (min-width: 43.75em) | |
.container | |
font-size 1em | |
line-height 1.375 | |
//HEADINGS | |
h1 | |
font-size 2em | |
line-height 1.25 | |
h2 | |
font-size 1.625em | |
line-height 1.15384615 | |
h3 | |
font-size 1.375em | |
line-height 1.13636364 | |
h4 | |
font-size 1.125em | |
line-height 1.11111111 | |
@media (min-width: 43.75em) | |
h1 | |
font-size 2.5em | |
line-height 1.125 | |
h2 | |
font-size 2em | |
line-height 1.25 | |
h3 | |
font-size 1.5em | |
line-height 1.25 | |
h4 | |
line-height 1.22222222 | |
@media (min-width: 56.25em) | |
h1 | |
font-size 3em | |
line-height 1.05 | |
h2 | |
font-size 2.25em | |
line-height 1.25 | |
h3 | |
font-size 1.75em | |
line-height 1.25 | |
// OTHERS | |
blockquote | |
font-size 1.25em | |
line-height 1.25 | |
@media (min-width: 43.75em) | |
blockquote | |
font-size 1.5em | |
line-height 1.45833333 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Taken from http://typecast.com/blog/a-more-modern-scale-for-web-typography