UI Customization
Summary
You can customise the look and feel of the wallet to suit the UI of your game. Currently, you can customise the colours of the wallet, however we are constantly working to add more customisation options. If you have any requests, please post it on our Discord and we will look into it.
Reference
You can customise the theme of the wallet using the theme
object passed in as an option while initialising the Metafi Component. It is an optional field, and leaving it empty will cause the wallet to use the default theme.
The theme object accepts the following parameters.
fontColors?
Object
Allows you to adjust the font colours of the wallet. Accepts a primary and secondary colour - primary is used for headings, and secondary is used for most other text. Example:
bgColor?
String
Allows you to adjust the background colour of the wallet, as well as the bg colour of menus and popups. Accepts any CSS colour string as input. Example:
ctaButton?
Object
Adjust the colours of CTA Buttons in the wallet. You can adjust the font colour and background colour of the buttons. Example:
optionButton?
Object
Adjust the colours of non-CTA Buttons in the wallet. You can adjust the font colour and background colour of the buttons. Example:
metafiLogoColor?
String
Set the Metafi logo to either light mode or dark mode. For a dark background, please set the Metafi Logo to light
colour. the default is dark
Example
Last updated