Last active
July 16, 2018 14:07
-
-
Save sebastiano-guerriero/9237eb03d0218a329aee504ca38418f5 to your computer and use it in GitHub Desktop.
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
:root { | |
--font-primary: sans-serif; | |
--font-secondary: serif; | |
/* set base values */ | |
--text-base-size: 1em; | |
--text-scale-ratio: 1.2; | |
/* type scale */ | |
--text-xs: calc(1em / (var(--text-scale-ratio) * var(--text-scale-ratio))); | |
--text-sm: calc(1em / var(--text-scale-ratio)); | |
--text-md: calc(1em * var(--text-scale-ratio)); | |
--text-lg: calc(1em * var(--text-scale-ratio) * var(--text-scale-ratio)); | |
--text-xl: calc(1em * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio)); | |
--text-xxl: calc(1em * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio)); | |
--text-xxxl: calc(1em * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio) * var(--text-scale-ratio)); | |
} | |
body { | |
font-size: var(--text-base-size); | |
font-family: var(--font-primary); | |
color: var(--color-text); | |
} | |
h1, h2, h3, h4, form legend { | |
color: var(--color-text-heading); | |
margin-bottom: var(--space-xxs); | |
line-height: var(--heading-line-height); | |
} | |
/* text size */ | |
.text--xxxl { | |
font-size: var(--text-xxxl); | |
} | |
h1, .text--xxl { | |
font-size: var(--text-xxl); | |
} | |
h2, .text--xl { | |
font-size: var(--text-xl); | |
} | |
h3, .text--lg { | |
font-size: var(--text-lg); | |
} | |
h4, .text--md { | |
font-size: var(--text-md); | |
} | |
.text--sm, small { | |
font-size: var(--text-sm); | |
} | |
.text--xs { | |
font-size: var(--text-xs); | |
} | |
p { | |
line-height: var(--body-line-height); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment