Overlays

Modal

A 440px surface over a blurred 40% overlay: a Status Modal with an Error, Warning, Success or Information icon, or a header, a body and a footer assembled from the kit. It holds focus until it is answered or dismissed.

Insert Status Modal Title

Insert your status modal description here. It would look better as two lines of text.

Add an error Orvain Status Modal, left aligned, titled “Insert Status Modal Title” with the description “Insert your status modal description here. It would look better as two lines of text.”, and a footer with a “Don’t show it again” checkbox, “Cancel” and “Continue”.

Orvain MCPIncluded with the library

When to use#

  • To confirm a destructive or irreversible action before it happens.
  • For a short task that must finish before the page makes sense again, such as naming a new project.

When not to use

  • Use an inline Alert or a toast for information that needs no decision.
  • Use a page for long forms or anything people may want to link to.

Anatomy#

1Surface

440 wide, radius 20, a subtle hairline inside, 0 8 10 of 12% shadow; capped to the screen on a phone.

2Status content

A 40px tinted icon (a 12px-radius square) beside, or above when centred, an H5 title and two lines of copy, 20px in.

3Header

Medium (78) with a description or Small (54 to 57), a Basic, icon or status icon, and a 24px close button pinned 8px in.

4Footer

Cancel and Continue (40px, radius 8), with a checkbox, toggle, stepper, link or note on the left; Fancy lifts the buttons.

5Overlay

rgba(7,7,7,0.4) with a 5px blur behind the surface.

States#

Error, Warning, Success, Information

The icon and its tint: #fcdfe5, #ffefdf, #e2fcdc or #ebf2ff.

Left or Centered Content

Icon beside the text (175 tall) or above it (231).

Fancy

The skeuomorphic Continue and a ringed Cancel.

Secondary button

Cancel can be dropped for a single acknowledgement.

Source#

Preview – final code pending

The Modal is available in the Figma library with every variant and state shown above. The React and Vue source, props table and install command will be added to this page when the code library is released.

Get notified when the source is published

Used in these blocks