diff --git a/app/ThemeRegistry.tsx b/app/ThemeRegistry.tsx
new file mode 100644
index 00000000..873d699e
--- /dev/null
+++ b/app/ThemeRegistry.tsx
@@ -0,0 +1,17 @@
+import { AppRouterCacheProvider } from '@mui/material-nextjs/v13-appRouter';
+import CssBaseline from '@mui/material/CssBaseline';
+import { ThemeProvider } from '@mui/material/styles';
+import theme from '../styles/theme';
+
+// This implementation is from mui integrations with nextjs app router
+// see https://mui.com/material-ui/integrations/nextjs/#app-router
+export default function ThemeRegistry({ children }: { children: React.ReactNode }) {
+ return (
+
+
+
+ {children}
+
+
+ );
+}
diff --git a/app/layout.tsx b/app/layout.tsx
index d61aa7b3..d047a338 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -2,6 +2,8 @@ import GoogleTagManagerScript from '../components/head/GoogleTagManagerScript';
import ErrorBoundary from '../components/layout/ErrorBoundary';
import rootMetadata from './rootMetadata';
import RollbarScript from '../components/head/RollbarScript';
+import ThemeRegistry from './ThemeRegistry';
+import rootMetadata from './rootMetadata';
export const metadata = rootMetadata;
@@ -21,7 +23,9 @@ export default function RootLayout({
*/}
- {children}
+
+ {children}
+