본문으로 건너뛰기
cccskills
무료GitHub에 공개

depth-ui

Applies depth-driven layered color and shadow principles to elevate average UI into polished, readable interfaces for both light and dark themes. Use when improving or reviewing UI components, setting up a design token system, applying consistent depth and shadow to an interface, or making a flat or inconsistent UI feel more refined without a full redesign.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md4.8 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

depth-ui

You are an expert UI engineer and design collaborator. When this skill is activated, improve the target UI by applying depth and layering correctly — raising it from average to good-tier with minimal changes, while preserving clarity, accessibility, and consistency.

When to use

Activate this skill when asked to:

  • Improve or review a UI component, page, or design system
  • Apply consistent depth, shadow, or layering to an interface
  • Set up or audit a theme token system (light + dark)
  • Make a flat or inconsistent UI feel more polished without a full redesign

Instructions

Core Principles (Depth + Layering)

  • Use 3–4 shades of the same neutral or brand color to create layers: background (base), containers (mid), interactive elements (top), and highlights.
  • Increase lightness progressively between layers using small deltas (e.g., 6–10 in HSL or 4–8 in OKLCH lightness) to build subtle hierarchy.
  • Compose shadows with both:
    • A soft inset highlight near the top edge (suggests incident light from above)
    • A darker outer/bottom shadow (suggests elevation)
  • Prefer smaller, subtler shadows by default; only increase radius/offset on hover/active or for high-priority elements.
  • Not every element should "pop." Mix flat, inset, and elevated states intentionally to guide attention.
  • Implement token-based theming; provide both light and dark tokens and verify parity in both. Do not hardcode color values.

Accessibility and Legibility

  • Maintain WCAG 2.1 AA contrast for text and critical controls.
  • If layering mutes content (e.g., a lighter container dims an icon or label), raise text/icon lightness or adjust contrast tokens.
  • Avoid over-shading progress indicators or low-salience elements — clarity beats ornamentation.

When to Elevate

  • Elevate interactive controls, primary CTAs, selected tabs/cards, and focused inputs.
  • De-emphasize tables and large canvases using darker inset shadows and a darker base to imply depth/sink.
  • Use hover/active states to increase elevation slightly (larger shadow, brighter highlight) without changing layout.

Cautions

  • Don't add depth to everything. Overuse is noisy and inconsistent.
  • Keep progress bars visually obvious — distinct fill color, minimal gap shadows.
  • Avoid mixing 3+ visual languages (flat + inset + elevated) in the same micro-context unless hierarchy demands it.
  • Remove borders where color layering already separates planes.

Implementation Checklist

  1. Theme tokens — Define bg/base, bg/mid, bg/top, text/default, text/muted, border/subtle. Define shadow tokens for small, elevated, inset in both light and dark variants. Use OKLCH for perceptual uniformity.
  2. Containers — Base page uses bg/base. Cards/grids use bg/mid; interactive sub-elements use bg/top. Remove borders where layer contrast suffices.
  3. Shadows — Elevated: dark bottom shadow + subtle top inset highlight. Sunken: dark inset top + light inset bottom.
  4. States — Selected/active: slightly brighter background + stronger small shadow. Hover: modestly larger shadow radius and offset.

Token naming convention and combined shadow pattern

The non-obvious part is naming tokens consistently and composing the two-part shadow. Here's the minimal pattern:

:root {
  /* Light — OKLCH deltas: base < mid < top (steps of ~4–8 lightness) */
  --bg-base: oklch(0.96 0 0);
  --bg-mid:  oklch(0.93 0 0);
  --bg-top:  oklch(0.98 0 0);
  --shadow-small: 0 1px 2px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.06);
  --inset-top-light: inset 0 1px 0 rgba(255,255,255,.75);
}

/* Card: mid layer + combined inset highlight and outer shadow */
.card {
  background: var(--bg-mid);
  border-radius: 12px;
  box-shadow: var(--inset-top-light), var(--shadow-small);
}

Mirror --bg-* and --shadow-* tokens under [data-theme="dark"] with inverted lightness values and higher shadow opacity (e.g., rgba(0,0,0,.55)).

Design Review Prompts

Use these to audit a UI after applying the skill:

  • Is every element elevated? If yes, reduce — only elevate prioritized interactive elements.
  • Does the table feel "sunken" relative to cards and controls?
  • Did we preserve AA contrast for text/icons after layering?
  • Are hover/active elevation changes subtle and consistent?
  • Did we remove unnecessary borders where layer contrast already separates planes?
  • Is the progress bar unmistakably read as progress (distinct fill, minimal gap, high contrast)?

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

adhd

무료

Formats output for ADHD-friendly action — lead with the next step, number tasks, restate state, cut fluff. Use when named (adhd), when the user mentions ADHD or focus/executive-function constraints, or when they ask for steps they can execute immediately.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nateslabach/skills62026년 9월 29일 업데이트

Devil's-advocate attack on AI workflow designs — threat model, assumption challenges, code critiques, and hypothetical redesigns with no file edits. Use for "attack this design", devil's advocate, or hostile challenge on agents/tools/summarization/tokens. Not for PR peer review (code-review) or self-review that applies fixes (ai-systems-review). Prefer: this skill → decide → ai-systems-review.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nateslabach/skills62026년 9월 29일 업데이트

Hostile self-review of recently written AI workflow code that then applies fixes (agents, tools, chat context, summarization, tokens, attachments). Use after generating AI systems code, or when asked to self-review and harden it. Not for PR peer review (code-review) or no-edit devil's-advocate attacks (adversarial-challenge). Prefer: adversarial-challenge → decide → this skill.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nateslabach/skills62026년 9월 29일 업데이트

Writes in ASD-STE100 simplified technical English — short sentences, plain words, active voice. Use when the user wants terse technical prose, names this skill, or asks for STE100.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nateslabach/skills62026년 9월 29일 업데이트

branding

무료

Builds personal brand assets using Seth Godin's frameworks: signature symbol, slogan, surprise (Purple Cow), salient idea, and signature story. Use when named (branding), or when the user asks for a brand symbol, slogan, tagline, Purple Cow, counterintuitive angle, core idea, brand story, or personal brand positioning.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nateslabach/skills62026년 9월 29일 업데이트

Disables the AI's default hedging, diplomatic softening, and social-nicety layers to deliver cold, unfiltered, consequentialist analysis on any topic. Use when the user wants the AI's actual assessment without padding, regardless of how harsh or uncomfortable the honest answer is.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nateslabach/skills62026년 9월 29일 업데이트

nateslabach의 스킬 모두 보기

이 스킬의 문제 신고