mirror of
https://github.com/zen-browser/www.git
synced 2025-07-08 09:20:00 +02:00
Refactor layout component to add dark mode support
This commit is contained in:
parent
cbd36b503f
commit
2801ebbc28
1 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@ import { ThemeProvider } from "@/components/theme-provider";
|
|||
import StyledComponentsRegistry from "@/lib/styled-components-registry";
|
||||
import Footer from "@/components/footer";
|
||||
import { Navigation } from "@/components/navigation";
|
||||
import { ny } from "@/lib/utils";
|
||||
|
||||
const inter = Inter({ subsets: ["latin"] });
|
||||
|
||||
|
@ -35,7 +36,7 @@ export default async function RootLayout({
|
|||
href="https://www.zen-browser.app/feed.xml"
|
||||
/>
|
||||
</head>
|
||||
<body className={inter.className}>
|
||||
<body className={ny(inter.className, 'dark')}>
|
||||
<ThemeProvider attribute="class" defaultTheme="dark">
|
||||
<StyledComponentsRegistry>
|
||||
<div className="mt-5">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue