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 (