// Table of Contents // ================================================== // Font-face // Font-face // ================================================== @each $type, $families in $font-families { @each $file-name, $family in $font-available-typography { @if index(text-family($type), $family) { @each $name, $weight in $font-weights { @font-face { font-display: swap; font-family: $family; font-style: normal; font-weight: $weight; src: url(font-path('#{$file-name}/#{$file-name}-#{$name}.woff')) format('woff'); } } } } } @each $file-name, $family in $font-available-typography { @if index(text-family(display), $family) { @each $name, $weight in (bold: 700, normal: 400) { @font-face { font-display: swap; font-family: $family; font-style: normal; font-weight: $weight; src: url(font-path('#{$file-name}/#{$file-name}-#{$name}.woff')) format('woff'); } } } }