From 67b131e648a0c425ab4e160bc7789022f57f2c45 Mon Sep 17 00:00:00 2001 From: "[dyad]" Date: Tue, 20 Jan 2026 15:56:51 +0100 Subject: [PATCH] [dyad] Added system theme option - wrote 1 file(s) --- src/components/theme-toggle.tsx | 37 ++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 10 deletions(-) diff --git a/src/components/theme-toggle.tsx b/src/components/theme-toggle.tsx index fbb5992..d5e7fe9 100644 --- a/src/components/theme-toggle.tsx +++ b/src/components/theme-toggle.tsx @@ -5,19 +5,36 @@ import { Moon, Sun } from "lucide-react" import { useTheme } from "next-themes" import { Button } from "@/components/ui/button" +import { + DropdownMenu, + DropdownMenuContent, + DropdownMenuItem, + DropdownMenuTrigger, +} from "@/components/ui/dropdown-menu" export function ThemeToggle() { - const { setTheme, theme } = useTheme() + const { setTheme } = useTheme() return ( - + + + + + + setTheme("light")}> + Light + + setTheme("dark")}> + Dark + + setTheme("system")}> + System + + + ) } \ No newline at end of file