[dyad] Fixing server error by correcting font configuration - wrote 3 file(s)
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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">
|
||||||
|
|||||||
@@ -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))',
|
||||||
@@ -91,4 +95,4 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
plugins: [require("tailwindcss-animate")],
|
plugins: [require("tailwindcss-animate")],
|
||||||
} satisfies Config;
|
} satisfies Config;
|
||||||
Reference in New Issue
Block a user