MetaMask / MetaMask/metamask-design-system

Consider font-based approach for rendering icons in the app

Open
#1,124 0 comments 0 reactions 1 assignee View on GitHub

@kirillzyusko is already working on this.

Since Apr 28, 2026.

team-design-system
Dominant language
TypeScript
Stars
37
Forks
14
Avg merge
1d 9h
Merged PRs (30d)
60

Description

Description

At the moment we are using react-native-svg for rendering icons. It's simple, but simplicity has its own cost and this cost is performance.

When we render SVG we:

  • create multiple components (G, Circle, etc.) in React tree
  • react reconciles them
  • after reconciliation all these components are rendered on native (sometimes path property are big and it takes some time to serialize them).

In this issue I'm proposing to consider font-based approach for rendering single-color icons (we have a plenty of them).

It may be a little bit harder to set everything up, but then instead of complex rendering pipeline we will simply render one character (which will be super fast).

We can also create FastIcon component and make migration step-by-step.

Technical Details

We can generate custom font where unicode symbols will be represented as our icons. We can use react-native-vector-icons (with custom fontello font). Or consider to use https://github.com/software-mansion-labs/react-native-nano-icons

Acceptance Criteria
  • Check app performance metrics
  • Assure no UI regressions are made
References

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.