Skip to content

Instantly share code, notes, and snippets.

@anithegregorian
Last active April 20, 2021 14:59
Show Gist options
  • Save anithegregorian/99251a3259bdd84a689d7c5c61687a1d to your computer and use it in GitHub Desktop.
Save anithegregorian/99251a3259bdd84a689d7c5c61687a1d to your computer and use it in GitHub Desktop.
// CSS VARIABLES
:root {
--body-font-family: #{$site-body-font-family};
--heading-font-family: #{$site-heading-font-family};
--heading-font-weight: 500;
// Scale factors
@each $factor, $value in $scale-factors {
--scale-factor-#{$factor}: #{$value};
}
// Margin spacings
@each $space, $value in $margin-spacings {
--vertical-margin-#{$space}: #{$value};
}
// Margin pushes
@each $space, $value in $margin-pushes {
--margin-push-#{$space}: #{$value};
}
// Padding spacings
@each $space, $value in $padding-spacings {
--vertical-padding-#{$space}: #{$value};
}
// Gutter spacings
@each $space, $value in $gutter-spacings {
--column-gutter-spacing-#{$space}: #{$value};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment