Add light/dark mode switcher with persistent theme preference#20
Draft
Copilot wants to merge 7 commits into
Draft
Add light/dark mode switcher with persistent theme preference#20Copilot wants to merge 7 commits into
Copilot wants to merge 7 commits into
Conversation
Deploying pokecards-collector with
|
| Latest commit: |
5e21bfe
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://c9820438.pokecards-collector.pages.dev |
| Branch Preview URL: | https://copilot-fix-1ad71773-2708-4d.pokecards-collector.pages.dev |
Co-authored-by: Ayfri <34159136+Ayfri@users.noreply.github.com>
Co-authored-by: Ayfri <34159136+Ayfri@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add a light/dark mode switcher
Add light/dark mode switcher with persistent theme preference
Jul 4, 2025
Owner
|
@copilot many components are missing dark theme support |
…mponents Co-authored-by: Ayfri <34159136+Ayfri@users.noreply.github.com>
Co-authored-by: Ayfri <34159136+Ayfri@users.noreply.github.com>
Co-authored-by: Ayfri <34159136+Ayfri@users.noreply.github.com>
Author
I've added comprehensive dark mode support to all missing components throughout the application. The updates include: Filter & Search Components:
Card Components:
UI Components:
All components now properly support both light and dark themes with appropriate color adjustments for borders, backgrounds, and text. The changes maintain the existing design language while providing proper contrast and readability in both modes. Commits: |
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 complete light/dark mode theme switcher for the PokéCards Collector application using Tailwind CSS dark mode classes and localStorage persistence.
Features Added
🌓 Theme Toggle Component
💾 Persistent Theme Storage
persistentWritableutility🎨 Complete UI Theme Support
Implementation Details
New Files
src/lib/stores/theme.ts- Theme state managementsrc/lib/components/ThemeToggle.svelte- Toggle componentModified Files
tailwind.config.mjs- AddeddarkMode: 'class'src/routes/+layout.svelte- Theme application logicsrc/lib/components/Header.svelte- Added toggle and updated colorssrc/app.css- Light mode body background supportdark:variants for backgrounds, text colors, and bordersScreenshots
Dark Mode (Default)
Light Mode
Technical Notes
dark:prefix conventionThe theme switcher provides users with a modern, accessible way to customize their viewing experience while maintaining the app's existing design language. Every component now properly adapts to the selected theme with appropriate colors for optimal readability and visual consistency.
💡 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.