From 54a971e3b149ebb73a4e2f4ba7756b5418579332 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 10 Mar 2026 09:14:35 +0800 Subject: [PATCH] remove google font build dependency --- app/globals.css | 4 ++++ app/layout.tsx | 14 -------------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/app/globals.css b/app/globals.css index f4796f920..73bd7d791 100644 --- a/app/globals.css +++ b/app/globals.css @@ -13,6 +13,10 @@ /* define design tokens (light mode) */ :root { + --font-geist: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", + "Helvetica Neue", Arial, sans-serif; + --font-geist-mono: "SFMono-Regular", "SF Mono", Menlo, Monaco, Consolas, + "Liberation Mono", "Courier New", monospace; --background: hsl(0 0% 100%); --foreground: hsl(240 10% 3.9%); --card: hsl(0 0% 100%); diff --git a/app/layout.tsx b/app/layout.tsx index 29935272d..4f512b6a5 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,5 +1,4 @@ import type { Metadata } from "next"; -import { Geist, Geist_Mono } from "next/font/google"; import { Toaster } from "sonner"; import { ThemeProvider } from "@/components/theme-provider"; import { FaviconUpdater } from "@/components/favicon-updater"; @@ -42,18 +41,6 @@ export const viewport = { maximumScale: 1, // Disable auto-zoom on mobile Safari }; -const geist = Geist({ - subsets: ["latin"], - display: "swap", - variable: "--font-geist", -}); - -const geistMono = Geist_Mono({ - subsets: ["latin"], - display: "swap", - variable: "--font-geist-mono", -}); - const LIGHT_THEME_COLOR = "hsl(0 0% 100%)"; const DARK_THEME_COLOR = "hsl(240deg 10% 3.92%)"; const THEME_COLOR_SCRIPT = `\ @@ -161,7 +148,6 @@ export default async function RootLayout({ return (