/refactoring-ui-skills:use-shadows-appropriatelyfrom refactoring-ui-skills
Evaluates shadow usage in UI designs, ensuring shadows indicate elevation or interactivity rather than serving as decoration. Provides pass/fail criteria and a shadow elevation scale.
Ships in refactoring-ui-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Add depth and elevation only when functionally necessary, avoiding decorative shadows.
Added nuance: Subtle shadows on cards are acceptable (less distracting than borders). Large decorative shadows on static elements are wrong.
Corrective + Evaluative
Removes decorative shadows from static elements, reserves shadows for elevation layers (modals above content, dropdowns above page).
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.
| 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) |
| 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 |
eliminate-visual-clutter (shadows often add clutter)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)
Recommendation:
0 2px 4px)0 20px 25px rgba(0,0,0,0.15)What SKILL.md sets; muted values are Claude Code's defaults
11 skills in this plugin
/establish-visual-hierarchyDetermine what UI element draws attention first, second, third using size, weight, color, and de-emphasis strategies/apply-typography-scaleCreate clear typographic hierarchy using hand-crafted font sizes, weights, and colors/build-color-paletteCreate comprehensive palette with 8-10 greys, 5-10 primary, 5-10 accent shades/apply-consistent-spacingUse systematic spacing with 25% minimum jumps, start with excess whitespace/design-button-hierarchyCreate clear primary/secondary/tertiary action distinctions/eliminate-visual-clutterRemove unnecessary borders, backgrounds, shadows, decorationsnpx claudepluginhub gnurio/refactoring-ui-plugin --plugin refactoring-ui-skillsOther plugins' skills for the same job