mirror of
https://github.com/prymitive/karma
synced 2026-05-05 03:16:51 +00:00
feat(ui): set font-display swap policy
This tells the browser to use a fallback font until Leto is loaded, which speeds up initial rendering, especially on slow clients
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
$web-font-path: "";
|
||||
|
||||
@font-face {
|
||||
font-display: swap;
|
||||
font-family: "Lato";
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
@@ -12,6 +13,7 @@ $web-font-path: "";
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-display: swap;
|
||||
font-family: "Lato";
|
||||
font-weight: 400;
|
||||
font-style: italic;
|
||||
@@ -23,6 +25,7 @@ $web-font-path: "";
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-display: swap;
|
||||
font-family: "Lato";
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
|
||||
Reference in New Issue
Block a user