Miniapp White-labeling
Boxo miniapps can be customized to match the appearance of the host app. This means that the same miniapp can have different visual styles depending on the host app it’s launched in.
White-Labeling Process:
To enable white-labeling, host app theming colors and details, such as the host app’s name and logo, are provided to the miniapp within its settings.
Steps to Get Started:
-
Enable Inheritance of Host App Colors
Turn on Inherit host app colors within the miniapp settings. Additionally, provide default colors for scenarios where the host app doesn’t share its theming colors. -
Retrieve Miniapp Settings
Call theAppBoxoWebAppGetMiniappSettings
event to retrieve the miniapp’s settings. -
Apply UI Customizations
Update the UI accordingly, using the data provided in the settings.
Here is an example of overriding CSS custom properties (variables):