Skip to main content

UI customization

Learn how to customize the mobile SDK UI to blend seamlessly into your app.

The mobile SDK comes with two default themes:

To switch between these themes, pass a DojoThemeSettings object as a parameter when starting the payment flow.

ui-customization.kts
loading...

Properties

DojoThemeSettings contains multiple properties that you can set individually.

PropertyDescription
primaryLabelTextColorPrimary label color.
secondaryLabelTextColorSecondary label color.
headerTintColorHeader text color.
headerButtonTintColorColor of header buttons like the X button.
primarySurfaceBackgroundColorBackground color of the screen.
primaryCTAButtonActiveBackgroundColorBackground color of primary button.
primaryCTAButtonActiveTextColorFont color of primary button.
primaryCTAButtonDisabledBackgroundColorBackground color of disabled state of primary button (filled button).
primaryCTAButtonDisableTextColorFont color of disabled state of primary button.
secondaryCTAButtonActiveBorderColorBorder color of the secondary button (button that's transparent and only has a border color). The background color is the same as current primarySurfaceBackgroundColor and can’t be changed.
secondaryCTAButtonActiveTextColorFont color of secondary button.
separatorColorColor of separator between header and the screen content.
errorTextColorError message color.
loadingIndicatorColorColor of the animated loader on the initial loading screen.
inputFieldPlaceholderColorInput field placeholder color.
inputFieldBackgroundColorInput field background color.
inputFieldDefaultBorderColorInput field default border color when field isn't selected and not in the error state.
inputFieldSelectedBorderColorInput field border color when selected.
inputElementActiveTintColorColor of tick boxes and saved card selection circle when selected.
inputElementDefaultTintColorColor of tick boxes and saved card selection circle when not selected.

Illustrations

The following images are illustrations of the items available for customization.

Screen 1: Google Pay

Screen 2: Saved card

Screen 3: Input name, address, and email id

Screen 4: Input screen with keypad