feat: add basic webui
This commit is contained in:
17
packages/design-system/providers/theme.tsx
Normal file
17
packages/design-system/providers/theme.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import type { ThemeProviderProps } from 'next-themes';
|
||||
import { ThemeProvider as NextThemeProvider } from 'next-themes';
|
||||
|
||||
export const ThemeProvider = ({
|
||||
children,
|
||||
...properties
|
||||
}: ThemeProviderProps) => (
|
||||
<NextThemeProvider
|
||||
attribute="class"
|
||||
defaultTheme="system"
|
||||
enableSystem
|
||||
disableTransitionOnChange
|
||||
{...properties}
|
||||
>
|
||||
{children}
|
||||
</NextThemeProvider>
|
||||
);
|
||||
Reference in New Issue
Block a user