Skip to content

Instantly share code, notes, and snippets.

@chrisvanpatten
Last active December 10, 2015 17:39
Show Gist options
  • Save chrisvanpatten/4469518 to your computer and use it in GitHub Desktop.
Save chrisvanpatten/4469518 to your computer and use it in GitHub Desktop.
Fonts
/*
* Using Sass's @each loop to automatically generate code for web fonts
*/
$fonts: (vpm, font-awesome);
@each $font in $fonts {
@include font-face( $font,
font-files(
'#{$font}/#{$font}.woff',
'#{$font}/#{$font}.ttf',
'#{$font}/#{$font}.svg', svg
),
'#{$font}/#{$font}.eot'
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment