Depth

From aladicf/better-web-ui · View interactive version

Depth is an AI agent skill from the GitHub repository aladicf/better-web-ui. Add or refine depth through elevation systems, raised and inset surfaces, layered overlap, and meaningful shadow behavior so interfaces feel structured instead of flat. Use when the user mentions depth, elevation, shadows, layering, flat cards, pressed states, drag feedback, or inset controls.

How to use this skill

Skill file

Create or improve visual depth so layers, surfaces, and states feel intentional, readable, and physically believable without drifting into over-styled noise.

MANDATORY PREPARATION

Users start this workflow with /depth. Once this skill is active, load $frontend-design — it contains design principles, anti-patterns, and the Context Gathering Protocol. Follow that protocol before proceeding — if no design context exists yet, you MUST load $setup first.


Assess Depth Problems

Analyze where the interface feels flat, confusing, or physically inconsistent:

  1. Elevation structure:
  1. Surface treatment:
  1. Interaction states:
  1. Restraint:

If any of these are unclear from the codebase, ask the user directly to clarify what you cannot infer.

CRITICAL: Depth should explain surfaces, states, and layering. If the effect is louder than the meaning, it has gone too far.

Plan the Depth System

Consult the elevation system for shadow levels, two-part shadow logic, raised/inset mapping, and flat depth via color.

Consult the surface separation when deciding whether depth should come from spacing, background shifts, overlap, borders, or shadows.

Consult the image treatment when overlapping media or image boundaries need cleaner depth cues.

Create a plan around:

Build Depth Systematically

Establish an Elevation System

Raised and Inset Elements

Two-Part Shadow Logic

Pressed and Dragged States

Overlap and Layering

Flat Depth via Surface Color

Don’t Get Carried Away

NEVER:

Verify Depth Quality

Remember: Great depth creates structure, not spectacle. Use it to make layers and states feel obvious, then stop.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.