diff --git a/src/app/globals.css b/src/app/globals.css index fb4bd21..786bff6 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -14,6 +14,12 @@ } } +/* Dark mode with class strategy */ +.dark { + --foreground: #ededed; + --background: #0a0a0a; +} + body { color: var(--foreground); background: var(--background); diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 17200f3..fb17b44 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -14,8 +14,8 @@ export default function RootLayout({ children: React.ReactNode; }) { return ( - - + + {children} diff --git a/src/app/providers.tsx b/src/app/providers.tsx index 98f8bf5..26e1d5a 100644 --- a/src/app/providers.tsx +++ b/src/app/providers.tsx @@ -2,6 +2,7 @@ import React, { createContext, useContext, useState, useCallback, useEffect } from "react"; import { connectWallet, getPublicKey, isFreighterInstalled } from "@/lib/wallet"; +import { ThemeProvider } from "@/components/ThemeProvider"; interface WalletContextType { address: string | null; @@ -54,7 +55,7 @@ export function Providers({ children }: { children: React.ReactNode }) { disconnect, }} > - {children} + {children} ); } diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index 2d673aa..907450a 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -2,32 +2,36 @@ import Link from "next/link"; import { ConnectWallet } from "./ConnectWallet"; +import { ThemeToggle } from "./ThemeToggle"; export function Navbar() { return ( -