Repository navigation
Conversation
Angular chat forces light or dark from [data-theme] or [data-threadplane-chat-theme] on any ancestor. React chat only read prefers-color-scheme, so an app theme toggle never reached it. The chat color-scheme now reads an inherited scheme set by those attributes (nearest wins, dark last on one element), and an explicit --tp-chat-color-scheme still wins. The A2UI surface stylesheet, which used a prefers-color-scheme block, follows the same attributes. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
blove
enabled auto-merge
November 17, 2026 23:46
This branch has not been deployed
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
Angular chat honors
[data-theme="dark|light"]and[data-threadplane-chat-theme="dark|light"]on any ancestor, forcing that scheme overprefers-color-scheme(libs/chat/src/lib/styles/chat-tokens.ts). React chat only readprefers-color-scheme, so an app theme toggle never reached it.libs/react/src/chat/styles.css: the attributes set an inherited--tp-chat-theme-scheme;.tp-chatusescolor-scheme: var(--tp-chat-color-scheme, var(--tp-chat-theme-scheme, light dark)). Precedence: explicit--tp-chat-color-scheme, then nearest attribute (dark declared last, as in Angular), then the system. All chat tokens uselight-dark(), so they flip with it.libs/react/src/a2ui/styles.css: theprefers-color-schemeblock gets matching light and dark attribute rules (same selectors, after the media query; theme files still outrank them). Debug styles have no scheme media queries.Verification
nx run-many -t test lint type-tests -p react: lint and type-tests pass; the new and changed specs (theme-tokens,themes) pass (27 tests). One earlier failure in the token-mapping guard was fixed by exempting the internal--tp-chat-theme-scheme.docs-content-rulesspec: 10 passed (no contractions). A full website vitest run in this worktree showed environment failures (symlinked node_modules, parallel load); not attributable to this change.inventory.mjs --check --drift warn: valid. No new exports or files, so no verify-packages changes.🤖 Generated with Claude Code