Styling Drop-Ins
All Drop-In UI Components are required to be styled to match your brand’s look and feel. This is accomplished by passing a styles
object into the “render” function of the Client SDKs.
The styles
object is a required parameter and must be passed in every time you render a Drop-In UI Component.
Avoid directly styling the DOM
Please avoid directly styling the DOM. We cannot guarantee that IDs, classes, and DOM structure will remain consistent as we maintain these components.
Styling Options
There are four main nested sections of the styles
object: colors
, typography
, buttons
, and formInputs
. Below is a breakdown of each section:
Colors
The colors
section is used to define the general color palette of the Drop-In UI Components.
Typography
The typography
section is used to define the font styles of the Drop-In UI Components.
Buttons
The buttons
section is used to define the styles the various states of buttons used in the Drop-In UI Components.
Form Inputs
The formInputs
section is used to define the styles of form inputs, such as text select inputs, in the Drop-In UI Components.
Styles Object
Putting this all together, here is the full styles
object with example values. Every value is required.