overlay-and-dialog-system

Specify overlay pattern selection, anatomy, and accessibility for web and mobile.

2|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/coastdigitalgroup/coastai-skills --skill overlay-and-dialog-system
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: overlay-and-dialog-system
Source: https://github.com/coastdigitalgroup/coastai-skills/tree/main/website-design/overlay-and-dialog-system
Command: npx skills add https://github.com/coastdigitalgroup/coastai-skills --skill overlay-and-dialog-system

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Design teams need a systematic approach to managing non-persistent UI layers (Modals, Drawers, Popovers, and Toasts) to balance user focus, preserve context, and minimize interruptions.

Core Features & Use Cases

  • Pattern selection guidance based on interruption level, including Modal, Drawer, Popover, and Toast.
  • Anatomy and layering templates, accessibility considerations, and responsive behavior for overlays.
  • Practical use cases across desktop and mobile interfaces with implementation handoff guidance.

Quick Start

Describe a complete overlay pattern (pattern choice, anatomy, and accessibility notes) for a given UI task.

Frequently Asked Questions about overlay-and-dialog-system

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
When should I use a modal versus a drawer for UI overlays?

Choose a modal when you need to interrupt the user for critical focus, and select a drawer to preserve context while requesting secondary input. Pattern selection depends on the desired interruption level and whether maintaining background visibility is required.

How do I manage focus and accessibility for modal and popover overlays?

Manage modal and popover accessibility by trapping focus within the overlay, returning focus to the trigger element upon exit, and applying proper backdrop handling to ensure safe, predictable interactions for assistive technologies.

What is the best way to handle responsive behavior for drawers and toasts on mobile?

Handle responsive overlay behavior by adapting drawer and toast patterns for mobile contexts. Ensure patterns scale appropriately across screen sizes, maintaining consistent elevation, exit patterns, and interaction rules without losing context.

How do I design elevation and layering for multiple overlapping UI overlays?

Design elevation and layering for overlapping UI overlays by applying systematic z-index templates. Coordinate consistent layering patterns to balance user focus and prevent visual conflicts between modals, drawers, and popovers.

Does this overlay design system work for both web and mobile interfaces?

Yes, the overlay design system applies across both web and mobile interfaces. It specifies responsive behavior, pattern selection, and interaction rules to ensure predictable, accessible overlay interactions regardless of the platform context.