SDK theme customizations

SDK Theme Customizations

Clients using the Alloy SDK can now customize colors and components for Alloy-built plugins in the SDK. This feature allows Alloy clients to style plugins to better match their own branding. For example, this SDK matches the green and grey colors of the company.

SDK Theme Customization Example
SDK Theme Customization Example

There are three ways to pass styling into the SDK, listed in hierarchical order:

  1. initParam.colors (the color parameter that previously existed in the SDK init params)
    1. “Primary” will override the color of the buttons
    2. “Secondary” will override the hover color of the buttons
  2. initParam.customStyle.componentOverride
  3. initParam.customStyle.theme

See API docs for more details here.