From d11f9e4971c8cb0fd70fae42c1235891f1ae808d Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Fri, 12 Sep 2025 15:01:57 +0200 Subject: [PATCH] Fix font --- web/pages/_app.tsx | 12 ++++++------ web/styles/globals.css | 3 +-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/web/pages/_app.tsx b/web/pages/_app.tsx index 0efee78a..293fccc9 100644 --- a/web/pages/_app.tsx +++ b/web/pages/_app.tsx @@ -24,11 +24,11 @@ const logoFont = Major_Mono_Display({ subsets: ['latin'], }) -const mainFont = Figtree({ - weight: ['300', '400', '500', '600', '700'], - variable: '--font-main', - subsets: ['latin'], -}) +// const mainFont = Figtree({ +// weight: ['300', '400', '500', '600', '700'], +// variable: '--font-main', +// subsets: ['latin'], +// }) function printBuildInfo() { // These are undefined if e.g. dev server @@ -110,7 +110,7 @@ function MyApp({ Component, pageProps }: AppProps) { className={clsx( 'contents font-normal', logoFont.variable, - mainFont.variable + // mainFont.variable )} > diff --git a/web/styles/globals.css b/web/styles/globals.css index 826c841a..93de7219 100644 --- a/web/styles/globals.css +++ b/web/styles/globals.css @@ -2,7 +2,6 @@ @tailwind components; @tailwind utilities; -/*make var font-main*/ :root { --font-main: "Crimson Pro", Georgia, "Times New Roman", Times, serif; } @@ -13,7 +12,7 @@ @layer base { body { - font-family: "Crimson Pro", Georgia, "Times New Roman", Times, serif; + font-family: var(--font-main), serif; } button, input, label {