Skip to content

Instantly share code, notes, and snippets.

@alpual
Created October 25, 2018 23:52
Show Gist options
  • Save alpual/0ae5144199585a256d5cc67a1127d50f to your computer and use it in GitHub Desktop.
Save alpual/0ae5144199585a256d5cc67a1127d50f to your computer and use it in GitHub Desktop.
:root {
--base-size: 16px;
--primary-color: #2D3F63;
--secondary-typeface: "Cantata One";
--primary-typeface: "Montserrat";
}
body {
font-size: var(--base-size);
}
h1, h2, h3, h4, h5, h6 {
font-family: var(--secondary-typeface), serif;
font-weight: 400 ;
text-transform: none;
letter-spacing: 0;
color: var(--primary-color);
}
h1 {
font-size: 3rem;
line-height: 1.125em;
margin-bottom: .5em;
margin-top:1em;
}
h2 {
font-size: 2rem;
line-height: 1.25em;
margin-bottom: .5em;
}
h3 {
font-size: 1.5rem;
line-height: 1.333333em;
margin-bottom: .666666em;
}
h4 {
font-size: 1.25rem;
line-height: 1.4em;
margin-bottom: .8em;
}
h5, h6 {
font-size: 1rem;
line-height: 1.5em;
margin-bottom: 1em;
}
p {
font-family: var(--primary-typeface), sans-serif;
font-weight: 400;
font-size: 1rem;
line-height: 1.5em;
max-width: 36rem;
margin-bottom: .666666em;
}
p + :not(p){
margin-top: 1em;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment