Skip to main content

Dark Overlay Architecture

Dark overlays create depth and separation in the UI. They are used for:
  • Shadows cast by elevated elements
  • Modal backdrops (scrims)
  • Dimming effects on inactive areas
  • Depth indicators in layered interfaces

Dark Overlay Visual Hierarchy

Why Black for Dark Overlays?

Unlike light overlays which derive from --color-text-primary (theme-dependent), dark overlays use a fixed black value because:
  1. Universal darkening: Black works to darken any background
  2. No hue shift: Pure black does not introduce unwanted color
  3. Predictable behavior: Same shadow appearance across themes
  4. Performance: No variable resolution needed

Dialog Shadow System

Dialog shadows create the illusion of elevation, making dialogs appear to float above the content.

Multi-Layer Shadow Analysis

Dialog Component Architecture


The modal backdrop dims the content behind a dialog, focusing user attention on the modal content.

Backdrop Purpose and Psychology

Backdrop vs Dark Overlay Comparison


Element Background Elevation

Element backgrounds create subtle elevation differences between UI components.

Element Elevation System


Border Color Transparency

Transparent borders adapt to any background while providing consistent visual separation.

Transparent Border Analysis


Scrollbar Transparency

Scrollbars use semi-transparent colors to remain visible without dominating the UI.

Scrollbar Transparency Pattern


Light Theme Shadow Adjustments

Light themes require different shadow intensities because dark elements on white backgrounds are more visible.

Theme-Specific Shadow Comparison


THE CENTER

How Shadows Communicate Information Flow

Shadows and overlays create a spatial metaphor for information hierarchy. When a dialog appears with a heavy shadow and backdrop, the user understands intuitively that this content demands attention. The β€œdepth” created by shadows maps directly to priority in the information flow. In the Gestalt Color System:
  • No shadow: Base content, part of the flow
  • Light shadow (5-10%): Slightly elevated, interactive elements
  • Medium shadow (20%): Important UI components, dropdowns
  • Heavy shadow (40%): Critical dialogs, high-priority interruptions
  • Backdrop (70%): Modal state, blocking content
This elevation system works in concert with color transparency to create a complete visual language for information priority.

State Changes

Learn how colors flow through hover, active, and disabled states