Task attempt 6e204469-447f-4543-a0fd-1cd71cc49ee2 - Final changes

This commit is contained in:
Louis Knight-Webb
2025-06-27 21:48:05 +01:00
parent e18a9a04b2
commit 7f5831ca23

View File

@@ -7,13 +7,14 @@ export function Logo({ className = '' }: { className?: string }) {
useEffect(() => {
const updateTheme = () => {
if (theme === 'dark') {
setIsDark(true);
} else if (theme === 'light') {
if (theme === 'light') {
setIsDark(false);
} else {
} else if (theme === 'system') {
// System theme
setIsDark(window.matchMedia('(prefers-color-scheme: dark)').matches);
} else {
// All other themes (dark, purple, green, blue, orange, red) have dark backgrounds
setIsDark(true);
}
};