Modal

A dialog overlay with a configurable title, rich text body, and two footer action buttons. The trigger button opens the modal. The right (confirm) action uses the type field to switch between primary and danger styling. The left (cancel) action is always a neutral secondary style.

CSS variables

VariableTheme fieldUsed for
--color-primaryglobal_colors.primary_colorTrigger button and primary confirm action button background
--color-surfaceglobal_colors.menu_backgroundCancel button background and modal body background
--color-headingglobal_colors.heading_colorCancel button text color and modal title
--color-borderglobal_colors.border_colorCancel button border; header and footer divider lines
--color-page-bgglobal_colors.page_colorModal footer background tint
--color-errorglobal_colors.error_colorDanger confirm action button background

Primary confirm

The confirm action button uses --color-primary. Use for positive confirmations — saving changes, submitting a form, creating a record, or proceeding through a flow. The action is constructive or neutral.

Open modal

Danger confirm

The confirm action button uses --color-error. Use for destructive confirmations — permanently deleting a record, archiving with no recovery, removing access, or discarding unsaved work. The error color signals that the action cannot be undone.

Delete record