diff --git a/apps/react-vite/src/app/provider.tsx b/apps/react-vite/src/app/provider.tsx index d2161b59..8b8654e3 100644 --- a/apps/react-vite/src/app/provider.tsx +++ b/apps/react-vite/src/app/provider.tsx @@ -9,6 +9,7 @@ import { Notifications } from '@/components/ui/notifications'; import { Spinner } from '@/components/ui/spinner'; import { AuthLoader } from '@/lib/auth'; import { queryConfig } from '@/lib/react-query'; +import { ThemeController } from '@/themes/theme-controller'; type AppProviderProps = { children: React.ReactNode; @@ -35,6 +36,7 @@ export const AppProvider = ({ children }: AppProviderProps) => { {import.meta.env.DEV && } + (
diff --git a/apps/react-vite/src/app/routes/app/profile.tsx b/apps/react-vite/src/app/routes/app/profile.tsx index 4c22a485..e9f7cc54 100644 --- a/apps/react-vite/src/app/routes/app/profile.tsx +++ b/apps/react-vite/src/app/routes/app/profile.tsx @@ -9,7 +9,7 @@ type EntryProps = { const Entry = ({ label, value }: EntryProps) => (
{label}
-
+
{value}
@@ -22,7 +22,7 @@ export const ProfileRoute = () => { return ( -
+

diff --git a/apps/react-vite/src/app/routes/landing.tsx b/apps/react-vite/src/app/routes/landing.tsx index a32b2258..490ce609 100644 --- a/apps/react-vite/src/app/routes/landing.tsx +++ b/apps/react-vite/src/app/routes/landing.tsx @@ -20,9 +20,9 @@ export const LandingRoute = () => { return ( <> -
+
-

+

Bulletproof React

react diff --git a/apps/react-vite/src/components/layouts/auth-layout.tsx b/apps/react-vite/src/components/layouts/auth-layout.tsx index a83375d6..8adadc60 100644 --- a/apps/react-vite/src/components/layouts/auth-layout.tsx +++ b/apps/react-vite/src/components/layouts/auth-layout.tsx @@ -28,7 +28,7 @@ export const AuthLayout = ({ children, title }: LayoutProps) => { return ( <> -
+
@@ -36,13 +36,13 @@ export const AuthLayout = ({ children, title }: LayoutProps) => {
-

+

{title}

-
+
{children}
diff --git a/apps/react-vite/src/components/layouts/dashboard-layout.tsx b/apps/react-vite/src/components/layouts/dashboard-layout.tsx index de1949cd..8436f201 100644 --- a/apps/react-vite/src/components/layouts/dashboard-layout.tsx +++ b/apps/react-vite/src/components/layouts/dashboard-layout.tsx @@ -179,13 +179,17 @@ export function DashboardLayout({ children }: { children: React.ReactNode }) { navigate('./profile')} - className={cn('block px-4 py-2 text-sm text-gray-700')} + className={cn( + 'block px-4 py-2 text-sm text-gray-700 dark:text-slate-100', + )} > Your Profile logout.mutate({})} > Sign Out diff --git a/apps/react-vite/src/components/ui/button/button.tsx b/apps/react-vite/src/components/ui/button/button.tsx index 55b4eada..37fbabde 100644 --- a/apps/react-vite/src/components/ui/button/button.tsx +++ b/apps/react-vite/src/components/ui/button/button.tsx @@ -12,7 +12,7 @@ const buttonVariants = cva( variants: { variant: { default: - 'bg-primary text-primary-foreground shadow hover:bg-primary/90', + 'bg-primary text-primary-foreground shadow hover:bg-primary/90 dark:bg-slate-700 dark:text-slate-100 hover:dark:bg-slate-600', destructive: 'bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90', outline: diff --git a/apps/react-vite/src/components/ui/form/select.tsx b/apps/react-vite/src/components/ui/form/select.tsx index 6b38621a..8d21d811 100644 --- a/apps/react-vite/src/components/ui/form/select.tsx +++ b/apps/react-vite/src/components/ui/form/select.tsx @@ -24,7 +24,7 @@ export const Select = (props: SelectFieldProps) => {