feat: add unified dark mode with system preference detection#58
Open
Mou7s wants to merge 4 commits into
Open
Conversation
- Add CSS variables for dark mode in shared.css and plan-usage.css - Add dark mode toggle in settings panel (shared.js) - Auto-follow system prefers-color-scheme when user hasn't manually toggled - Persist manual choice in localStorage - Adapt table, filter, recommendation card, feedback panel for dark mode - Cover index.html, coding-agents.html inline styles
- Fix dark mode for form inputs, selects, textareas in all pages - Fix dark mode for records table in plan-usage.html - Fix dark mode for relay cards, matrix tables, filter inputs - Fix dark mode for result cards, toast, lightbox components
- Add styles/dark-mode.css as single source of dark mode overrides - Generic table styles (th/td/tr) cover .records-table, .comparison-table, .models-mini-table across all pages - Page-specific overrides for index, plan-usage, coding-agents, relays, relay-detect, and article pages - Auto-follow system prefers-color-scheme on first visit - Manual toggle saved to localStorage for subsequent visits - Clean up ~500 lines of scattered inline dark mode blocks from HTML files - Add serve.ts to .gitignore
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.
为全站添加统一的深色模式支持。
架构
覆盖页面(12个)
行为