Skip to content

Commit

Permalink
Use font-display: swap for performance
Browse files Browse the repository at this point in the history
Signed-off-by: Takuya Noguchi <[email protected]>
  • Loading branch information
tnir committed Jul 16, 2022
1 parent ef1573f commit 9f5da78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion assets/stylesheets/_bootstrap-overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ $navbar-toggler-font-size: 1rem;
// .btn does not need border
$btn-border-width: 0;

$font-family-sans-serif: "SancoaleSlab", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
$font-family-sans-serif: "SancoaleSlab", Times, "Times New Roman", serif;

// for contributors
$card-border-width: 0;
Expand Down
1 change: 1 addition & 0 deletions assets/stylesheets/application.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ $navbar-height: 50px;
font-family: SancoaleSlab;
font-style: normal;
src: url('fonts/SancoaleSlabNormRegular.otf') format("opentype");
font-display: swap;
}

// Boostrap 5 customization
Expand Down

0 comments on commit 9f5da78

Please sign in to comment.