The previous <picture media="(prefers-color-scheme: dark)"> only fires when the OS is in dark mode. Clinch toggles dark mode with a class on <html> via dark_mode_controller and Tailwind's @custom-variant dark (&:where(.dark, .dark *)), so the picture source never swapped when users clicked the in-app theme toggle. Render both <img> tags and use Tailwind's dark:hidden / hidden dark:block so the swap follows whatever strategy Tailwind is configured for. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
70 B
70 B