White-label theming
All Drop-In UI Components (aka “Drop-Ins”) can be customized across Web, iOS and Android to promote consistency in your brand.
In this guide, we discuss:
- Theming Drop-In UI Components
- Theme Definitions
Theming Drop-Ins
To change the look and feel you will need to define a collection of style variables, called a theme. The theme is passed directly into the render command of the Client SDKs. This enables different theme definitions per Drop-In instance included in your app.
Theme Definitions
Style variables are organized into three primary sections: Text, Shape, and Color.
Additionally, there are component-specific sections, such as Button, that allow for further styling that is not covered in the primary sections.
Text Style Variables
All style variables in this section are nested under the text
namespace (e.g. yourBrandsTheme.text.size
).
Shape Style Variables
All style variables in this section are nested under the shape
namespace (e.g. yourBrandsTheme.shape.cornerRadius
).
Color Style Variables
All style variables in this section are nested under the color
namespace (e.g. yourBrandsTheme.color.background
).
Button Style Variables
All style variables in this section are nested under the color
namespace (e.g. yourBrandsTheme.button.text.size
, yourBrandsTheme.button.color.border
).
Custom Content Definitions
Text content can be customized for a specific component using the content parameter. See the documentation for each component for more information.