Color Scheme¶
Defines the color scheme, brand colors, and various color states for UI elements.
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)!
}
-
Defines whether the SDK uses a light or dark theme. Provided colors should match the scheme.
-
Main accent color for primary actions and highlights throughout the interface.
Default ARGB
#FF4000FF
-
Primary color used for main content labels and icons, and important information.
Default ARGB
#FF000000
-
Secondary color used for supporting content and less prominent information.
Default ARGB
#FF9F9F9F
-
Preferably light color in any scheme optimized for use on dark, brand, and neutral backgrounds.
Default ARGB
#FFFFFFFF
-
Preferably dark color in any scheme optimized for use on light backgrounds.
Default ARGB
#FF000000
-
Main background color used throughout the SDK interface.
Default ARGB
#FFFFFFFF
-
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 thebackground
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
-
Neutral background color used for various UI components.
Default ARGB
#FFF2F2F7
-
Color used for component borders and dividers.
Default ARGB
#FFE5E5EA
Color Scheme¶
enum ColorScheme {
light // (1)!
dark // (2)!
}
-
Light theme with predominantly light colors in the design.
-
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.