Commit 66669be
authored
chore: upgrade design tokens to v8.1 (#17392)
## **Description**
This PR updates the MetaMask design tokens from version 8.0.0 to 8.1.0,
bringing updated color values and improved visual consistency across the
entire mobile application. The update includes systematic changes to
color tokens used throughout the component library and UI elements.
### What is the improvement/solution?
- Updated `@metamask/design-tokens` dependency from `^8.0.0` to `^8.1.0`
in package.json
- Systematically updated all affected test snapshots to reflect the new
color values:
- Primary gray color updated from `#9ca1af` to `#b7bbc8` (lighter, more
accessible gray)
- Success green color updated from `#1c7e33` to `#457a39` (refined green
tone)
- Additional color refinements for improved contrast and accessibility
- Updated snapshots across 100+ component test files to maintain test
integrity
- Maintained backward compatibility for all existing component
implementations
## **Changelog**
CHANGELOG entry: Updated design system colors for improved visual
consistency and accessibility
## **Related issues**
Fixes: N/A
## **Manual testing steps**
1. Build and run the app in both light and dark themes
2. Navigate through all major screens (Wallet, Browser, Settings, etc.)
3. Verify that all UI elements display with consistent colors
## **Screenshots/Recordings**
### **After**
<!-- Updated color values with improved accessibility and visual
consistency -->
https://github.com/user-attachments/assets/c5971d23-3010-406b-b4ce-27ff16cbb761
## **Pre-merge author checklist**
- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I've included tests if applicable (all snapshots updated)
- [x] I've documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I've applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.
## **Pre-merge reviewer checklist**
- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.1 parent 1ccd356 commit 66669be
File tree
105 files changed
+481
-421
lines changed- app
- component-library
- components-temp
- KeyValueRow/__snapshots__
- Price
- AggregatedPercentage/__snapshots__
- PercentageChange/__snapshots__
- components
- Snaps/SnapUIRenderer/__snapshots__
- UI
- AccountFromToInfoCard/__snapshots__
- AddCustomToken/__snapshots__
- AddressInputs/__snapshots__
- AssetOverview/__snapshots__
- AssetSearch/__snapshots__
- Bridge/components/QuoteDetailsCard/__snapshots__
- BrowserBottomBar/__snapshots__
- BrowserUrlBar/__snapshots__
- Carousel/__snapshots__
- Collectibles/__snapshots__
- DeleteWalletModal/__snapshots__
- Earn
- LendingLearnMoreModal/__snapshots__
- Views
- EarnInputView/__snapshots__
- EarnLendingDepositConfirmationView
- __snapshots__
- components/DepositInfoSection/__snapshots__
- EarnLendingWithdrawalConfirmationView/__snapshots__
- EarnWithdrawInputView/__snapshots__
- components
- EarnDepositTokenListItem/__snapshots__
- EarnLendingBalance/__snapshots__
- EarnTokenList/__snapshots__
- EarnTokenSelector/__snapshots__
- Earnings
- EarningsHistory/EarningsHistoryChart/__snapshots__
- __snapshots__
- EmptyStateCta/__snapshots__
- EditGasFee1559/__snapshots__
- EditGasFeeLegacy/__snapshots__
- HintModal/__snapshots__
- Identity/ConfirmTurnOnBackupAndSyncModal/__snapshots__
- Notification
- BaseNotification/__snapshots__
- NotificationMenuItem/__snapshots__
- OptinMetrics/__snapshots__
- PaymentRequest/__snapshots__
- Perps/components/PerpsCandlestickChart
- Ramp
- Aggregator
- Views
- OrderDetails/__snapshots__
- OrdersList/__snapshots__
- Quotes/__snapshots__
- Regions/__snapshots__
- Settings/__snapshots__
- components/OrderListItem/__snapshots__
- Deposit
- Views
- BasicInfo/__snapshots__
- DepositOrderDetails/__snapshots__
- EnterAddress/__snapshots__
- EnterEmail/__snapshots__
- KycProcessing/__snapshots__
- OrderProcessing/__snapshots__
- OtpCode/__snapshots__
- Root/GetStarted/__snapshots__
- VerifyIdentity/__snapshots__
- components
- DepositDateField/__snapshots__
- DepositOrderContent/__snapshots__
- DepositPhoneField/__snapshots__
- ReceiveRequest/__snapshots__
- SearchTokenAutocomplete/__snapshots__
- Stake
- Views
- StakeConfirmationView/__snapshots__
- StakeEarningsHistoryView/__snapshots__
- UnstakeConfirmationView/__snapshots__
- components
- PoolStakingLearnMoreModal
- InteractiveTimespanChart
- DataGradient/__snapshots__
- __snapshots__
- __snapshots__
- StakingBalance
- StakingBanners/ClaimBanner/__snapshots__
- StakingCta/__snapshots__
- __snapshots__
- StakingConfirmation
- RewardsCard/__snapshots__
- UnstakeTimeCard/__snapshots__
- YouReceiveCard/__snapshots__
- StakingEarnings/__snapshots__
- UpsellBanner/__snapshots__
- TransactionElement/TransactionDetails/__snapshots__
- Views
- AccountBackupStep1B/__snapshots__
- AddAsset/__snapshots__
- Asset/__snapshots__
- ChoosePassword/__snapshots__
- ImportPrivateKeySuccess/__snapshots__
- ImportPrivateKey/__snapshots__
- Login/__snapshots__
- Notifications/Details/__snapshots__
- OnboardingSheet/__snapshots__
- OriginSpamModal/__snapshots__
- QRAccountDisplay/__snapshots__
- ResetPassword/__snapshots__
- RevealPrivateCredential/__snapshots__
- Settings/Contacts/ContactForm/__snapshots__
- SuccessErrorSheet/__snapshots__
- confirmations
- components/UI/Tooltip/__snapshots__
- legacy
- Approval/__snapshots__
- SendFlow
- AddressTo/__snapshots__
- Amount/__snapshots__
- Confirm
- __snapshots__
- components/CustomGasModal/__snapshots__
- SendTo/__snapshots__
- components/CustomNonceModal/__snapshots__
- components
- Approval/TemplateConfirmation/Templates/__snapshots__
- EditGasFeeLegacyUpdate/__snapshots__
- SignatureRequest
- ExpandedMessage/__snapshots__
- Root/__snapshots__
- TransactionReview
- TransactionReviewEIP1559Update/__snapshots__
- TransactionReviewEIP1559/__snapshots__
- __snapshots__
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
105 files changed
+481
-421
lines changedLines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
| 224 | + | |
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | | - | |
| 314 | + | |
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
410 | | - | |
| 410 | + | |
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
| |||
484 | 484 | | |
485 | 485 | | |
486 | 486 | | |
487 | | - | |
| 487 | + | |
488 | 488 | | |
489 | 489 | | |
490 | 490 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
| 208 | + | |
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
910 | 910 | | |
911 | 911 | | |
912 | 912 | | |
913 | | - | |
| 913 | + | |
914 | 914 | | |
915 | 915 | | |
916 | 916 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
585 | 585 | | |
586 | 586 | | |
587 | 587 | | |
588 | | - | |
| 588 | + | |
589 | 589 | | |
590 | 590 | | |
591 | 591 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
607 | 607 | | |
608 | 608 | | |
609 | 609 | | |
610 | | - | |
| 610 | + | |
611 | 611 | | |
612 | 612 | | |
613 | 613 | | |
| |||
880 | 880 | | |
881 | 881 | | |
882 | 882 | | |
883 | | - | |
| 883 | + | |
884 | 884 | | |
885 | 885 | | |
886 | 886 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2409 | 2409 | | |
2410 | 2410 | | |
2411 | 2411 | | |
2412 | | - | |
| 2412 | + | |
2413 | 2413 | | |
2414 | 2414 | | |
2415 | 2415 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
0 commit comments