Skip to content

Commit 4f167fa

Browse files
authored
Merge pull request #780 from primer/swap
Prefer FOUT over FOIT with custom @font-face marketing font
2 parents 0732c82 + e3223dc commit 4f167fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/marketing/support/variables.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ $marketing-font-path: "/fonts/" !default;
66
font-style: normal;
77
font-weight: $font-weight-normal;
88
src: local("Inter"), local("Inter-Regular"), url("#{$marketing-font-path}Inter-Regular.woff") format("woff");
9+
font-display: swap;
910
}
1011

1112
@font-face {
1213
font-family: Inter;
1314
font-style: normal;
1415
font-weight: $font-weight-semibold;
1516
src: local("Inter Medium"), local("Inter-Medium"), url("#{$marketing-font-path}Inter-Medium.woff") format("woff");
17+
font-display: swap;
1618
}
1719

1820
$font-mktg: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !default;

0 commit comments

Comments
 (0)