Adding Dark Mode: Tailwind v4, Flash Prevention, and the Toggle That Did Nothing
Implementing dark mode on a SvelteKit blog with Tailwind CSS v4, including flash-of-wrong-theme prevention, a system-preference-aware toggle, and the debugging session that followed when clicking the toggle button did absolutely nothing in production.