jake committed 2025-05-06 19:07:23 -04:00
1 parent bea2a55f77
commit a08ec532b3
9 files changed
+93 -34

No files matched your search

+4 -3
View File
@@ -12,11 +12,12 @@ const ThemeToggle = ({ ...rest }: ComponentPropsWithoutRef<LucideIcon>) => {
return (
<button
onClick={() => setTheme(theme === "light" ? "dark" : "light")}
aria-label="Toggle Theme"
aria-label="Toggle theme"
className="hover:*:stroke-warning block bg-transparent p-2.5 hover:cursor-pointer not-dark:[&_.lucide-moon]:hidden dark:[&_.lucide-sun]:hidden"
>
<SunIcon aria-label="Light Mode" {...rest} />
<MoonIcon aria-label="Dark Mode" {...rest} />
<SunIcon {...rest} />
<MoonIcon {...rest} />
<span className="sr-only">Toggle theme</span>
</button>
);
};