Skip to content

Commit 66669be

Browse files
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

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 changed

app/component-library/components-temp/KeyValueRow/__snapshots__/KeyValueRow.test.tsx.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ exports[`KeyValueRow Prebuilt Component KeyValueRow should render text with icon
221221
}
222222
>
223223
<SvgMock
224-
color="#9ca1af"
224+
color="#b7bbc8"
225225
fill="currentColor"
226226
height={20}
227227
name="Question"
@@ -311,7 +311,7 @@ exports[`KeyValueRow Prebuilt Component KeyValueRow should render text with icon
311311
}
312312
>
313313
<SvgMock
314-
color="#9ca1af"
314+
color="#b7bbc8"
315315
fill="currentColor"
316316
height={20}
317317
name="Question"
@@ -407,7 +407,7 @@ exports[`KeyValueRow Prebuilt Component KeyValueRow should render text with tool
407407
}
408408
>
409409
<SvgMock
410-
color="#9ca1af"
410+
color="#b7bbc8"
411411
fill="currentColor"
412412
height={20}
413413
name="Question"
@@ -484,7 +484,7 @@ exports[`KeyValueRow Prebuilt Component KeyValueRow should render text with tool
484484
}
485485
>
486486
<SvgMock
487-
color="#9ca1af"
487+
color="#b7bbc8"
488488
fill="currentColor"
489489
height={20}
490490
name="Question"

app/component-library/components-temp/Price/AggregatedPercentage/__snapshots__/AggregatedPercentage.test.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ exports[`AggregatedPercentage should render correctly 1`] = `
1313
accessibilityRole="text"
1414
style={
1515
{
16-
"color": "#1c7e33",
16+
"color": "#457a39",
1717
"fontFamily": "Geist Medium",
1818
"fontSize": 16,
1919
"letterSpacing": 0,
@@ -28,7 +28,7 @@ exports[`AggregatedPercentage should render correctly 1`] = `
2828
accessibilityRole="text"
2929
style={
3030
{
31-
"color": "#1c7e33",
31+
"color": "#457a39",
3232
"fontFamily": "Geist Medium",
3333
"fontSize": 16,
3434
"letterSpacing": 0,

app/component-library/components-temp/Price/PercentageChange/__snapshots__/PercentageChange.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ exports[`PercentageChange should render correctly 1`] = `
66
accessibilityRole="text"
77
style={
88
{
9-
"color": "#1c7e33",
9+
"color": "#457a39",
1010
"fontFamily": "Geist Medium",
1111
"fontSize": 14,
1212
"letterSpacing": 0,

app/component-library/components/Navigation/TabBar/__snapshots__/TabBar.test.tsx.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ exports[`TabBar renders correctly 1`] = `
9191
}
9292
>
9393
<SvgMock
94-
color="#9ca1af"
94+
color="#b7bbc8"
9595
fill="currentColor"
9696
height={24}
9797
name="Activity"
@@ -167,7 +167,7 @@ exports[`TabBar renders correctly 1`] = `
167167
}
168168
>
169169
<SvgMock
170-
color="#9ca1af"
170+
color="#b7bbc8"
171171
fill="currentColor"
172172
height={24}
173173
name="Explore"
@@ -205,7 +205,7 @@ exports[`TabBar renders correctly 1`] = `
205205
}
206206
>
207207
<SvgMock
208-
color="#9ca1af"
208+
color="#b7bbc8"
209209
fill="currentColor"
210210
height={24}
211211
name="Setting"

app/components/Snaps/SnapUIRenderer/__snapshots__/SnapUIRenderer.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ exports[`SnapUIRenderer renders complex nested components 1`] = `
910910
accessibilityRole="text"
911911
style={
912912
{
913-
"color": "#9ca1af",
913+
"color": "#b7bbc8",
914914
"fontFamily": "Geist Regular",
915915
"fontSize": 16,
916916
"letterSpacing": 0,

app/components/UI/AccountFromToInfoCard/__snapshots__/AccountFromToInfoCard.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ exports[`AccountFromToInfoCard should match snapshot 1`] = `
585585
style={
586586
[
587587
{
588-
"color": "#1c7e33",
588+
"color": "#457a39",
589589
"fontSize": 15,
590590
},
591591
undefined,

app/components/UI/AddCustomToken/__snapshots__/index.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ exports[`AddCustomToken render correctly 1`] = `
233233
onFocus={[Function]}
234234
onSubmitEditing={[Function]}
235235
placeholder="0x..."
236-
placeholderTextColor="#9ca1af"
236+
placeholderTextColor="#b7bbc8"
237237
returnKeyType="next"
238238
style={
239239
{

app/components/UI/AddressInputs/__snapshots__/index.test.jsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ exports[`AddressInputs AddressTo should match default snapshot 1`] = `
607607
style={
608608
[
609609
{
610-
"color": "#1c7e33",
610+
"color": "#457a39",
611611
"fontSize": 15,
612612
},
613613
undefined,
@@ -880,7 +880,7 @@ exports[`AddressInputs AddressTo should match snapshot when layout is vertical 1
880880
style={
881881
[
882882
{
883-
"color": "#1c7e33",
883+
"color": "#457a39",
884884
"fontSize": 15,
885885
},
886886
undefined,

app/components/UI/AssetOverview/__snapshots__/AssetOverview.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2409,7 +2409,7 @@ exports[`AssetOverview should render native balances when non evm network is sel
24092409
accessibilityRole="text"
24102410
style={
24112411
{
2412-
"color": "#1c7e33",
2412+
"color": "#457a39",
24132413
"fontFamily": "Geist Medium",
24142414
"fontSize": 16,
24152415
"letterSpacing": 0,

app/components/UI/AssetSearch/__snapshots__/index.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ exports[`AssetSearch should render correctly 1`] = `
5858
onChangeText={[Function]}
5959
onFocus={[Function]}
6060
placeholder="Search Tokens"
61-
placeholderTextColor="#9ca1af"
61+
placeholderTextColor="#b7bbc8"
6262
style={
6363
[
6464
{

0 commit comments

Comments
 (0)