Skip to content

Commit

Permalink
fix color scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
gokulkrishh committed Jan 14, 2024
1 parent bbf2a3e commit a352114
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/dashboard/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default async function Layout({ children }: any) {
<body className={`${inter.className} flex h-full flex-col text-gray-600 antialiased`}>
<NextTopLoader color="#0076ff" height={2} showSpinner={false} />
<AuthProvider user={user} accessToken={session?.access_token || null}>
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
<ThemeProvider enableColorScheme attribute="class" defaultTheme="system" enableSystem>
<main className="relative flex min-h-full min-w-full bg-background">
<DashboardLayout>
<SidebarContextProvider>
Expand Down
8 changes: 4 additions & 4 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ export const viewport: Viewport = {
initialScale: 1,
userScalable: false,
themeColor: [
{
media: '(prefers-color-scheme: dark)',
color: '#09090b',
},
{
media: '(prefers-color-scheme: light)',
color: '#ffffff',
},
{
media: '(prefers-color-scheme: dark)',
color: '#09090b',
},
],
};

Expand Down

1 comment on commit a352114

@vercel
Copy link

@vercel vercel bot commented on a352114 Jan 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.