Skip to content

Commit 2a45120

Browse files
voidcraft-devclaude
andcommitted
fix: logo adapts to light/dark theme — no more black block on light themes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 477fe83 commit 2a45120

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

src/components/logo.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
import { cn } from "@/lib/utils"
22

33
export function AppLogo({ className }: { className?: string }) {
4+
const isDark = document.documentElement.style.colorScheme !== "light"
5+
const bgColor = isDark ? "#1C1917" : "#F5F0EB"
6+
const gradientFrom = isDark ? "#F97316" : "#EA580C"
7+
const gradientTo = isDark ? "#DC2626" : "#C2410C"
8+
49
return (
510
<svg
611
viewBox="0 0 512 512"
@@ -9,11 +14,11 @@ export function AppLogo({ className }: { className?: string }) {
914
>
1015
<defs>
1116
<radialGradient id="logo-fg" cx="42%" cy="38%">
12-
<stop offset="0%" stopColor="#F97316" />
13-
<stop offset="100%" stopColor="#DC2626" />
17+
<stop offset="0%" stopColor={gradientFrom} />
18+
<stop offset="100%" stopColor={gradientTo} />
1419
</radialGradient>
1520
</defs>
16-
<rect width="512" height="512" rx="96" fill="#1C1917" />
21+
<rect width="512" height="512" rx="96" fill={bgColor} />
1722
<path
1823
fillRule="evenodd"
1924
d="M 72,184 C 72,120 120,72 184,72 L 328,72 C 392,72 440,120 440,184 L 440,328 C 440,392 392,440 328,440 L 184,440 C 120,440 72,392 72,328 Z M 156,380 L 156,164 L 256,316 L 356,164 L 356,380 L 308,380 L 308,224 L 256,344 L 204,224 L 204,380 Z"

0 commit comments

Comments
 (0)