-
Notifications
You must be signed in to change notification settings - Fork 7
feat: implement light/dark mode theme switching #200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
snomiao
wants to merge
8
commits into
main
Choose a base branch
from
sno-light-mode
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- Add ThemeProvider with system preference detection - Create ThemeSwitcher component with sun/moon icons - Update header styling to support theme switching - Configure Tailwind CSS for dark mode support - Refactor theme configurations for reusability - Update global styles for proper theme transitions 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
8eb64de
to
6efb8da
Compare
This commit includes all changes for the light/dark mode feature: - Updated theme configuration and switcher component - Modified header components to support theme switching - Updated all admin pages and node detail pages with theme support - Added unified breadcrumb component - Removed obsolete storybook stories - Fixed Chinese translation for "Light" mode (轻量级 -> 浅色) - Fixed linting errors in preempted-comfy-node-names and node-version-compatibility 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
…to sno-light-mode
Resolved conflicts by: - Keeping light/dark mode implementation from sno-light-mode branch - Accepting updated translations from main branch (includes new "Contribute" keys) - Removed obsolete RegistryStory.tsx file - Fixed linting errors in admin pages The merge brings in translation improvements and new features from main while preserving all light/dark mode theme switching functionality. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
- Remove problematic CustomThemeBreadcrumb theme prop from UnifiedBreadcrumb - Add named export for UnifiedBreadcrumb component - Fix onClick event handler type to accept React.MouseEvent - Update all admin pages to remove invalid router parameter from breadcrumb helper functions - Fix useSearchParameter calls to return string instead of undefined - Fix CreatePublisherModal prop name from openModal to open 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
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
• Add ThemeProvider with system preference detection and localStorage persistence
• Create ThemeSwitcher component with sun/moon/desktop icons for auto/light/dark modes
• Update header styling to support dynamic theme switching
• Configure Tailwind CSS for class-based dark mode support
• Refactor existing theme configurations to use centralized themeConfig
• Update global styles for proper theme transitions across the application
Test plan
🤖 Generated with Claude Code