Skip to content

Commit

Permalink
add viewport (next 14)
Browse files Browse the repository at this point in the history
  • Loading branch information
JorgeAssaf committed Oct 31, 2023
1 parent 658f166 commit 77bcc77
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Metadata } from "next"
import type { Metadata, Viewport } from "next"
import { env } from "@/env.mjs"
import { ClerkProvider } from "@clerk/nextjs"

Expand Down Expand Up @@ -57,6 +57,14 @@ export const metadata: Metadata = {
},
}

export const viewport: Viewport = {
colorScheme: 'dark light',
themeColor: [
{ media: '(prefers-color-scheme: light)', color: 'white' },
{ media: '(prefers-color-scheme: dark)', color: 'black' },
],
}

export default function RootLayout({ children }: React.PropsWithChildren) {
return (
<>
Expand Down

0 comments on commit 77bcc77

Please sign in to comment.