I didn't know how to switch between dark, light, and system themes in Tailwind CSS v4. So, when I finally learned how, I decided to share! Hope this helps!
Once you have cloned the repository you can:
cd tailwindcss-v4-sveltekit-theme-switcher-example
npm install
npm run dev