Skip to main content

Customization

The modal supports visual customization via CSS variables. Set them on :root or any ancestor of the <connect-modal> element.

CSS Variables

VariableDescriptionDefault
--up-modal-font-familyModal font familyInter, ui-sans-serif, system-ui, sans-serif
--up-modal-font-colorModal text color (light)#243542
--up-modal-font-dark-colorModal text color (dark)#f5f8fa
--up-modal-btn-colorButton background (light)#ffffff
--up-modal-btn-dark-colorButton background (dark)#243542
--up-modal-btn-textButton text & icon (light)#243542
--up-modal-btn-dark-textButton text & icon (dark)#ffffff
--up-modal-btn-radiusButton border radius12px (large) / 10px (medium)
--up-modal-border-radiusModal border radius12px
--up-modal-bgModal background (light)#f8fafb
--up-modal-dark-bgModal background (dark)#121b21

Example: Custom Brand Colors

<style>
:root {
--up-modal-font-family: 'Roboto', sans-serif;
--up-modal-font-color: #1e3a5f;
--up-modal-btn-color: #4285f4;
--up-modal-btn-text: #ffffff;
--up-modal-bg: #eff6ff;
--up-modal-border-radius: 20px;
}
</style>