[dyad] Fixing server error by correcting font configuration - wrote 3 file(s)

This commit is contained in:
[dyad]
2026-01-21 13:28:54 +01:00
parent 3fdd48f081
commit 702b7e384d
3 changed files with 7 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ export default function RootLayout({
return ( return (
<html lang="en" suppressHydrationWarning> <html lang="en" suppressHydrationWarning>
<body <body
className={`${GeistSans.variable} ${GeistMono.variable} antialiased`} className={`${GeistSans.variable} ${GeistMono.variable} antialiased font-sans`}
> >
<ThemeProvider <ThemeProvider
attribute="class" attribute="class"

View File

@@ -4,7 +4,7 @@ import { Tags } from "lucide-react";
export default function Home() { export default function Home() {
return ( return (
<div className="flex flex-col min-h-screen font-[family-name:var(--font-geist-sans)] bg-background"> <div className="flex flex-col min-h-screen bg-background">
<main className="flex-grow flex items-center justify-center p-4 sm:p-8"> <main className="flex-grow flex items-center justify-center p-4 sm:p-8">
<div className="flex flex-col gap-8 items-center w-full max-w-6xl"> <div className="flex flex-col gap-8 items-center w-full max-w-6xl">
<div className="text-center space-y-4"> <div className="text-center space-y-4">

View File

@@ -9,6 +9,10 @@ export default {
], ],
theme: { theme: {
extend: { extend: {
fontFamily: {
sans: ["var(--font-geist-sans)"],
mono: ["var(--font-geist-mono)"],
},
colors: { colors: {
background: 'hsl(var(--background))', background: 'hsl(var(--background))',
foreground: 'hsl(var(--foreground))', foreground: 'hsl(var(--foreground))',