A sun and moon icon button that switches between light and dark mode, with optional text labels.
npx shadcn@latest add @shadcnblocks/theme-toggleShadcn Blocks limits how often it can be asked, and Theme Toggle - Light and dark theme toggle hasn't had its turn. Its source will show here once it has.