feat: update theme management across the application; change default theme to 'light', disable system theme option, and add ThemeCard component in settings for enhanced user customization
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 2m23s

This commit is contained in:
Julien Froidefond
2025-12-23 07:59:33 +01:00
parent b2eac21bdf
commit e0597b0dcb
5 changed files with 101 additions and 4 deletions

View File

@@ -4,11 +4,11 @@ import { useTheme } from "next-themes";
import { Toaster as Sonner, ToasterProps } from "sonner";
const Toaster = ({ ...props }: ToasterProps) => {
const { theme = "system" } = useTheme();
const { theme = "light" } = useTheme();
return (
<Sonner
theme={theme as ToasterProps["theme"]}
theme={theme === "system" ? "dark" : (theme as ToasterProps["theme"])}
className="toaster group"
style={
{