Skip to content

Commit 137b142

Browse files
authored
replace font files with woff2 for better performance (#6338)
1 parent a987255 commit 137b142

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

frontend/app/src/app/styles/index.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
@config '../../../tailwind.config.js';
77

88
@font-face {
9-
font-family: "Inter";
10-
src: url(/src/assets/fonts/InterVariable.ttf);
9+
font-family: InterVariable;
10+
font-weight: 100 900;
11+
font-display: swap;
12+
src: url(/src/assets/fonts/InterVariable.woff2) format("woff2");
1113
}
1214

1315
@layer base {
@@ -19,7 +21,7 @@
1921

2022
body {
2123
margin: 0;
22-
font-family: "Inter", sans-serif;
24+
font-family: InterVariable, sans-serif;
2325
-webkit-font-smoothing: antialiased;
2426
-moz-osx-font-smoothing: grayscale;
2527
}
-854 KB
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)