Add minimalist theme switcher with rich/minimal theme options#2
Closed
Add minimalist theme switcher with rich/minimal theme options#2
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Owner
|
no option for the switcher check it |
Co-authored-by: Akshit2004 <83849030+Akshit2004@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] add a minimlaist theme switcher with current theme being not minimal
Add minimalist theme switcher with rich/minimal theme options
Jul 4, 2025
Author
The theme switcher is working correctly. It's visible on the landing page in the top navigation and fully functional - switching between "Rich" and "Minimal" themes. On the editor page, it's hidden until a PDF is uploaded (which is the intended behavior). The dependencies needed to be installed with |
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.
Implements a theme switcher that allows users to toggle between a rich theme (current design) and a new minimal theme for better accessibility and user preference.
🎨 Features Added
Theme Switcher Component
Two Theme Options
Rich Theme (Default):
Minimal Theme (New):
🔧 Technical Implementation
Architecture
theme-rich/theme-minimal) for stylingFiles Added
src/context/ThemeContext.jsx- Theme state managementsrc/components/ThemeSwitcher.jsx- Toggle button componentFiles Modified
src/App.jsx- Added ThemeProvider wrappersrc/pages/landing page/landing.jsx- Added theme switcher to navigationsrc/pages/PDF-Editor/editor.jsx- Added theme switcher to editor headersrc/pages/landing page/landing.css- Added minimal theme stylessrc/pages/PDF-Editor/editor.css- Added minimal theme styles📸 Visual Comparison
Rich Theme (Default)
Minimal Theme (New)
✅ Testing
🚀 User Experience
The theme switcher provides users with choice over their visual experience:
Theme choice is remembered across sessions, ensuring a consistent user experience.
Resolves the requirement to "add a minimalist theme switcher with current theme being not minimal" by making the current rich theme the default and providing a new minimal alternative.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.