Skip to content
cccskills
FreePublished on GitHub

use-shadows-appropriately

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

The English summary is being prepared. Showing the original description.

karanmrn/karanagentskills3 stars(GitHub 3 + cccskills 0)

Run score Not tested

See how to install

Files included (1)

  • SKILL.md4.0 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

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

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

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

The English summary is being prepared. Showing the original description.

karanmrn/karanagentskills3Updated Aug 28, 2026

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

The English summary is being prepared. Showing the original description.

karanmrn/karanagentskills3Updated Aug 28, 2026

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

The English summary is being prepared. Showing the original description.

karanmrn/karanagentskills3Updated Aug 28, 2026

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

The English summary is being prepared. Showing the original description.

karanmrn/karanagentskills3Updated Aug 28, 2026

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.

The English summary is being prepared. Showing the original description.

karanmrn/karanagentskills3Updated Aug 28, 2026

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.

The English summary is being prepared. Showing the original description.

karanmrn/karanagentskills3Updated Aug 28, 2026

See all skills by karanmrn

Report a problem with this skill