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
| Level |
Use Case |
CSS Example (approximate) |
| None |
Static content, text, icons |
none |
| Subtle |
Cards (alternative to borders) |
0 2px 4px rgba(0,0,0,0.1) |
| Low |
Raised cards, buttons |
0 4px 6px rgba(0,0,0,0.1) |
| Medium |
Dropdowns, popovers, tooltips |
0 10px 15px rgba(0,0,0,0.1) |
| High |
Modals, dialogs, drawers |
0 20px 25px rgba(0,0,0,0.15) |
Shadow Principles
- Shadows indicate elevation - Higher = closer to user
- Shadows indicate interactivity - Clickable things can have shadow
- Shadows separate layers - Modal casts shadow on page behind it
- Shadows should be subtle - Good shadows are barely noticeable
- Consistency matters - Same elevation = same shadow
Common Failure Modes
| Failure |
Description |
Fix |
| Shadow Carpet |
Every card has a shadow |
Flatten static cards, subtle shadows OK |
| Drop Shadow Abuse |
Heavy shadows on static elements |
Reserve for elevation/interaction |
| Inconsistent Depth |
Similar elements different shadows |
Create 2-3 shadow levels, apply consistently |
| Black Shadows |
Pure black shadows (harsh) |
Use rgba with low opacity, tinted to brand |
| No Modal Separation |
Modal doesn't feel above page |
Increase 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
1---2name: use-shadows-appropriately3description: Add depth only when functionally necessary (elevation, not decoration)4---56# Skill: Use Shadows Appropriately78## Purpose9Add depth and elevation only when functionally necessary, avoiding decorative shadows.1011## Key Fix Applied (from Autoresearch)12Added nuance: Subtle shadows on cards are acceptable (less distracting than borders). Large decorative shadows on static elements are wrong.1314## Type15Corrective + Evaluative1617## Input18- UI element inventory19- Element purposes (static, interactive, overlay)20- Current shadow specifications2122## Output23- Shadow usage recommendations24- Pass/Fail assessment2526## Transformation Performed27Removes decorative shadows from static elements, reserves shadows for elevation layers (modals above content, dropdowns above page).2829## Decision Criteria3031### PASS (Appropriate Shadow Usage)32- **Small shadows on cards** (subtle, less distracting than borders) ✅33- **Modals/dialogs**: Large shadow (elevated above all content)34- **Dropdowns/menus**: Medium shadow (above page, below modals)35- **Cards**: Subtle or no shadow (flat design preferred)36- **Hover states**: Subtle shadow increase (affordance for clickability)37- **Static elements**: No shadow38- Consistent shadow system (2-3 levels max)3940### FAIL (Inappropriate Shadow Usage)41- **Large decorative shadows on static cards**42- Heavy shadows on static content43- Inconsistent shadow values44- Decorative shadows that don't indicate elevation45- Shadows on text or icons4647## Nuance (Key Insight)48Subtle 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.4950## Shadow Elevation Scale5152| Level | Use Case | CSS Example (approximate) |53|-------|----------|---------------------------|54| **None** | Static content, text, icons | `none` |55| **Subtle** | Cards (alternative to borders) | `0 2px 4px rgba(0,0,0,0.1)` |56| **Low** | Raised cards, buttons | `0 4px 6px rgba(0,0,0,0.1)` |57| **Medium** | Dropdowns, popovers, tooltips | `0 10px 15px rgba(0,0,0,0.1)` |58| **High** | Modals, dialogs, drawers | `0 20px 25px rgba(0,0,0,0.15)` |5960## Shadow Principles61621. **Shadows indicate elevation** - Higher = closer to user632. **Shadows indicate interactivity** - Clickable things can have shadow643. **Shadows separate layers** - Modal casts shadow on page behind it654. **Shadows should be subtle** - Good shadows are barely noticeable665. **Consistency matters** - Same elevation = same shadow6768## Common Failure Modes6970| Failure | Description | Fix |71|---------|-------------|-----|72| **Shadow Carpet** | Every card has a shadow | Flatten static cards, subtle shadows OK |73| **Drop Shadow Abuse** | Heavy shadows on static elements | Reserve for elevation/interaction |74| **Inconsistent Depth** | Similar elements different shadows | Create 2-3 shadow levels, apply consistently |75| **Black Shadows** | Pure black shadows (harsh) | Use rgba with low opacity, tinted to brand |76| **No Modal Separation** | Modal doesn't feel above page | Increase shadow spread and blur |7778## Prerequisites79- Visual hierarchy established80- Understanding of which elements are interactive8182## Dependencies83- `eliminate-visual-clutter` (shadows often add clutter)8485## Refactoring UI References86- "Use shadows to convey elevation"87- "Use a box shadow instead of hard borders - subtle shadows outline effectively without visual clutter"88- "Shadows should be subtle"8990## Example Assessment9192**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-shadow9394**Evaluation:** FAIL (cluttered)95- Cards don't need shadows (static content)96- Modal shadow same as cards (should be higher)97- Text shadow decorative9899**Recommendation:**100- Remove card shadows OR use subtle (`0 2px 4px`)101- Remove text shadow102- Modal: `0 20px 25px rgba(0,0,0,0.15)`103- Buttons: Optional subtle hover shadow only