Skip to main content

Appearance Mode Configuration

You can control the SDK’s appearance mode independently of the system setting using the appearanceMode property in uiOptions. This is particularly useful for apps that implement their own theme management.

Example

This feature is especially helpful when:
  • Your app has an “Always Light” or “Always Dark” mode setting
  • You want to maintain consistent appearance across the payment flow
  • You need to override the system’s dark mode setting for specific user preferences
⚠️ If no settings are provided, the SDK will initialize with its default settings.
Use PrimerSettings to provide different options based on your use case.