docs: document dark theme behavior#270
Merged
Merged
Conversation
Document initial theme resolution, persisted preference behavior, and CSS token switching in synchronized English and Japanese Web UI design guides.\n\nVerification: git diff --check and implementation-to-documentation review.
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
ダークモードの実装契約を、Web UI の英語・日本語の設計文書へ同期しました。初期テーマ決定、利用者の明示的な選択の保存、CSS トークンによる配色切替を、実装に合わせて明文化しています。
主な変更点:
tasq.themeとprefers-color-schemeの優先順位を記載html[data-theme]設定と、実行時の追従条件を記載チケットへのリンク
#218
やったこと
docs/design/web.mdと日本語版にテーマ仕様を追加use-theme.tsの所有範囲を追加動作確認
git diff --checkindex.html、use-theme.ts、globals.cssと文書の記載を照合レビュー & 動作確認 チェックリスト
tasq.themeが OS 設定より優先されることhtml[data-theme]と意味的な CSS トークンでテーマを切り替えること推奨テスト計画:
localStorageにlightまたはdarkを設定してページを再読込する。その他気になることや相談ごと
特になし。
Requested by: @admin