fix(ai-credits): theme token and text contrast fixes - #217
Merged
Conversation
blueogin
requested review from
a team and
sirpy
and
a lite review from Copilot
August 27, 2026 15:57
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request updates the AI Credits widget UI styling to address design-review feedback by aligning text tones and surface/background tokens with the current theme semantics, improving readability/contrast across views.
Changes:
- Replaced many
Text secondaryusages withtone="soft"(and a few plainText) to standardize muted text rendering. - Updated several containers from
$backgroundMuted/$backgroundDarkto$backgroundSurface/$backgroundfor more consistent surface contrast. - Updated the How-To content to point to the intended YouTube walkthrough URL.
Reviewed changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/ai-credits-widget/src/components/shared/AddressView.tsx | Adjusts label tone and switches address container background to a surface token. |
| packages/ai-credits-widget/src/components/setup/SignerKeyPanel.tsx | Tweaks explanatory text tones and related UI copy blocks for improved contrast. |
| packages/ai-credits-widget/src/components/setup/SetupGuidanceCard.tsx | Updates muted/label text to use tone="soft" for consistent readability. |
| packages/ai-credits-widget/src/components/setup/SetupFaqView.tsx | Uses tone="soft" for expanded FAQ answers to improve contrast. |
| packages/ai-credits-widget/src/components/setup/SetupBonusHighlight.tsx | Applies tone="soft" to supporting text and expanded description content. |
| packages/ai-credits-widget/src/components/setup/HowToUseView.tsx | Updates the walkthrough video URL and applies tone="soft" to helper text. |
| packages/ai-credits-widget/src/components/setup/AntseedSignerRow.tsx | Applies tone="soft" to caption text beneath the screenshot row. |
| packages/ai-credits-widget/src/components/manage/SetupSnippet.tsx | Switches snippet container to $backgroundSurface and softens helper text tone. |
| packages/ai-credits-widget/src/components/manage/CreditsManagementCard.tsx | Uses tone="soft" for stat labels / helper labels. |
| packages/ai-credits-widget/src/components/manage/BuyerOperatorCard.tsx | Updates surface tokens and softens secondary text to improve contrast. |
| packages/ai-credits-widget/src/components/history/HistoryTab.tsx | Updates filter/control surfaces and secondary labels to tone="soft". |
| packages/ai-credits-widget/src/components/buy/OperatorConsentStep.tsx | Uses tone="soft" for helper/bullet text and applies monospace styling via shared style. |
| packages/ai-credits-widget/src/components/buy/BuyerKeyPanel.tsx | Switches key panels to $backgroundSurface and updates helper/label text tone. |
| packages/ai-credits-widget/src/components/buy/AmountPicker.tsx | Softens helper/label text across the amount picker UI. |
| packages/ai-credits-widget/src/components/buy/AiCreditsHero.tsx | Updates label tone for improved contrast. |
| packages/ai-credits-widget/src/AiCreditsWidget.tsx | Sets the widget root background to $backgroundSurface to better match surface semantics. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
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.
Description
Addresses the design review from Hadar and Lewis. All changes are scoped to
the ai-credits widget.
About # (link your issue here)
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: