Skip to content

Commit d9d19d7

Browse files
PavelLaptevkrlvi
authored andcommitted
remove PP Editorial font
1 parent 1ed1c1d commit d9d19d7

File tree

5 files changed

+7
-42
lines changed

5 files changed

+7
-42
lines changed

app/global.css

+3-14
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
--clr-light-gray: #f1f1ed;
1717
/* accent */
1818
--clr-accent: #97eae5;
19-
--clr-err-50: #DC606B;
20-
--clr-warn-50: #DC9B14;
19+
--clr-err-50: #dc606b;
20+
--clr-warn-50: #dc9b14;
2121
--font-system: system-ui, sans-serif;
2222
}
2323

@@ -53,19 +53,8 @@ body {
5353
}
5454
}
5555

56-
/* Prev / Next Cards at bottom of every page */
57-
article div:last-of-type:is(.grid.grid-cols-2) a>p:last-of-type {
58-
@apply !font-ppeditorial text-base;
59-
}
60-
61-
/* Headers Serif */
62-
h1,
63-
h2 {
64-
@apply !font-ppeditorial;
65-
}
66-
6756
iframe[src*="youtube"] {
6857
aspect-ratio: 16 / 9;
6958
border-radius: 0.5rem;
70-
@apply w-full h-full;
59+
@apply h-full w-full;
7160
}

app/layout.tsx

+4-20
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import "./global.css"
22
import { Provider } from "./provider"
3-
import localFont from "next/font/local"
4-
import { Inter } from 'next/font/google'
3+
import { Inter } from "next/font/google"
54
import type { Metadata, Viewport } from "next"
65
import type { ReactNode } from "react"
76

@@ -11,29 +10,14 @@ const baseUrl =
1110
: new URL(`https://${process.env.VERCEL_URL}`)
1211

1312
const inter = Inter({
14-
subsets: ['latin'],
15-
display: 'swap',
13+
subsets: ["latin"],
14+
display: "swap",
1615
variable: "--font-inter"
1716
})
1817

19-
const ppEditorialNew = localFont({
20-
src: [
21-
{
22-
path: "../public/fonts/PPEditorialNew-Regular.woff2",
23-
weight: "300"
24-
},
25-
{
26-
path: "../public/fonts/PPEditorialNew-Italic.woff2",
27-
weight: "300",
28-
style: "italic"
29-
}
30-
],
31-
variable: "--font-ppeditorialnew"
32-
})
33-
3418
export default function Layout({ children }: { children: ReactNode }) {
3519
return (
36-
<html lang="en" className={`${ppEditorialNew.variable} ${inter.variable}`} suppressHydrationWarning>
20+
<html lang="en" className={`${inter.variable}`} suppressHydrationWarning>
3721
<body>
3822
<Provider>{children}</Provider>
3923
</body>
-25.9 KB
Binary file not shown.
-24.9 KB
Binary file not shown.

tailwind.config.js

-8
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,5 @@ export default {
1010
"./node_modules/fumadocs-ui/dist/**/*.js",
1111
"./node_modules/fumadocs-openapi/dist/**/*.js"
1212
],
13-
theme: {
14-
extend: {
15-
fontFamily: {
16-
sans: ["var(--font-inter)", "var(--font-system)"],
17-
ppeditorial: ["var(--font-ppeditorialnew)"]
18-
}
19-
}
20-
},
2113
presets: [createPreset()]
2214
}

0 commit comments

Comments
 (0)