Skip to content

test: preview design-system Text component changes [DO NOT MERGE] #41582

Draft
georgewrmarshall wants to merge 4 commits intomainfrom
test/design-system-text-component-preview-4ce710b
Draft

test: preview design-system Text component changes [DO NOT MERGE] #41582
georgewrmarshall wants to merge 4 commits intomainfrom
test/design-system-text-component-preview-4ce710b

Conversation

@georgewrmarshall
Copy link
Copy Markdown
Contributor

@georgewrmarshall georgewrmarshall commented Apr 8, 2026

Description

Temporarily updates @metamask/design-system-react, @metamask/design-system-shared, @metamask/design-system-tailwind-preset, and @metamask/design-tokens to their @metamask-previews builds in order to test the Text component changes in MetaMask/metamask-design-system#1047.

Preview packages used (commit 4ce710b):

  • @metamask/design-system-react@metamask-previews/design-system-react@0.14.0-preview.4ce710b
  • @metamask/design-system-shared@metamask-previews/design-system-shared@0.7.0-preview.4ce710b
  • @metamask/design-system-tailwind-preset@metamask-previews/design-system-tailwind-preset@0.6.1-preview.4ce710b
  • @metamask/design-tokens@metamask-previews/design-tokens@8.3.0-preview.4ce710b

Do not merge. This branch is for testing purposes only and should be closed once the upstream PR is merged.

Changelog

CHANGELOG entry: null

Related issues

Fixes: N/A — testing upstream: MetaMask/metamask-design-system#1047

Manual testing steps

  1. Build the extension from this branch
  2. Exercise any UI that uses the Text component from @metamask/design-system-react
  3. Verify the updated Text component renders correctly and no regressions are observed

Screenshots/Recordings

Before

After

Screenshot 2026-04-08 at 2 13 00 PM Screenshot 2026-04-08 at 2 14 09 PM

Pre-merge author checklist

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.

Note

Medium Risk
Swaps core UI dependencies to preview @metamask-previews/* builds, which may subtly change styling/behavior across the app despite limited code changes. Risk is mainly around UI regressions and lockfile resolution changes rather than runtime/security logic.

Overview
Temporarily repoints @metamask/design-system-* and @metamask/design-tokens to @metamask-previews builds (via both dependencies and resolutions) to validate upstream design-system Text changes.

Updates yarn.lock accordingly (including pulling in preview design-system-shared and bumping @metamask/utils to satisfy new peer ranges) and refreshes Jest snapshots to match updated checkbox focus styling (peer/peer-focus-visible classes).

Reviewed by Cursor Bugbot for commit a24aedb. Bugbot is set up for automated code reviews on this repo. Configure here.

Temporarily swaps @metamask/design-system-react, design-system-shared,
design-system-tailwind-preset, and design-tokens to their
@metamask-previews builds to test MetaMask/metamask-design-system#1047.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@metamaskbot metamaskbot added the team-design-system All issues relating to design system in Extension label Apr 8, 2026
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: Global resolution forces incompatible major version on phishing-warning
    • Removed the global @metamask/design-tokens resolution from package.json so transitive dependencies like @metamask/phishing-warning can resolve their compatible v7 range.

Create PR

Or push these changes by commenting:

@cursor push 6033a7cd88
Preview (6033a7cd88)
diff --git a/package.json b/package.json
--- a/package.json
+++ b/package.json
@@ -161,7 +161,6 @@
     "@metamask/design-system-react": "npm:@metamask-previews/design-system-react@0.14.0-preview.4ce710b",
     "@metamask/design-system-shared": "npm:@metamask-previews/design-system-shared@0.7.0-preview.4ce710b",
     "@metamask/design-system-tailwind-preset": "npm:@metamask-previews/design-system-tailwind-preset@0.6.1-preview.4ce710b",
-    "@metamask/design-tokens": "npm:@metamask-previews/design-tokens@8.3.0-preview.4ce710b",
     "@unrs/resolver-binding-wasm32-wasi": "npm:npm-empty-package@1.0.0",
     "jest-clean-console-reporter/chalk": "^4.1.2",
     "napi-postinstall": "npm:npm-empty-package@1.0.0",

diff --git a/yarn.lock b/yarn.lock
--- a/yarn.lock
+++ b/yarn.lock
@@ -6208,6 +6208,13 @@
   languageName: node
   linkType: hard
 
+"@metamask/design-tokens@npm:^7.1.0":
+  version: 7.1.0
+  resolution: "@metamask/design-tokens@npm:7.1.0"
+  checksum: 10/a4f1379bdf5f6b99c9a228ce4f5bb07ace4ed5abc61384e7f04cf5bdf943b32dd13ec9676a88f6b6c7314cdba6e2967b9fd99707a64a645865f21f8d8a2566d9
+  languageName: node
+  linkType: hard
+
 "@metamask/eip-5792-middleware@npm:3.0.3":
   version: 3.0.3
   resolution: "@metamask/eip-5792-middleware@npm:3.0.3"

You can send follow-ups to the cloud agent here.

Reviewed by Cursor Bugbot for commit ffab2ac. Configure here.

"@metamask/design-system-react": "npm:@metamask-previews/design-system-react@0.14.0-preview.4ce710b",
"@metamask/design-system-shared": "npm:@metamask-previews/design-system-shared@0.7.0-preview.4ce710b",
"@metamask/design-system-tailwind-preset": "npm:@metamask-previews/design-system-tailwind-preset@0.6.1-preview.4ce710b",
"@metamask/design-tokens": "npm:@metamask-previews/design-tokens@8.3.0-preview.4ce710b",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Global resolution forces incompatible major version on phishing-warning

Medium Severity

The blanket @metamask/design-tokens resolution forces every consumer to 8.3.0-preview.4ce710b, but @metamask/phishing-warning depends on @metamask/design-tokens@^7.1.0. This is a major-version jump (7 → 8) that removes the dedicated v7 entry from yarn.lock entirely. If the v8 preview has breaking API changes, the phishing warning page — a security-critical UI — could malfunction at runtime. A scoped resolution (e.g., targeting only the direct dependency) would avoid forcing a semver-incompatible upgrade on unrelated packages.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit ffab2ac. Configure here.

@socket-security
Copy link
Copy Markdown

socket-security bot commented Apr 8, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​metamask/​design-system-react@​0.12.0 ⏵ 0.14.0-preview.4ce710b100 +3100100 +21100 +4100
Updated@​metamask/​design-system-tailwind-preset@​0.6.1 ⏵ 0.6.1-preview.4ce710b100 +1100100 +12100 +15100
Updated@​metamask/​design-tokens@​7.1.0 ⏵ 8.3.0-preview.4ce710b100 +1100100100 +13100

View full report

@metamaskbotv2
Copy link
Copy Markdown
Contributor

metamaskbotv2 bot commented Apr 8, 2026

✨ Files requiring CODEOWNER review ✨

📜 @MetaMask/policy-reviewers (12 files, +72 -72)
  • 📁 lavamoat/
    • 📁 browserify/
      • 📁 beta/
        • 📄 policy.json +6 -6
      • 📁 experimental/
        • 📄 policy.json +6 -6
      • 📁 flask/
        • 📄 policy.json +6 -6
      • 📁 main/
        • 📄 policy.json +6 -6
    • 📁 webpack/
      • 📁 mv2/
        • 📁 beta/
          • 📄 policy.json +6 -6
        • 📁 experimental/
          • 📄 policy.json +6 -6
        • 📁 flask/
          • 📄 policy.json +6 -6
        • 📁 main/
          • 📄 policy.json +6 -6
      • 📁 mv3/
        • 📁 beta/
          • 📄 policy.json +6 -6
        • 📁 experimental/
          • 📄 policy.json +6 -6
        • 📁 flask/
          • 📄 policy.json +6 -6
        • 📁 main/
          • 📄 policy.json +6 -6

Tip

Follow the policy review process outlined in the LavaMoat Policy Review Process doc before expecting an approval from Policy Reviewers.


🔐 @MetaMask/web3auth (2 files, +10 -10)
  • 📁 ui/
    • 📁 pages/
      • 📁 onboarding-flow/
        • 📁 create-password/
          • 📁 __snapshots__/
            • 📄 create-password.test.tsx.snap +2 -2
        • 📁 metametrics/
          • 📁 __snapshots__/
            • 📄 metametrics.test.tsx.snap +8 -8

@georgewrmarshall
Copy link
Copy Markdown
Contributor Author

@metamaskbot update-policies

@metamaskbot
Copy link
Copy Markdown
Collaborator

Policies updated.
👀 Please review the diff for suspicious new powers.

Tip

Follow the policy review process outlined in the LavaMoat Policy Review Process doc before expecting an approval from Policy Reviewers.
🧠 Learn how to read policy diffs: https://lavamoat.github.io/guides/policy-diff/#what-to-look-for-when-reviewing-a-policy-diff

👀 lavamoat/browserify/beta/policy.json changes differ from main/policy.json policy changes
👀 lavamoat/browserify/experimental/policy.json changes differ from main/policy.json policy changes
👀 lavamoat/browserify/flask/policy.json changes differ from main/policy.json policy changes
👀 lavamoat/webpack/mv2/beta/policy.json changes differ from mv2/main/policy.json policy changes
👀 lavamoat/webpack/mv2/experimental/policy.json changes differ from mv2/main/policy.json policy changes
👀 lavamoat/webpack/mv2/flask/policy.json changes differ from mv2/main/policy.json policy changes
👀 lavamoat/webpack/mv3/beta/policy.json changes differ from mv3/main/policy.json policy changes
👀 lavamoat/webpack/mv3/experimental/policy.json changes differ from mv3/main/policy.json policy changes
👀 lavamoat/webpack/mv3/flask/policy.json changes differ from mv3/main/policy.json policy changes

@georgewrmarshall georgewrmarshall changed the title test: preview design-system Text component changes (MetaMask/metamask-design-system#1047) [DO NOT MERGE] test: preview design-system Text component changes (MetaMask/metamask-design-system#1047) Apr 8, 2026
@georgewrmarshall georgewrmarshall changed the title [DO NOT MERGE] test: preview design-system Text component changes (MetaMask/metamask-design-system#1047) test: preview design-system Text component changes [DO NOT MERGE] Apr 8, 2026
@georgewrmarshall georgewrmarshall self-assigned this Apr 8, 2026
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 8, 2026

@metamaskbotv2
Copy link
Copy Markdown
Contributor

metamaskbotv2 bot commented Apr 8, 2026

Builds ready [732d795]
⚡ Performance Benchmarks (Total: 🟢 7 pass · 🟡 12 warn · 🔴 0 fail)

Baseline (latest main): f34f804 | Date: 9/10/58222 | Pipeline: 24159381765 | Baseline logs

Interaction Benchmarks · Samples: 5
Benchmarkchrome-browserify
loadNewAccount🟡 [Show logs]
confirmTx🟡 [Show logs]
bridgeUserActions🟡 [Show logs]

📈 Results compared to the previous 5 runs on main

  • bridgeUserActions/bridge_load_asset_picker: -34%
  • bridgeUserActions/bridge_search_token: -28%
  • bridgeUserActions/total: -24%

🌐 Core Web Vitals — 🟢 good · 🟡 needs improvement · 🔴 poor (web.dev thresholds)

  • 🟡 loadNewAccount/FCP: p75 2.6s
  • 🟡 confirmTx/FCP: p75 2.6s
  • 🟡 bridgeUserActions/FCP: p75 2.6s
Startup Benchmarks · Samples: 100
Benchmarkchrome-browserifychrome-webpackfirefox-browserifyfirefox-webpack
startupStandardHome🟢 [Show logs]🟢 [Show logs]🟢 [Show logs]🟢 [Show logs]
startupPowerUserHome🟡 [Show logs]🟡 [Show logs]🟡 [Show logs]🟡 [Show logs]

📈 Results compared to the previous 5 runs on main

  • startupStandardHome/uiStartup: -11%
  • startupStandardHome/load: -13%
  • startupStandardHome/domContentLoaded: -15%
  • startupStandardHome/backgroundConnect: +11%
  • startupStandardHome/initialActions: -38%
  • startupStandardHome/loadScripts: -18%
  • startupStandardHome/numNetworkReqs: -21%
  • startupPowerUserHome/uiStartup: -13%
  • startupPowerUserHome/backgroundConnect: +42%
  • startupPowerUserHome/setupStore: +11%
  • startupStandardHome/uiStartup: -13%
  • startupStandardHome/load: -12%
  • startupStandardHome/domContentLoaded: -11%
  • startupStandardHome/domInteractive: +13%
  • startupStandardHome/backgroundConnect: -32%
  • startupStandardHome/firstReactRender: -24%
  • startupStandardHome/loadScripts: -11%
  • startupStandardHome/numNetworkReqs: -29%
  • startupPowerUserHome/domInteractive: -16%
  • startupPowerUserHome/numNetworkReqs: +44%
  • startupStandardHome/domInteractive: -58%
  • startupStandardHome/initialActions: +25%
  • startupStandardHome/setupStore: +14%
  • startupStandardHome/numNetworkReqs: -18%
  • startupPowerUserHome/backgroundConnect: -29%
  • startupPowerUserHome/setupStore: +52%
  • startupStandardHome/uiStartup: -11%
  • startupStandardHome/load: -11%
  • startupStandardHome/domContentLoaded: -11%
  • startupStandardHome/domInteractive: -38%
  • startupStandardHome/backgroundConnect: -20%
  • startupStandardHome/initialActions: -44%
  • startupStandardHome/loadScripts: -11%
  • startupStandardHome/setupStore: -54%
  • startupStandardHome/numNetworkReqs: -18%
  • startupPowerUserHome/domInteractive: +18%
  • startupPowerUserHome/backgroundConnect: -24%
  • startupPowerUserHome/setupStore: +20%

🌐 Core Web Vitals — 🟢 good · 🟡 needs improvement · 🔴 poor (web.dev thresholds)

  • 🔴 startupPowerUserHome/INP: p75 752ms
  • 🔴 startupPowerUserHome/INP: p75 736ms
  • 🟡 startupPowerUserHome/LCP: p75 3.7s
  • 🟡 startupPowerUserHome/LCP: p75 3.7s
User Journey Benchmarks · Samples: 5 · mock API
Benchmarkchrome-browserify
onboardingImportWallet🟢 [Show logs]
onboardingNewWallet🟢 [Show logs]
assetDetails🟡 [Show logs]
solanaAssetDetails🟡 [Show logs]
importSrpHome🟡 [Show logs]
sendTransactions🟡 [Show logs]
swap🟡 [Show logs]

📈 Results compared to the previous 5 runs on main

  • onboardingImportWallet/srpButtonToSrpForm: -85%
  • onboardingImportWallet/metricsToWalletReadyScreen: -43%
  • onboardingImportWallet/doneButtonToHomeScreen: -75%
  • onboardingImportWallet/openAccountMenuToAccountListLoaded: +23%
  • onboardingImportWallet/total: -42%
  • onboardingNewWallet/srpButtonToPwForm: -79%
  • onboardingNewWallet/skipBackupToMetricsScreen: -70%
  • onboardingNewWallet/agreeButtonToOnboardingSuccess: -15%
  • onboardingNewWallet/doneButtonToAssetList: -27%
  • onboardingNewWallet/total: -28%
  • assetDetails/assetClickToPriceChart: -42%
  • assetDetails/total: -42%
  • solanaAssetDetails/assetClickToPriceChart: -73%
  • solanaAssetDetails/total: -73%
  • importSrpHome/loginToHomeScreen: +12%
  • importSrpHome/openAccountMenuAfterLogin: -70%
  • importSrpHome/homeAfterImportWithNewWallet: -70%
  • importSrpHome/total: -60%
  • sendTransactions/selectTokenToSendFormLoaded: -27%
  • sendTransactions/reviewTransactionToConfirmationPage: +34%
  • sendTransactions/total: +32%
  • swap/openSwapPageFromHome: -96%
  • swap/fetchAndDisplaySwapQuotes: +31%
  • swap/total: +12%

🌐 Core Web Vitals — 🟢 good · 🟡 needs improvement · 🔴 poor (web.dev thresholds)

  • 🟡 assetDetails/FCP: p75 2.5s
  • 🟡 solanaAssetDetails/FCP: p75 2.5s
  • 🟡 importSrpHome/INP: p75 224ms
  • 🟡 importSrpHome/FCP: p75 2.6s
  • 🟡 sendTransactions/INP: p75 232ms
  • 🟡 sendTransactions/FCP: p75 2.5s
  • 🟡 swap/FCP: p75 2.5s
Dapp Page Load Benchmarks · Samples: 100
Benchmarkchrome-browserify
dappPageLoad🟢 [Show logs]
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 93.79 KiB (1.55%)
  • ui: 1.57 KiB (0.02%)
  • common: 107.11 KiB (0.84%)

georgewrmarshall added a commit to MetaMask/metamask-design-system that referenced this pull request Apr 9, 2026
## **Description**

This PR migrates the `Text` component to align with
[ADR-0003](MetaMask/decisions#127) (String
Unions) and [ADR-0004](MetaMask/decisions#128)
(Centralized Types Architecture) as part of epic **DSYS-468**.

### Changes

**New shared types (`@metamask/design-system-shared`)**
- `TextVariant` — converted from duplicated `enum TextVariant` in both
platform packages to a single `const` object with string union type
(ADR-0003). Values are identical across React and React Native.
- `TextColor` — new shared `const` object containing all common color
values across both platforms (ADR-0003). React extends this with hover
states (`PrimaryDefaultHover`, `ErrorDefaultHover`,
`SuccessDefaultHover`, `WarningDefaultHover`) and `Inherit`. React
Native extends with `PrimaryAlternative`.
- `TextPropsShared` — new shared props type (ADR-0004) containing
cross-platform Text props: `variant`, `children`, and `color` (typed as
`string` to allow platform-specific extensions).

**Updated platform packages (`design-system-react` and
`design-system-react-native`)**
- Removed `enum TextVariant` from both `src/types/index.ts` — now
re-exported from shared
- Removed `enum TextColor` from both `src/types/index.ts` — replaced
with platform-extended const objects
- Removed `enum FontWeight`, `enum FontFamily`, `enum FontStyle` from
both `src/types/index.ts` — converted to const objects
(platform-specific values preserved)
- Removed `enum TextAlign`, `enum OverflowWrap`, `enum TextTransform`
from React `src/types/index.ts` — converted to const objects
(React/Tailwind-specific)
- `Text.types.ts` in both packages now extends `TextPropsShared` from
shared
- `Text/index.ts` in both packages exports `TextVariant` and
`TextPropsShared` from shared

**Platform differences preserved**
- `FontWeight`: React uses Tailwind classes (`font-bold`, `font-medium`,
`font-regular`); RN uses numeric values (`600`, `500`, `400`)
- `FontFamily`: React uses Tailwind classes (`font-default`,
`font-accent`, `font-hero`); RN uses plain names (`default`, `accent`,
`hero`)
- `FontStyle`: React uses Tailwind values (`italic`, `not-italic`); RN
uses CSS values (`italic`, `normal`)
- `TextAlign`, `OverflowWrap`, `TextTransform`: React-only
(Tailwind-specific)

## **Related issues**

Fixes:
[DSYS-489](https://consensyssoftware.atlassian.net/browse/DSYS-489)

## **Manual testing steps**

1. Run `yarn build` — all packages build successfully
2. Run `yarn test` — all tests pass with 100% coverage on changed
components
3. Verify `TextVariant` is importable from
`@metamask/design-system-shared`
4. Verify `TextColor` is importable from
`@metamask/design-system-shared`
5. Verify `TextPropsShared` is importable from
`@metamask/design-system-shared`

## **Screenshots/Recordings**

### **Before**

No visual changes. 


https://github.com/user-attachments/assets/d5fc7e35-013e-4be2-bdff-0bed7d2faab2

### **After**

No visual changes. Text component in storybook works as expected and no
visual regressions picked up in Chromatic run


https://github.com/user-attachments/assets/4efed996-4451-4c97-ab91-b8de60d5b93a

<img width="1496" height="868" alt="Screenshot 2026-04-07 at 3 57 11 PM"
src="https://github.com/user-attachments/assets/227e45ca-40af-43de-a80b-32342daadbab"
/>

Testing preview packages in mobile works with no typescript or visual
issues

Test PR: MetaMask/metamask-mobile#28575

Mobile running with MMDS `Text`


https://github.com/user-attachments/assets/0dacb94b-1b39-4870-9f77-4ad8509ab551

Testing preview packages in extension works with no typescript or visual
issues

Test PR: MetaMask/metamask-extension#41582

Extension running with MMDS `Text`

<img width="494" height="658" alt="Screenshot 2026-04-08 at 2 13 00 PM"
src="https://github.com/user-attachments/assets/5f70ec0f-2ddd-436f-92e5-16161be28ae2"
/>

Extension storybook running  with MMDS `Text`

<img width="1500" height="876" alt="Screenshot 2026-04-08 at 2 14 09 PM"
src="https://github.com/user-attachments/assets/17e5fefc-1c5a-4d47-ba74-987ec7c0b9ca"
/>


## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs)
- [x] I've completed the PR template to the best of my ability
- [x] I've included tests if applicable
- [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-extension/blob/develop/.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.

<div><a
href="https://cursor.com/agents/bc-200db13e-7cf7-4b8a-a5ae-77e06cae2d41"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-web-light.png"><img
alt="Open in Web" width="114" height="28"
src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a>&nbsp;<a
href="https://cursor.com/automations/864f6729-e11f-445a-9607-65e9539d53c1"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/view-automation-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/view-automation-light.png"><img
alt="View Automation" width="141" height="28"
src="https://cursor.com/assets/images/view-automation-dark.png"></picture></a>&nbsp;</div>


<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> Medium risk because it replaces widely used `Text*` enums/types across
both React and React Native with shared const-union exports and updates
component typings/class mappings, which could cause subtle styling or
type-breaking regressions if any downstream imports rely on the removed
enums.
> 
> **Overview**
> Migrates cross-platform `Text` primitives to ADR-0003/0004 by
introducing shared `TextVariant`, `TextColor`, `FontWeight`,
`FontFamily`, `FontStyle`, and `TextPropsShared` in
`@metamask/design-system-shared`, and updating React/React Native
components, stories, and tests to import these directly.
> 
> Removes duplicated `Text*` enums from both platform
`src/types/index.ts` (and converts React-only
`TextAlign`/`OverflowWrap`/`TextTransform` to const-union types),
refactors React `Text` to map semantic shared font values to Tailwind
classes via new mapping constants, and adjusts RN `Text` font-weight
defaults to explicit shared mappings.
> 
> Updates Storybook Tailwind scanning to include `design-system-shared`
sources, and documents the new import rules in
`.cursor/rules/component-architecture.md` to avoid importing shared
types via sibling component indices.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
4ce710b. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: George Marshall <georgewrmarshall@users.noreply.github.com>
Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size-XS team-design-system All issues relating to design system in Extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants