Skip to content

Color Scheme

Defines the color scheme, brand colors, and various color states for UI elements.

component

Color Theme

ColorTheme {
  scheme: ColorScheme // (1)!

  brand: Color // (2)!
  primary: Color // (3)!
  secondary: Color // (4)!

  onDark: Color // (5)!
  onLight: Color // (6)!

  background: Color // (7)!
  screen: Color // (8)!
  neutral: Color // (9)!
  border: Color // (10)!
}
  1. Defines whether the SDK uses a light or dark theme. Provided colors should match the scheme.

  2. Main accent color for primary actions and highlights throughout the interface.

    color

    Default ARGB #FF4000FF

  3. Primary color used for main content labels and icons, and important information.

    color

    Default ARGB #FF000000

  4. Secondary color used for supporting content and less prominent information.

    color

    Default ARGB #FF9F9F9F

  5. Preferably light color in any scheme optimized for use on dark, brand, and neutral backgrounds.

    color

    Default ARGB #FFFFFFFF

  6. Preferably dark color in any scheme optimized for use on light backgrounds.

    color

    Default ARGB #FF000000

  7. Main background color used throughout the SDK interface.

    Default ARGB #FFFFFFFF

  8. Zero-elevation background color.

    For the full-screen mode in the dark scheme, this color is used as a page background color, while bottom sheets inside the SDK will still use the background color. In any scheme, it will be used for full-screen image galleries.

    It's actually supposed to be black or close to black in any scheme.

    Default ARGB #FF000000

  9. Neutral background color used for various UI components.

    Default ARGB #FFF2F2F7

  10. Color used for component borders and dividers.

    Default ARGB #FFE5E5EA

Color Scheme

enum ColorScheme {
  light // (1)!
  dark // (2)!
}
  1. Light theme with predominantly light colors in the design.

  2. Dark theme with predominantly dark colors in the design.

Affects the style of blur components

On iOS only it affects the appearance of system screens (e.g., photo gallery, share activity, etc.) and ensures that their UIUserInterfaceStyle matches the selected style. For example, if the SDK is set to a light theme but the system theme on the device is dark, the system windows invoked by the SDK will still use the light theme.