Skip to content

Commit d9c2a22

Browse files
committed
Fix two light-mode rendering bugs flagged by full audit
Toast.svelte: hardcoded bg-[#222228] kept the toast dark in light mode while text-fg-primary flipped to dark text, producing invisible labels. Replaced with bg-bg-elevated so background and text invert together. WallpaperEditor.svelte: "Loading image..." used text-fg-dimmed over a fixed bg-black/40 scrim; the text flipped to dark in light mode while the scrim stayed dark. Switched to text-white/80 per the CLAUDE.md rule ("never theme tokens on a black scrim"). Audit of ~50 components found no other real light-mode regressions.
1 parent 7e41f3d commit d9c2a22

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

frontend/src/lib/components/shared/Toast.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
{#if visible}
2323
<div
24-
class="border-border text-fg-primary fixed bottom-14 left-1/2 z-[100] flex -translate-x-1/2 items-center gap-3 border bg-[#222228] px-4 py-2 text-[12px] shadow-lg"
24+
class="border-border bg-bg-elevated text-fg-primary fixed bottom-14 left-1/2 z-[100] flex -translate-x-1/2 items-center gap-3 border px-4 py-2 text-[12px] shadow-lg"
2525
style="animation: toast-in 150ms ease-out"
2626
role="status"
2727
aria-live="polite"

frontend/src/lib/components/wallpaper-editor/WallpaperEditor.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@
527527
<div
528528
class="absolute inset-0 flex items-center justify-center bg-black/40"
529529
>
530-
<span class="text-fg-dimmed text-[12px]"
530+
<span class="text-[12px] text-white/80"
531531
>Loading image...</span
532532
>
533533
</div>

0 commit comments

Comments
 (0)