Render modes, layouts and styling
Last updated
Last updated
The embedded UI can be shown in an in-line container, or popped out in a modal. In addition, it can be shown in a wide or narrow layout.
renderMode=IntegryJS.RenderModes.INLINE
renderMode=IntegryJS.RenderModes.MODAL
layout=IntegryJS.Layouts.NARROW
The SDK comes with some default styles which can be overridden on demand to customize different parts of the UI.
We use BEM naming to style internal components and scope the default CSS to the container used to instantiate that template via a dynamically generated class. This allows independent styling of different integration views using their respective container IDs.
The views respect the font-family
attribute and the font stack is set to the following generic one by default:
To update the font, override the font-family
attribute.
You can use this approach to override individual items with higher specificity. By specifying the ID of the container used to configure the SDK along with a custom class name, styles can be overridden for containers, controls and components.