gbclient/app/layout.tsx
Rodrigo Rodriguez (Pragmatismo) 70a369ad04
Some checks failed
GBCI / build (push) Failing after 1m48s
feat: Refactor theme management and add multiple themes
- Updated the layout to integrate a new ThemeProvider component.
- Removed the old ModeToggle component and integrated theme selection directly into the ThemeProvider.
- Deleted unused SVG files (tauri.svg, vite.svg) and the old mode-toggle and theme-provider components.
- Added a comprehensive ThemeProvider that supports multiple themes with corresponding CSS files.
- Created new theme CSS files for various themes including RetroWave, CyberPunk, and more.
- Updated tsconfig.json to include new component paths for better type checking.
- Ensured the application loads the saved theme from localStorage on startup.
2025-06-21 19:06:13 -03:00

23 lines
No EOL
584 B
TypeScript

import { Nav } from './client-nav';
import './globals.css';
import './globals.css' // This path is correct if the file is in your src/app directory
import { ReactNode } from 'react'
import { ThemeProvider } from './theme-provider';
export default function RootLayout({ children }: { children: ReactNode }) {
return (
<html lang="en">
<body className='flex flex-col min-h-screen'>
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
<Nav />
{children}
</ThemeProvider>
</body>
</html>
)
}