Communitygithub.com

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for non-overlay notifications, managing global announcements and contextual inline alerts to communicate system states without interrupting the user's flow.

What is coastai-skills?

coastai-skills is a Claude Code agent skill that design and implement a systematic framework for non-overlay notifications, managing global announcements and contextual inline alerts to communicate system states without interrupting the user's flow.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/coastdigitalgroup/coastai-skills/tree/HEAD/website-design/banner-and-alert-system

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Banner and Alert System

Purpose

The Banner and Alert System provides a methodology for designing non-persistent, non-overlay communication layers. Unlike modals which stop the user, banners and alerts provide critical information (status updates, warnings, or announcements) while allowing the user to continue their current task. This system ensures that notifications are visually distinct, appropriately prioritized, and accessible.

Use Cases

  • Communicating site-wide announcements (e.g., "Scheduled maintenance in 2 hours").
  • Providing contextual feedback within a form (e.g., "Changes saved successfully").
  • Warning users about account issues (e.g., "Subscription expires in 3 days").
  • Notifying users of systemic errors that don't block the entire app but affect functionality (e.g., "Bank sync is currently unavailable").
  • Displaying "Marketing Banners" for promotions or new feature launches.

When NOT to Use

  • Critical Blocks: If the user must take action before proceeding, use overlay-and-dialog-system (Modal).
  • Passive Feedback: For short-lived, low-priority status updates (e.g., "Link copied"), use Toasts (see overlay-and-dialog-system).
  • Data Labels: For simple status indicators on a single item, use badge-and-tag-system.
  • Navigation: Do not use banners for primary or secondary navigation links; use site-navigation-system.

Inputs

  1. Message Gravity: Is this an Error, Warning, Success, or Info message?
  2. Scope: Is this Global (site-wide) or Inline (specific to a section/page)?
  3. Dismissibility: Can the user hide this message, or must it remain visible?
  4. Action Requirement: Does the message require a follow-up action (e.g., "Update Billing")?
  5. Brand Palette: Standard colors for status states (Danger red, Warning amber, etc.).

Outputs

  1. Alert Anatomy Spec: Definition of the icon, text hierarchy, and action placement.
  2. Spatial Logic: Rules for where banners appear (Top of viewport, Above content, or Inside a section).
  3. State Matrix: Visual treatments for different message gravities.
  4. Accessibility Plan: ARIA roles and focus management rules for interactive alerts.

Workflow

1. Determine the Alert Level (Gravity)

Assign a state based on the intent:

  • Error (High Priority): Critical issues that require attention but don't break the view.
  • Warning (Medium Priority): Potential issues or upcoming deadlines.
  • Success (Low Priority): Confirmation of a completed action.
  • Info/Announcement: Neutral information or marketing updates.

2. Choose the Placement Pattern

  • Global Banner (Top-Bar): Sits at the very top of the viewport. Best for high-priority, site-wide announcements.
  • Page Banner: Sits below the global header but above page content. Best for page-specific notifications.
  • Inline Alert: Sits directly within a section or next to a relevant component (e.g., inside a form). Best for contextual feedback.

3. Design the Component Anatomy

Each alert should follow a consistent internal hierarchy:

  • Icon: A visual shorthand for the gravity (e.g., checkmark for success).
  • Title (Optional): A bold heading for longer alerts.
  • Description: The core message. Keep it concise.
  • Action: A button or link for the next step.
  • Dismiss Trigger: An 'X' button if the alert is non-critical.

4. Establish Interaction Rules

  • Persistence: Determine if the alert disappears after an action, after a timeout (not recommended for banners), or only when manually dismissed.
  • Layout Shift Management: Ensure that appearing banners don't cause jarring layout shifts (CLS). Use reserved space or smooth transitions.

5. Define Responsive Behavior

  • Stacking: On mobile, actions should move below the text if they don't fit horizontally.
  • Width: Global banners are full-width; inline alerts follow the container width.

Decision Rules

  • The "One-at-a-Time" Rule: Never stack more than two global banners. If you have multiple announcements, consolidate them into a single "Notification Center" or a slider.
  • Color + Icon: Never rely on color alone to communicate the alert state. Always include an icon for accessibility.
  • Placement by Context: If the alert is caused by a user action (e.g., hitting "Save"), place the alert near the action point (Inline). If it's a system state, place it at the top (Global).
  • Dismissibility Logic: Always allow users to dismiss "Info" and "Success" banners. "Error" and "Warning" banners should only be dismissed if the underlying issue is resolved.

Constraints

  • Accessibility: Use role="alert" for high-priority errors and role="status" for lower-priority updates. Ensure a 4.5:1 contrast ratio for text. If a global banner is sticky/fixed, verify it never permanently obscures a focused element as content scrolls (WCAG 2.2 SC 2.4.11).
  • Typography: Use a clear font size (min 14px) and avoid all-caps for long descriptions.
  • Mobile Reach: Ensure dismiss buttons meet the WCAG 2.2 SC 2.5.8 minimum of 24x24px, sized up to 44x44px where layout allows.

Common Failure Patterns

  • The "Ignorable Error": Using "Info" styling for a critical error, causing the user to miss important warnings.
  • Intrusive Marketing: Using global banners for low-value promotions that annoy users and devalue the "Alert" space.
  • Missing Actions: Telling a user something is wrong (e.g., "Payment failed") without providing a direct link to fix it.
  • Layout Thrashing: Banners that "pop in" and push the entire page content down, causing users to misclick.

Validation Criteria

  • Every alert uses an icon and color combination that matches its gravity.
  • Global banners are positioned at the top of the hierarchy.
  • Inline alerts are placed in close proximity to their related content.
  • All interactive elements (Close, CTA) meet the WCAG 2.2 24x24px minimum touch target (2.5.8).
  • High-priority alerts use appropriate ARIA roles (alert).
  • Dismissible banners remember their state (or have a logic for when to reappear).

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for progressive disclosure using accordions, ensuring structural integrity, visual affordances, and accessibility across different content densities and devices.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for long-form content, managing readability, vertical rhythm, and information density to ensure a superior reading experience.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for informational elements that communicate state (Badges) and categorization (Tags) with clarity and accessibility.

coastdigitalgroup/coastai-skills

Design and implement a systematic, asymmetrical bento-grid layout framework to organize diverse content types cohesively while maintaining strict visual hierarchy, logical focus order, and responsive flexibility.

coastdigitalgroup/coastai-skills

Design a responsive, mobile-first bottom navigation bar and persistent action dock system for mobile websites and web applications, establishing spatial anchors, tab bar anatomy, badge indicators, thumb-zone ergonomics, safe area inset handling, active/inactive state contrast, and desktop responsive adaptation rules.

coastdigitalgroup/coastai-skills

Design a mobile-first bottom sheet overlay system with configurable detents, drag affordances, safe area padding, responsive desktop modal/popover adaptation, and WCAG AA accessibility compliance.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for secondary navigation trails that provide orientation, context, and one-click access to parent levels in deep information architectures.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for buttons and interactive triggers, managing visual hierarchy, variant logic, and action grouping to ensure clear intent and accessible interaction.

coastdigitalgroup/coastai-skills

Design a systematic framework for date and time selection, managing calendar grids, range pickers, and scheduling interfaces to ensure precision and accessibility.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for modular content containers that maintain hierarchy, structural integrity, and action alignment across variable content and responsive viewports.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for horizontal discovery components, managing navigation affordances, scroll behavior, and accessibility to ensure effective content density without compromising usability.

coastdigitalgroup/coastai-skills

Design a systematic, highly accessible, and developer-friendly UI layout framework for code blocks, snippet showcases, multi-file code tabs, line-highlighting, diff views, and syntax token contrast in technical documentation and developer platforms.

coastdigitalgroup/coastai-skills

Design a systematic framework for global command menus (Cmd+K panels) that combines keyboard-driven navigation, command execution, and shortcut discovery into an accessible, responsive overlay.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for threaded conversations, managing nesting depths, action hierarchies, and community signaling to foster engagement and readability.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for side-by-side comparison interfaces, managing high attribute density and responsive complexity to support informed decision-making.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for user privacy, managing consent banners, preference centers, and persistent privacy controls to balance legal compliance with user trust.

coastdigitalgroup/coastai-skills

Design and implement a systematic, highly accessible, and responsive visual layout framework for conversational chat widgets, live chat boxes, and chatbot panels that ensures clear message scannability, native focus flow, and seamless mobile keyboard adaptation.

coastdigitalgroup/coastai-skills

Design a systematic, accessible, and high-conversion framework for custom select dropdowns and comboboxes, defining anatomy, states, search-filtering, and responsive mobile-adaptive patterns.

coastdigitalgroup/coastai-skills

Design and specify a systematic dark theme framework, establishing rules for elevation-based surface colors, desaturated brand accents, text legibility, and media adaptation to ensure an accessible, low-fatigue experience.

coastdigitalgroup/coastai-skills

Design and implement a systematic color palette that ensures WCAG 2.2 accessibility compliance. Trigger this skill when asked to define brand colors, create UI themes, or establish a visual system for a website.

Related Skills