Visual Customization

How SDK v2 takes your colors with setStyle: the variables that differ from v1 and the button contrast check.

The UnifiedEnrollmentSdk global (open, close, setStyle), the iframe and the overlay are the same in both versions. Every v1 setStyle variable works in v2 (the list: Make it yours). For colors:

  • v2 has no step progress bar, so --progress-bar-color colors the bank step's spinner, and --progress-track-color colors its track and the hover behind the header's back button.
  • v2 adds --btn-primary-color, the text color on primary buttons. When that text would fall under a 4.5:1 contrast ratio on --btn-primary-bg-color, v2 darkens the background until it passes and logs the color it applied.
  • Secondary buttons are outlined: --btn-secondary-color colors their border and label, with no fill. When it falls under 4.5:1 on the white card, v2 darkens it the same way and logs the color it applied.

Did this page help you?