mirror of
https://github.com/zen-browser/www.git
synced 2025-07-08 17:30:01 +02:00
Merge pull request #267 from henry97113/main
Fix screen flashes when the page loads in dark theme
This commit is contained in:
commit
fdab3ff426
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 StyledComponentsRegistry from "@/lib/styled-components-registry";
|
||||||
import Footer from "@/components/footer";
|
import Footer from "@/components/footer";
|
||||||
import { Navigation } from "@/components/navigation";
|
import { Navigation } from "@/components/navigation";
|
||||||
|
import { ny } from "@/lib/utils";
|
||||||
|
|
||||||
const inter = Inter({ subsets: ["latin"] });
|
const inter = Inter({ subsets: ["latin"] });
|
||||||
|
|
||||||
|
@ -54,7 +55,7 @@ export default async function RootLayout({
|
||||||
href="https://www.zen-browser.app/feed.xml"
|
href="https://www.zen-browser.app/feed.xml"
|
||||||
/>
|
/>
|
||||||
</head>
|
</head>
|
||||||
<body className={inter.className}>
|
<body className={ny("bg-background", inter.className)}>
|
||||||
<ThemeProvider
|
<ThemeProvider
|
||||||
attribute="class"
|
attribute="class"
|
||||||
defaultTheme="system"
|
defaultTheme="system"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue