Skip to content

Instantly share code, notes, and snippets.

@sebastiano-guerriero
Last active July 17, 2018 10:20
Show Gist options
  • Save sebastiano-guerriero/3fe7a121534021846e49a337425e0d2c to your computer and use it in GitHub Desktop.
Save sebastiano-guerriero/3fe7a121534021846e49a337425e0d2c to your computer and use it in GitHub Desktop.
.component h1 {
font-size: 3em; // the size is no longer affected by the --text-scale-ratio
font-size: calc(var(--text-base-size) * 3); // use base size to create new value - off scale
font-size: calc(var(--text-xxl) - 0.8em); // use original font size to create new value - off scale
font-size: var(--text-xl); // update the value of the font size using a different variable
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment