Skip to content

Commit e3223dc

Browse files
author
Jessica Paoli
committed
prefer FOUT to FOIT with font-display: swap
1 parent 9ed1375 commit e3223dc

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: "/primer-marketing-support/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)