Tortusfor Designers
Snippet Library/Site Chrome

Popups & modals

Custom modals and popups — the style overrides, the class hooks, and the per-modal scoped Custom CSS escape hatch.

A custom modal (a centered dialog with a dimming overlay) or popup (a corner card that slides in without blocking the page) is built from the site's Popups settings — copy, image, a CTA, and an optional lead form. Triggers mirror the runtime: an on-page link to #modal_<id>, exit-intent, or a time delay. Blank colors and radius inherit the live site theme, so a modal wears your site's own background, text, and button treatment out of the box.

Style overrides

Each modal carries a style group. A curated variant sets the chrome character; the rest are per-field overrides (blank = inherit the theme token).

OverrideValues
typemodal (centered + overlay) / popup (corner card)
variantminimal / glass / elevated / editorial
overlayColorcolor — the dimming scrim (modal only)
surfaceColorcolor — card background (blank → --color-background)
textColorcolor — body text (blank → --color-text)
accentColorcolor — CTA button + accents (blank → --color-accent / site button)
closeColorcolor — the × glyph
radiuspx — card corner radius
widthsm (400px) / md (500px) / lg (620px)
positioncenter / bottom

The class hooks

HookElement
.tortus-site-modalthe container (also carries the per-modal scope id)
.tsm-surfacethe modal card
.tsm-btnthe CTA / submit button

Custom CSS is scoped per-modal to #tortus-modal-css-<id> (the container id), so a rule can only touch that one modal — and the brand tokens are present on the container, so scoped CSS can reference --color-* / --font-*.

A centered modal

Restyling with the hooks

In a modal's Custom CSS field you target .tsm-surface / .tsm-btn directly — this is what you paste; it's scoped to the modal's container for you.

Editorial surface, pill CTA

Scoped to `#tortus-modal-css-<id>` per modal — one modal's Custom CSS never touches another. Reference the site's `--color-*` / `--font-*` tokens to stay on-brand.

Reach for the variant + color overrides first; drop to the class hooks only when you need more. This is the same scoped-Custom-CSS escape hatch that page-builder blocks expose via Convert to custom.

Full param table: Designer Handbook.