🎨 feat: Add Responsive Global Light/Dark Theme Toggle (#408)#433
Merged
Merged
Conversation
|
@Yash191220 is attempting to deploy a commit to the omkh4242g-1671's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Hi @Yash191220, thanks for contributing to Debugra! 🎉 I have automatically:
Our workflows will now analyze your changes to classify:
Tip Ensure your PR description references the issue it resolves (e.g. Happy coding! 🚀 |
Owner
|
@Yash191220 please solve the conflict |
73d8d0f to
3cd1022
Compare
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✦ Summary
This pull request adds full Light Mode support to Debugra, introducing a responsive Dark/Light theme toggle in the navigation bar of both the landing page and the main collaborative editor. The theme preference is persisted across sessions in
localStorageand automatically synchronizes Monaco Editor's theme dynamically betweenvs-darkandvs(light).Fixes #408
🚀 Key Features Implemented
1. Global Theme Context Manager
src/context/ThemeContext.jsx) to handle theme preferences (dark/light).data-themeattribute and syncs selections tolocalStorageunder thedebugra-global-themekey.src/App.jsx).2. Premium Light Mode Aesthetics (
src/index.css)#f3f3f3, pure white cards#ffffff, and sharp charcoal typography#1f1f23).3. Integrated Monaco Theme Syncing (
src/components/Editor/EditorPage.jsx)useEffectinside the editor view to watch the global system theme.vslight mode, and restoring dark theme restores the system dark default (debugra-dark).4. Color-Adaptive System Notifications
react-hot-toast<Toaster>to use color custom properties. Success and error notifications now dynamically adapt their backgrounds, borders, and text colors to the active system theme.5. Code Health & Linter Bug Fixes
src/components/Editor/AudioChannel.jsxwhere the invalid attributeplaysInlinewas used on an<audio>tag. This makes the local repository lint checks completely clean (0 errors!).🛠️ Verification & Code Quality Status
We ran full validation checks to ensure zero code issues are introduced:
npm run format:check: PASS (100% compliant with Prettier layout rules).npm run lint: PASS (Clean compile with zero linter errors).⟡ Screenshots / UI Comparison