mirror of
https://github.com/Mail-0/Zero.git
synced 2026-07-01 08:16:28 +00:00
Add theme color metadata for light and dark mode in mail app layout
This commit is contained in:
@@ -7,6 +7,7 @@ import { siteConfig } from '@/lib/site-config';
|
||||
import { Toast } from '@/components/ui/toast';
|
||||
import { Providers } from '@/lib/providers';
|
||||
import { headers } from 'next/headers';
|
||||
import type { Viewport } from 'next';
|
||||
import { cn } from '@/lib/utils';
|
||||
import './globals.css';
|
||||
|
||||
@@ -22,6 +23,13 @@ const geistMono = Geist_Mono({
|
||||
|
||||
export const metadata = siteConfig;
|
||||
|
||||
export const viewport: Viewport = {
|
||||
themeColor: [
|
||||
{ media: '(prefers-color-scheme: light)', color: '#ffffff' },
|
||||
{ media: '(prefers-color-scheme: dark)', color: '#000000' },
|
||||
],
|
||||
};
|
||||
|
||||
export default async function RootLayout({
|
||||
children,
|
||||
cookies,
|
||||
|
||||
Reference in New Issue
Block a user