Update theme fonts

This commit is contained in:
2026-02-09 13:18:33 +00:00
parent 1d1b0ddeef
commit 503fc07178

View File

@@ -1,8 +1,9 @@
import type { Metadata } from "next"; import type { Metadata } from "next";
import { Work_Sans } from "next/font/google";
import "./globals.css"; import "./globals.css";
import { ServiceWrapper } from "@/components/ServiceWrapper"; import { ServiceWrapper } from "@/components/ServiceWrapper";
import Tag from "@/tag/Tag"; import Tag from "@/tag/Tag";
import { Noto_Sans } from "next/font/google";
import { Inter } from "next/font/google";
const workSans = Work_Sans({ const workSans = Work_Sans({
variable: "--font-work-sans", subsets: ["latin"], variable: "--font-work-sans", subsets: ["latin"],
@@ -29,6 +30,15 @@ export const metadata: Metadata = {
} }
}; };
const notoSans = Noto_Sans({
variable: "--font-noto-sans",
subsets: ["latin"],
});
const inter = Inter({
variable: "--font-inter",
subsets: ["latin"],
});
export default function RootLayout({ export default function RootLayout({
children, children,
}: Readonly<{ }: Readonly<{
@@ -37,9 +47,7 @@ export default function RootLayout({
return ( return (
<html lang="en" suppressHydrationWarning> <html lang="en" suppressHydrationWarning>
<ServiceWrapper> <ServiceWrapper>
<body <body className={`${notoSans.variable} ${inter.variable} antialiased`}>
className={`${workSans.variable} antialiased`}
>
<Tag /> <Tag />
{children} {children}