Skip to main content

Color

ClassPropertySCSSHEX
.bx--modal-containerbackground-color$ui-01#ffffff
.bx--modal-containerborder-top$brand-01#3d70b2
.bx--modal-header__labelcolor$text-01#152935
.bx--modal-header__headingcolor$text-02#5a6872
.bx--modal-contentcolor$text-01#152935
.bx--modal-close__iconfill$ui-05#5a6872
.bx--modal-footerbackground-color$ui-05#5a6872
.bx--modalbackground-color$ui-03#dfe3e6 @ 50% opacity

Typography

Modal labels are optional and should be set in all caps when used. Modal titles should be set in sentence case and should not exceed three words. Important directions or information in the Modal text can be bold, otherwise it should be in roman.

ClassFont-size (px/rem)Font-weightType style
.bx--modal-header__label14 / 0.875Semi-Bold / 600.bx--type-zeta
.bx--modal-header__heading28 / 1.75Light / 300.bx--type-beta
.bx--modal-content16 / 1Normal / 400p

Layer

ClassLayer, ElevationBox-shadow
.bx--modal-containerPop-out , 240 12px 24px 0 rgba(0,0,0,0.10);

Structure

ClassPropertypx / remSpacing token
.bx--modal-containerborder-top4 / 0.25-
.bx--modal-close__iconheight, width10 / 0.625-
.bx--modal-containerpadding-left, padding-right48 / 3$spacing-3xl
.bx--modal-containerpadding-top40 / 2.5$spacing-2xl
.bx--modal-header__label .bx--type-deltamargin-bottom8 / 0.5$spacing-xs
.bx--modal-headermargin-bottom24 / 1.5$spacing-lg
.bx--modal-contentmargin-bottom48 / 3$spacing-3xl
.bx--modal-footerpadding-top, padding-bottom32 / 2$spacing-xl
.bx--modal-footerpadding-left, padding-right48 / 3$spacing-3xl
.bx--btn--secondary + .bx--btn--primary,margin-left16 / 1$spacing-md

Structure and spacing measurements for Passive Modal Structure and spacing measurements for a Passive Modal | px / rem

Structure and spacing measurements for Transactional Modal elements Structure and spacing measurements for a Transactional Modal | px / rem

Mobile

Modals should be full screen on mobile.

Example of a Modal on a mobile screen