Skip to content

Commit 54d6382

Browse files
committed
changes web to only dark mode compatability
1 parent 0d1a5c6 commit 54d6382

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

apps/web/src/app/(home)/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const metadata: Metadata = {
1010

1111
export default function Layout({ children }: { children: ReactNode }) {
1212
return (
13-
<main className="relative z-10 min-h-svh bg-zinc-50 dark:bg-slate-950 transition-colors duration-300 overflow-hidden">
13+
<main className="relative z-10 min-h-svh bg-zinc-50 dark:bg-slate-950 transition-colors duration-300 overflow-hidden dark">
1414
<Navbar />
1515
{children}
1616
<Footer />

apps/web/src/app/global.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
@source '../../../../node_modules/fumadocs-ui/dist/**/*.js';
66

7+
@custom-variant dark (&:where(.dark, .dark *));
8+
79
.bg-noise {
810
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)' opacity='0.4'/%3E%3C/svg%3E");
911
}

0 commit comments

Comments
 (0)