Skip to content

Commit

Permalink
revert: theme fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iCrawl committed Nov 30, 2022
1 parent 2cb1000 commit 72c30d1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 38 deletions.
33 changes: 15 additions & 18 deletions apps/website/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// import { ServerThemeProvider } from 'next-themes';
import { ServerThemeProvider } from 'next-themes';
import type { PropsWithChildren } from 'react';
import { Providers } from './providers';

import '@unocss/reset/tailwind.css';
import '../styles/inter.css';
Expand All @@ -10,21 +9,19 @@ import '../styles/main.css';

export default function RootLayout({ children }: PropsWithChildren) {
return (
// <ServerThemeProvider
// attribute="class"
// defaultTheme="system"
// disableTransitionOnChange
// value={{
// light: 'light',
// dark: 'dark',
// }}
// >
<html lang="en">
<head />
<body className="dark:bg-dark-800 bg-white">
<Providers>{children}</Providers>
</body>
</html>
// </ServerThemeProvider>
<ServerThemeProvider
attribute="class"
defaultTheme="system"
disableTransitionOnChange
value={{
light: 'light',
dark: 'dark',
}}
>
<html lang="en">
<head />
<body className="dark:bg-dark-800 bg-white">{children}</body>
</html>
</ServerThemeProvider>
);
}
20 changes: 0 additions & 20 deletions apps/website/src/app/providers.tsx

This file was deleted.

1 comment on commit 72c30d1

@vercel
Copy link

@vercel vercel bot commented on 72c30d1 Nov 30, 2022

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.