跳到正文
cccskills
免费在 GitHub 公开

depth

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.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md5.0 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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

MANDATORY PREPARATION

Read frontend-design and follow its Context Gathering Protocol. Reuse available context and ask only about consequential gaps.


Assess Depth Problems

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

  1. Elevation structure:

    • Are all components using the same shadow regardless of job?
    • Is it hard to tell what sits on the page versus above it?
  2. Surface treatment:

    • Which elements should feel raised?
    • Which should feel inset, like inputs or wells?
    • Are there places where color alone could suggest depth more cleanly than stronger effects?
  3. Interaction states:

    • Do pressed buttons feel like they move inward or just change color?
    • Does dragging feel like an item pops forward above its neighbors?
  4. Restraint:

    • Are shadows and effects helping users understand structure, or just making the UI look busier?

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:

  • Elevation levels: Which 3–5 semantic levels exist?
  • Surface roles: Which things are base, raised, inset, pressed, or dragged?
  • Layering: Where can overlap clarify structure?
  • Restraint: Which effects should be reduced or removed entirely?

Build Depth Systematically

Establish an Elevation System

  • Define a small set of semantic levels for surfaces, controls, menus, overlays, and temporary UI
  • Keep similar components on the same elevation unless there is a real reason to separate them

Raised and Inset Elements

  • Raised elements should feel like they sit above the page with a shadow beneath them
  • Inset elements should feel recessed through inner shadow, lip treatment, or darker surrounding surface
  • Use raised and inset treatments deliberately — not every control needs obvious realism

Two-Part Shadow Logic

  • Use a larger, softer shadow to suggest distance from the surface
  • Use a smaller, tighter shadow near the edge to suggest compressed ambient shadow
  • As elevation increases, the tight near-edge shadow should usually become subtler

Pressed and Dragged States

  • Pressed states should reduce elevation and feel like the element moves inward/downward
  • Dragged states should increase elevation so the item feels like it pops forward
  • Match shadow, transform, and any color shift so the motion reads as a single physical change

Overlap and Layering

  • Use overlap when it helps clarify multiple layers of information
  • Let cards, controls, or media cross boundaries when it reinforces depth and grouping
  • Keep overlaps readable; add separation or background-matching edges if layers start to clash

Flat Depth via Surface Color

  • Lighter surfaces often feel closer, darker surfaces often feel further away
  • Before adding more shadow, test whether a subtle surface-color shift communicates the same thing more cleanly

Don’t Get Carried Away

  • Borrow cues from the real world, but stop before the interface feels photo-realistic or busy
  • If the structure is already clear, simpler depth usually wins

NEVER:

  • Use the same drop shadow for every component
  • Add heavy shadows where color or spacing would communicate depth better
  • Make every button, card, panel, and modal feel equally elevated
  • Let realism overpower clarity
  • Use depth effects with no semantic meaning

Verify Depth Quality

  • Layer clarity: Is it obvious what sits on the page and what floats above it?
  • State clarity: Do pressed and dragged states feel physically different?
  • Consistency: Are similar components using the same elevation language?
  • Restraint: Does the UI feel more understandable, not just more decorated?

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

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

a11y

免费

Systematically audit and remediate accessibility issues in UI, focusing on keyboard navigation, screen reader support, color contrast, semantic HTML, ARIA usage, and motion sensitivity. Use when the user wants to improve accessibility, make a component accessible, fix WCAG violations, add keyboard support, or ensure screen reader compatibility.

中文简介正在准备中。当前显示原文说明。

aladicf/better-react-web-ui32026年9月8日 更新

adapt

免费

Adapt designs for narrow, medium, wide, embedded, or print web contexts without losing usability, hierarchy, or target sizing. Use when the user mentions responsive design, breakpoints, narrow layouts, viewport changes, coarse-pointer browsers, or cross-context adaptation.

中文简介正在准备中。当前显示原文说明。

aladicf/better-react-web-ui32026年9月8日 更新

add-ui

免费

Create or redesign React and Tailwind sections, pages, flows, shells, and components. Use when the user wants new UI or a redesign. Implement one requested or selected direction directly, or generate distinct alternatives when the user asks to compare options.

中文简介正在准备中。当前显示原文说明。

aladicf/better-react-web-ui32026年9月8日 更新

animate

免费

Implement or refine UI motion, gestures, and transitions. Use when the user asks for animation, hover or press motion, drag or swipe behavior, transition timing, or reduced-motion alternatives. Mentioning a drawer, toast, or hover state alone does not request animation.

中文简介正在准备中。当前显示原文说明。

aladicf/better-react-web-ui32026年9月8日 更新

arrange

免费

Improve layout composition, spacing systems, grouping, and visual rhythm. Use when the user mentions weak layout structure, arbitrary spacing, weak grouping, crowded composition, or layout monotony rather than priority/emphasis problems.

中文简介正在准备中。当前显示原文说明。

aladicf/better-react-web-ui32026年9月8日 更新

audit

免费

Run technical quality checks across accessibility, performance, theming, responsive design, and anti-patterns. Generates a scored report with P0-P3 severity ratings and actionable plan. Use when the user wants measurable accessibility, performance, responsive, theming, or anti-pattern findings—not when they mainly want an overall UX critique or final visual/detail polish.

中文简介正在准备中。当前显示原文说明。

aladicf/better-react-web-ui32026年9月8日 更新

查看 aladicf 的全部技能

报告此技能的问题