Switch back to next fonts in layout
This commit is contained in:
parent
69567fcd3f
commit
9ad90aaa8d
4 changed files with 20 additions and 23 deletions
|
|
@ -2,6 +2,18 @@ import type { Metadata } from "next";
|
|||
import { DM_Sans, Playfair_Display } from "next/font/google"; // Import your specific fonts
|
||||
import "./globals.css";
|
||||
|
||||
const dmSans = DM_Sans({
|
||||
variable: "--font-dm-sans",
|
||||
subsets: ["latin"],
|
||||
display: "swap",
|
||||
});
|
||||
|
||||
const playfair = Playfair_Display({
|
||||
variable: "--font-playfair",
|
||||
subsets: ["latin"],
|
||||
display: "swap",
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Create Next App",
|
||||
description: "Generated by create next app",
|
||||
|
|
@ -16,7 +28,7 @@ export default function RootLayout({
|
|||
<html
|
||||
lang="en"
|
||||
// Add the new font variables here
|
||||
className={`h-full antialiased`}
|
||||
className={`${dmSans.variable} ${playfair.variable} h-full antialiased`}
|
||||
>
|
||||
<body className="min-h-full h-full flex flex-col">{children}</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue