Skip to content

Commit 24db793

Browse files
Adopt editorial display and body font pairing
1 parent 377f207 commit 24db793

File tree

7 files changed

+22
-10
lines changed

7 files changed

+22
-10
lines changed
56.5 KB
Binary file not shown.
56.5 KB
Binary file not shown.
56.5 KB
Binary file not shown.
56.5 KB
Binary file not shown.
101 KB
Binary file not shown.

web/app/globals.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ html {
3232

3333
body {
3434
margin: 0;
35+
font-weight: 400;
36+
letter-spacing: 0.005em;
3537
color: var(--ink);
3638
background:
3739
linear-gradient(to right, transparent 80px, rgba(185, 174, 195, 0.45) 80px, rgba(185, 174, 195, 0.45) 81px, transparent 81px, transparent calc(100% - 81px), rgba(185, 174, 195, 0.45) calc(100% - 81px), rgba(185, 174, 195, 0.45) calc(100% - 80px), transparent calc(100% - 80px)),
@@ -104,8 +106,8 @@ a {
104106
gap: 10px;
105107
font-family: var(--font-serif);
106108
font-size: 18px;
107-
font-style: italic;
108-
font-weight: 500;
109+
font-style: normal;
110+
font-weight: 400;
109111
letter-spacing: 0.01em;
110112
color: var(--muted);
111113
}
@@ -121,8 +123,8 @@ a {
121123

122124
.brand-accent {
123125
font-family: var(--font-serif);
124-
font-style: italic;
125-
font-weight: 600;
126+
font-style: normal;
127+
font-weight: 400;
126128
}
127129

128130
.button-primary {

web/app/layout.tsx

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,26 @@
11
import type { Metadata } from "next";
2-
import { Cormorant_Garamond, IBM_Plex_Mono, Manrope } from "next/font/google";
2+
import localFont from "next/font/local";
3+
import { IBM_Plex_Mono } from "next/font/google";
34

45
import { Nav } from "@/components/nav";
56
import { Providers } from "@/components/providers";
67
import { SiteFooter } from "@/components/site-footer";
78
import "./globals.css";
89

9-
const manrope = Manrope({ subsets: ["latin"], variable: "--font-sans" });
10-
const cormorant = Cormorant_Garamond({
11-
subsets: ["latin"],
10+
const josefinSans = localFont({
11+
src: [
12+
{ path: "./fonts/JosefinSans-Light.ttf", weight: "300", style: "normal" },
13+
{ path: "./fonts/JosefinSans-Regular.ttf", weight: "400", style: "normal" },
14+
{ path: "./fonts/JosefinSans-Medium.ttf", weight: "500", style: "normal" },
15+
{ path: "./fonts/JosefinSans-SemiBold.ttf", weight: "600", style: "normal" }
16+
],
17+
variable: "--font-sans",
18+
display: "swap"
19+
});
20+
const yesevaOne = localFont({
21+
src: [{ path: "./fonts/YesevaOne-Regular.ttf", weight: "400", style: "normal" }],
1222
variable: "--font-serif",
13-
weight: ["400", "500", "600", "700"]
23+
display: "swap"
1424
});
1525
const plexMono = IBM_Plex_Mono({ subsets: ["latin"], variable: "--font-mono", weight: ["400", "500"] });
1626

@@ -51,7 +61,7 @@ export const metadata: Metadata = {
5161

5262
export default function RootLayout({ children }: { children: React.ReactNode }) {
5363
return (
54-
<html lang="en" className={`${manrope.variable} ${cormorant.variable} ${plexMono.variable}`}>
64+
<html lang="en" className={`${josefinSans.variable} ${yesevaOne.variable} ${plexMono.variable}`}>
5565
<body className="font-[var(--font-sans)] text-[var(--ink)]">
5666
<Providers>
5767
<Nav />

0 commit comments

Comments
 (0)