mirror of
https://github.com/supabase/supabase.git
synced 2026-10-18 15:49:09 +03:00
* init fix * more * more * change storageKey * added deep-dark css selectors as a workaround * update css
39 lines
1.0 KiB
TypeScript
39 lines
1.0 KiB
TypeScript
import '@/styles/globals.css'
|
|
import type { Metadata } from 'next'
|
|
import { Inter } from 'next/font/google'
|
|
import { ThemeProvider } from './Providers'
|
|
import { Toaster } from 'ui'
|
|
import { SonnerToaster } from './SonnerToast'
|
|
|
|
const inter = Inter({ subsets: ['latin'] })
|
|
|
|
export const metadata: Metadata = {
|
|
title: 'Supabase Design System',
|
|
description: 'Generated by create next app',
|
|
}
|
|
|
|
interface RootLayoutProps {
|
|
children: React.ReactNode
|
|
}
|
|
|
|
export default async function Layout({ children }: RootLayoutProps) {
|
|
return (
|
|
<html lang="en" suppressHydrationWarning>
|
|
<head />
|
|
<body className={inter.className}>
|
|
<ThemeProvider
|
|
themes={['dark', 'light', 'classic-dark']}
|
|
defaultTheme="system"
|
|
enableSystem
|
|
>
|
|
<div vaul-drawer-wrapper="">
|
|
<div className="relative flex min-h-screen flex-col bg-background">{children}</div>
|
|
</div>
|
|
<Toaster />
|
|
<SonnerToaster />
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|