Solarus Design system
Updated · 20 Nov 2026 solarus.run
Base · Overlays

Modal

Centred dialog for focused flows (add a repository, send feedback). <Modal onClose width label>.

Notes

  • Ivory, 16px radius, up to 640px wide (or width), over the scrim; pops in from 14px below.
  • One top row: icon or eyebrow on the left, .x-btn close top-right; then the display title, the body, and the actions right-aligned (one primary).
  • Esc, a scrim click, or a click outside the dialog close it.
  • Consumer provides onClose, the content and optionally width.
  • Not used in the Solarus app. A confirmation is an ActionCard in the conversation.

Code

// React · window.Solarus
<Modal onClose width label />

/* HTML classes · bundle.css */
.modal