Skip to content

Commit cc4824e

Browse files
FEATURE (fonts): Optimize fonts
1 parent bce61f5 commit cc4824e

20 files changed

+41
-13
lines changed

app/globals.css

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,46 @@
11
@import "tailwindcss";
22

3+
/* Jost Font Family */
4+
@font-face {
5+
font-family: "Jost";
6+
src: url("/font/Jost-Regular.ttf") format("truetype");
7+
font-weight: 400;
8+
font-style: normal;
9+
font-display: swap;
10+
}
11+
12+
@font-face {
13+
font-family: "Jost";
14+
src: url("/font/Jost-Medium.ttf") format("truetype");
15+
font-weight: 500;
16+
font-style: normal;
17+
font-display: swap;
18+
}
19+
20+
@font-face {
21+
font-family: "Jost";
22+
src: url("/font/Jost-SemiBold.ttf") format("truetype");
23+
font-weight: 600;
24+
font-style: normal;
25+
font-display: swap;
26+
}
27+
28+
@font-face {
29+
font-family: "Jost";
30+
src: url("/font/Jost-Bold.ttf") format("truetype");
31+
font-weight: 700;
32+
font-style: normal;
33+
font-display: swap;
34+
}
35+
36+
@font-face {
37+
font-family: "Jost";
38+
src: url("/font/Jost-ExtraBold.ttf") format("truetype");
39+
font-weight: 800;
40+
font-style: normal;
41+
font-display: swap;
42+
}
43+
344
@theme inline {
445
--color-background: var(--background);
546
--color-foreground: var(--foreground);

app/layout.tsx

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @next/next/no-page-custom-font */
21
import "./globals.css";
32
import Script from "next/script";
43

@@ -10,18 +9,6 @@ export default function RootLayout({
109
return (
1110
<html lang="en">
1211
<head>
13-
{/* Google Fonts Preconnect */}
14-
<link rel="preconnect" href="https://fonts.googleapis.com" />
15-
<link
16-
rel="preconnect"
17-
href="https://fonts.gstatic.com"
18-
crossOrigin="anonymous"
19-
/>
20-
<link
21-
href="https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700;800&display=swap"
22-
rel="stylesheet"
23-
/>
24-
2512
{/* DNS Prefetch & Preconnect for Analytics */}
2613
<link rel="dns-prefetch" href="https://www.googletagmanager.com" />
2714
<link rel="dns-prefetch" href="https://www.google-analytics.com" />

public/font/Jost-Black.ttf

60.2 KB
Binary file not shown.

public/font/Jost-BlackItalic.ttf

64.6 KB
Binary file not shown.

public/font/Jost-Bold.ttf

60.2 KB
Binary file not shown.

public/font/Jost-BoldItalic.ttf

64.5 KB
Binary file not shown.

public/font/Jost-ExtraBold.ttf

60.3 KB
Binary file not shown.
64.6 KB
Binary file not shown.

public/font/Jost-ExtraLight.ttf

60.2 KB
Binary file not shown.
64.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)