本文へ移動
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)?

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

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 のスキルをすべて見る

このスキルの問題を報告する