Skip to content

Overlay

The overlay serves to temporarily highlight important content—such as modals, panels, or notifications—by isolating it from the primary interface, thereby directing user attention.

The overlay is designed to present transient content—such as modals, panels, or notifications—in a way that immediately captures the user’s attention while maintaining a clear separation from the underlying interface.

Overlay

Utilize a semi-transparent dark background with an opacity of about 80%. This dims the underlying interface, providing sufficient contrast while maintaining context.

Values from @sbks/ds-design-library@10.3.0
NameTokenLightDark
DefaultDefault background overlay for dialogs--color-overlay-defaultBlack 60Black 60
InverseInversed background overlay use inside a dialogs--color-overlay-inverseWhite 60Black 60

As part of the overlay, Soul uses smooth fade-in and fade-out transitions, with durations typically around 180ms, to ensure that the overlay’s appearance and disappearance feel natural and unobtrusive.

💡 Important: Avoid overly dramatic animations; the focus should remain on content clarity and user comprehension.

Visually, the overlay should signal its active state clearly, and in the background, ensure that focus (both visual and programmatic) is appropriately managed to assist users navigating via keyboard or assistive technologies.

All text and interactive elements within the overlay should maintain high readability standards, ensuring that critical information is accessible to all users.