Skip to content

Modal Styling

Style every visual detail of the Modal option type — the trigger button, the modal itself, the backdrop, the header, and the open animation — using per-type templates.

Overview

Read Types Settings first if you haven't created a template before. This page covers every setting available once you're editing a Modal template, grouped the same way they appear in the editor's left navigation.

What a Modal template styles — and what it doesn't

A Modal template styles the frame: the button, the panel, the backdrop and the header. It deliberately has no settings for the body text, because that content is written in the Rich text or HTML Block editor and keeps the shared styling those types already use. Style the body once there, and every modal follows.

A new Modal template starts from your shop's theme colors — button, text, background, and border — rather than fixed values, so it looks like your store before you change anything. Hover colors are derived to differ from their idle counterparts rather than starting identical.

Trigger Button

The only part visible before the modal opens.

SettingWhat it controlsDefaultOptions / Range
Button styleThe overall look of the button. Also decides which settings below appearSolidSolid, Outline, Link

In-app help: Solid fills the button, Outline shows only a border, Link renders it as underlined text.

Button colors

Edited via Idle and Hover state tabs. Each style shows only the colors it actually paints:

SettingWhat it controlsShown forDefault
TextButton label color for that stateAll stylesTheme button text (Solid) / theme text (Outline, Link)
BackgroundButton fill for that stateSolid onlyTheme button
BorderBorder color for that stateSolid, OutlineTheme button

Solid and Outline keep separate text colors

A Solid button's label sits on its own fill — often white. An Outline or Link button's label sits on the page. They're stored separately so switching between the two styles never leaves you with an invisible label, and each keeps its own color.

Button shape and text

SettingWhat it controlsShown forDefaultRange
Font sizeButton text sizeAll styles15px11–24px
Font weightButton text weightAll stylesMedium (500)Light (300) – Bold (700)
Corner radiusButton corner roundingSolid, Outline6px (from your global button radius)0–40px
Border widthBorder thicknessSolid, Outline1px0–6px
ShadowDrop shadow under the buttonSolid, OutlineNoneNone, Soft, Strong
Padding (per side)Space inside the buttonSolid, Outline10px top/bottom, 18px left/right0–40px
Full width buttonStretches the button across the options areaSolid, OutlineOff

Link style ignores the box settings

A Link trigger is plain underlined text, so corner radius, border width, shadow, padding, and full width don't apply and aren't shown.

The panel itself.

SettingWhat it controlsDefaultOptions / Range
SizeMaximum width on desktopMediumSmall (420px), Medium (560px), Large (800px), Custom
Maximum width (Custom size only)Exact maximum width560px320–1200px, in steps of 20
CornersCorner rounding of the modalRoundedSquare (0), Rounded (8px), Extra rounded (20px), Custom
Corner radius (Custom corners only)Exact corner radius8px0–48px
ShadowElevation under the modalSoftNone, Soft, Strong, Custom
Shadow blur (Custom shadow only)How far the shadow spreads48px0–96px
Shadow distance (Custom shadow only)How far the shadow falls16px0–48px
Shadow strength (Custom shadow only)How dark the shadow is22%0–60%
SpacingPadding around the title and contentComfortableComfortable, Compact, Custom
Content padding (Custom spacing only)Exact padding around the content16px all sides0–48px

In-app help for Size: Maximum width on desktop. Every size fills the screen on mobile. Spacing: Controls the padding around the title and the content.

Colors

SettingWhat it controlsDefault
BackgroundModal fill (the body area — the header has its own)Theme background
Border colorColor of the modal's borderTheme border
Border widthThickness of that border — 0 means no border0px (0–6px)

Size only caps the desktop width

Every size fills the screen on mobile. Pick the size for how much content you have on desktop — a size chart usually wants Large, a short note Small.

Backdrop

What the page behind an open modal looks like.

SettingWhat it controlsDefaultOptions / Range
BackdropThe backdrop treatmentDim and blurNone, Dim, Dim and blur
Backdrop color (Dim, Dim and blur)The dim colorBlack
Dim amount (Dim, Dim and blur)How dark the page behind gets45%0–90%, in steps of 5
Blur amount (Dim and blur only)How blurred the page behind gets4px1–20px

Blur degrades gracefully

In-app help: Blur is ignored by browsers that do not support it; the dim still applies. Customers on those browsers still get the dimmed backdrop, so the modal never loses its separation from the page.

The title and close button at the top of the modal. Both live under the same group, in two sections.

Title

SettingWhat it controlsDefaultOptions / Range
AlignmentTitle alignmentLeftLeft, Center, Right
Font sizeTitle size18px12–36px
Font weightTitle weightSemibold (600)Light (300) – Bold (700)
Letter spacingSpacing between letters0px−1 to 4px, in steps of 0.5
Letter caseCase transformationAs typedAs typed, UPPERCASE, Capitalize
ColorTitle colorTheme text
Title backgroundHeader bar fill — transparent matches the modal backgroundTransparent
Title padding (per side)Space around the title16px top, 16px sides, 12px bottom0–48px
Divider under the titleDraws a line between the title and the contentOn
Divider color (if divider on)Color of that lineTheme border

Tint the header independently

Title background is separate from the modal's Background so you can give the header bar its own color. Leave it transparent and the header simply matches the modal.

Close button

SettingWhat it controlsDefaultOptions / Range
Close buttonThe button's visual treatment. Also decides which settings appear belowPlainPlain, Filled, Outline
SizeButton size — the X scales with itMedium (32px)Small (28px), Medium (32px), Large (40px), Custom
Button size (Custom size only)Exact button size32px24–56px
Shape (Filled, Outline)Button corner shapeRoundedSquare, Rounded, Circle, Custom
Corner radius (Custom shape only)Exact corner radius4px0–28px

In-app help: Plain shows only the icon, Filled adds a background shape, Outline adds a border.

Colors are edited per state, and each style shows only what it paints:

SettingWhat it controlsShown forIdle defaultHover default
IconThe X colorAll stylesTheme textSlightly lighter than idle
BackgroundThe shape's fillFilled onlyLight tint of theme backgroundA stronger tint
BorderThe border colorOutline onlyTheme borderDarker than idle

Shape is hidden for Plain

Plain draws no shape — only a light tint on hover, whose corners are fixed — so there's nothing for Shape to change. The minimum custom size is 24px, which is the accessible minimum target size.

Motion

SettingWhat it controlsDefaultOptions
Open animationHow the modal appearsFadeNone, Fade, Slide up

In-app help: Skipped automatically for shoppers who prefer reduced motion. Customers who've asked their device for reduced motion get the modal with no animation, whatever you pick here.

Contrast Warnings

While you edit, the editor flags combinations a customer would struggle to read — the button text against its own background or the page, the title against the header or modal background, and the close icon against whatever sits behind it. Text is checked against the text-contrast threshold and the close icon against the (lower) threshold for graphical controls.

A warning doesn't block saving. It tells you the pairing is hard to read so you can decide.

How to Style a Modal

  1. Open the Style Settings modal (see Customization Overview)
  2. Click TypesModal
  3. Create a new template or click an existing one to edit it
  4. Use the left navigation to jump between Trigger button, Modal, Backdrop, Header, and Motion
  5. Click the trigger button in the Live Preview to open the modal — it opens over the preview area, with the button and product blurred behind it, and stays open while you edit
  6. Close it with the X, Escape, or a click on the backdrop, and click the trigger to reopen it
  7. Click Save in the contextual save bar

Style the trigger before you open it

The Live Preview starts closed, the same as the storefront — you see the button first. Get the trigger right, then open the modal and work on the panel, backdrop and header.