Add dark mode toggle to ElevenLabs site template#23
Conversation
WalkthroughAdds client-side theming to the Next.js text-to-speech app: a ThemeProvider component that manages light/dark state (persisted to localStorage and responsive to system preferences), a ThemeToggle button component, wraps the root layout with the provider, updates the page to include the toggle in the header and reduces vertical padding, and extends globals.css with a custom dark variant plus global transition and reduced-motion rules. Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Meldiron
left a comment
There was a problem hiding this comment.
Approved.
Design nitpick, there seems to be slign animation when switching modes. Lets try to find quick fix, if complex, good enough.
Transition is now applied consistently everywhere |
What does this PR do?
Adds dark mode toggle to ElevenLabs site template
Test Plan
Related PRs and Issues
#22
Have you read the Contributing Guidelines on issues?
Yes
Summary by CodeRabbit
New Features
Style