law-of-figure-ground

Apply figure-ground principles to establish foreground and background hierarchy in UI layers.

2.5k|358|Updated Mar 7, 2026
One-click install
npx skills add https://github.com/Owl-Listener/designer-skills --skill law-of-figure-ground
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: law-of-figure-ground
Source: https://github.com/Owl-Listener/designer-skills/tree/main/ui-design/skills/law-of-figure-ground
Command: npx skills add https://github.com/Owl-Listener/designer-skills --skill law-of-figure-ground

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Interfaces often fail because users cannot instantly tell what is foreground content and what is background surface, causing confusion with modals, overlays, and layered components. This Skill applies the Gestalt Law of Figure-Ground so every layer of the interface has a deliberate, unambiguous depth relationship.

Core Features & Use Cases

  • Layered Surface Design: Establish clear figure-ground relationships using elevation, shadows, scrims, and contrast for modals, dropdowns, sheets, and tooltips.
  • Failure Diagnosis: Identify common figure-ground failures such as missing scrims, nested cards without luminance contrast, and text placed directly on photography.
  • Dark Mode Adaptation: Maintain figure-ground clarity when shadows disappear in dark mode using borders and luminance-adjusted fills.
  • Use Case: When designing a modal dialog, use this Skill to determine the correct scrim opacity, elevation level, and contrast relationship so the modal reads unambiguously as the actionable foreground.

Quick Start

Ask the AI to review your modal or overlay design using the law of figure-ground and recommend scrim, elevation, and contrast adjustments.

Frequently Asked Questions about law-of-figure-ground

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

FAQPage Schema
How do I make a modal clearly stand out from the page behind it?

Use a scrim, a semi-transparent dark overlay, to reduce the background's visual presence so the modal reads as unambiguous figure. Combine the scrim with elevation shadow and sufficient luminance contrast between the modal surface and the page.

What is the figure-ground principle in UI design?

Figure-ground is the perceptual reflex that separates a visual field into a subject (figure) and its context (ground). In UI, foreground elements like cards and modals must read as figure through elevation, contrast, and bounded edges, while page surfaces recede as ground.

How does figure-ground work differently in dark mode?

Dark mode inverts the luminance relationship between figure and ground, and shadows that signal elevation in light mode often become invisible. Use subtle light-colored borders or reduced-luminance fills to maintain depth hierarchy when shadows disappear.

Why does text on photography fail accessibility and readability?

The image competes as figure against the text, collapsing the figure-ground separation needed for legibility. Separate text from imagery with a color overlay, blur, or gradient layer so the text becomes the unambiguous foreground.

When should I use von Restorff effect instead of figure-ground?

Use the von Restorff effect when emphasising one element among peers at the same layer, such as a highlighted button in a group. Use figure-ground when establishing which entire layer is foreground versus background, as with modals and overlays.