本文へ移動
cccskills
無料GitHub で公開

use-shadows-appropriately

Add depth only when functionally necessary (elevation, not decoration)

日本語の概要は準備中です。原文の説明を表示しています。

karanmrn/karanagentskillsスター 3(GitHub 3 + cccskills 0)

実行スコア 未検証

インストール方法を見る

含まれるファイル(1)

  • SKILL.md4.0 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Skill: Use Shadows Appropriately

Purpose

Add depth and elevation only when functionally necessary, avoiding decorative shadows.

Key Fix Applied (from Autoresearch)

Added nuance: Subtle shadows on cards are acceptable (less distracting than borders). Large decorative shadows on static elements are wrong.

Type

Corrective + Evaluative

Input

  • UI element inventory
  • Element purposes (static, interactive, overlay)
  • Current shadow specifications

Output

  • Shadow usage recommendations
  • Pass/Fail assessment

Transformation Performed

Removes decorative shadows from static elements, reserves shadows for elevation layers (modals above content, dropdowns above page).

Decision Criteria

PASS (Appropriate Shadow Usage)

  • Small shadows on cards (subtle, less distracting than borders) ✅
  • Modals/dialogs: Large shadow (elevated above all content)
  • Dropdowns/menus: Medium shadow (above page, below modals)
  • Cards: Subtle or no shadow (flat design preferred)
  • Hover states: Subtle shadow increase (affordance for clickability)
  • Static elements: No shadow
  • Consistent shadow system (2-3 levels max)

FAIL (Inappropriate Shadow Usage)

  • Large decorative shadows on static cards
  • Heavy shadows on static content
  • Inconsistent shadow values
  • Decorative shadows that don't indicate elevation
  • Shadows on text or icons

Nuance (Key Insight)

Subtle shadows (small blur, low opacity) on cards are OK. The book recommends them as alternative to borders. Large, flashy shadows on static content are wrong.

Shadow Elevation Scale

LevelUse CaseCSS Example (approximate)
NoneStatic content, text, iconsnone
SubtleCards (alternative to borders)0 2px 4px rgba(0,0,0,0.1)
LowRaised cards, buttons0 4px 6px rgba(0,0,0,0.1)
MediumDropdowns, popovers, tooltips0 10px 15px rgba(0,0,0,0.1)
HighModals, dialogs, drawers0 20px 25px rgba(0,0,0,0.15)

Shadow Principles

  1. Shadows indicate elevation - Higher = closer to user
  2. Shadows indicate interactivity - Clickable things can have shadow
  3. Shadows separate layers - Modal casts shadow on page behind it
  4. Shadows should be subtle - Good shadows are barely noticeable
  5. Consistency matters - Same elevation = same shadow

Common Failure Modes

FailureDescriptionFix
Shadow CarpetEvery card has a shadowFlatten static cards, subtle shadows OK
Drop Shadow AbuseHeavy shadows on static elementsReserve for elevation/interaction
Inconsistent DepthSimilar elements different shadowsCreate 2-3 shadow levels, apply consistently
Black ShadowsPure black shadows (harsh)Use rgba with low opacity, tinted to brand
No Modal SeparationModal doesn't feel above pageIncrease shadow spread and blur

Prerequisites

  • Visual hierarchy established
  • Understanding of which elements are interactive

Dependencies

  • eliminate-visual-clutter (shadows often add clutter)

Refactoring UI References

  • "Use shadows to convey elevation"
  • "Use a box shadow instead of hard borders - subtle shadows outline effectively without visual clutter"
  • "Shadows should be subtle"

Example Assessment

Input: Page with card shadows (0 4px 6px rgba(0,0,0,0.1)), button shadows (0 2px 4px), modal shadow (0 4px 6px), text with text-shadow

Evaluation: FAIL (cluttered)

  • Cards don't need shadows (static content)
  • Modal shadow same as cards (should be higher)
  • Text shadow decorative

Recommendation:

  • Remove card shadows OR use subtle (0 2px 4px)
  • Remove text shadow
  • Modal: 0 20px 25px rgba(0,0,0,0.15)
  • Buttons: Optional subtle hover shadow only

レビュー

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

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

Automate 21risk tasks via Rube MCP (Composio). Always search tools first for current schemas.

日本語の概要は準備中です。原文の説明を表示しています。

karanmrn/karanagentskills32026年8月28日 更新

Automate 2chat tasks via Rube MCP (Composio). Always search tools first for current schemas.

日本語の概要は準備中です。原文の説明を表示しています。

karanmrn/karanagentskills32026年8月28日 更新

1password

無料

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

日本語の概要は準備中です。原文の説明を表示しています。

karanmrn/karanagentskills32026年8月28日 更新

Build integrated IS/BS/CF financial workbooks in Excel.

日本語の概要は準備中です。原文の説明を表示しています。

karanmrn/karanagentskills32026年8月28日 更新

9router

無料

Entry point for 9Router — local/remote AI gateway with OpenAI-compatible REST for chat, image, TTS, embeddings, web search, web fetch. Use when the user mentions 9Router, NINEROUTER_URL, or wants AI without writing provider boilerplate. This skill covers setup + indexes capability skills; fetch the relevant capability SKILL.md from the URLs below when needed.

日本語の概要は準備中です。原文の説明を表示しています。

karanmrn/karanagentskills32026年8月28日 更新

Chat / code generation via 9Router using OpenAI /v1/chat/completions or Anthropic /v1/messages format with streaming + auto-fallback combos. Use when the user wants to ask an LLM, generate code, summarize text, or run prompts through 9Router.

日本語の概要は準備中です。原文の説明を表示しています。

karanmrn/karanagentskills32026年8月28日 更新

karanmrn のスキルをすべて見る

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