Feature/dark mode support#36
Conversation
📝 WalkthroughWalkthroughThe PR implements dark mode support by introducing a ModeToggle component that toggles theme via localStorage and DOM manipulation, adds dark-mode Tailwind variants across components and pages, establishes automatic OS preference detection through a root-level script, and updates styling for consistent light/dark appearance. Changes
Sequence DiagramsequenceDiagram
participant User as User/Browser
participant Layout as Root Layout Script
participant LocalStorage as localStorage
participant OS as OS Preferences
participant DOM as Document DOM
participant Toggle as ModeToggle Component
participant App as Application UI
User->>Layout: Page Load
activate Layout
Layout->>LocalStorage: Read 'theme' value
LocalStorage-->>Layout: theme (or null)
Layout->>OS: Check prefers-color-scheme
OS-->>Layout: 'dark' or 'light'
Layout->>DOM: Apply/remove 'dark' class
deactivate Layout
DOM-->>App: Render with theme
User->>Toggle: Click theme toggle button
activate Toggle
Toggle->>DOM: Get current 'dark' class state
DOM-->>Toggle: class info
Toggle->>Toggle: Flip theme state
Toggle->>DOM: Add/remove 'dark' class
Toggle->>LocalStorage: Persist theme choice
deactivate Toggle
DOM-->>App: Re-render with new theme
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 🧹 Recent nitpick comments
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. 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 |
|
@Zahnentferner plz review this and i am not able to message in stability nexus channel , kindly resolve the issue. |
Addressed Issues:
Fixes #35
Screenshots/Recordings:
Additional Notes:
Checklist
We encourage contributors to use AI tools responsibly when creating Pull Requests. While AI can be a valuable aid, it is essential to ensure that your contributions meet the task requirements, build successfully, include relevant tests, and pass all linters. Submissions that do not meet these standards may be closed without warning to maintain the quality and integrity of the project. Please take the time to understand the changes you are proposing and their impact.
Summary by CodeRabbit
New Features
Style