Loading...
Loading...
Add depth only when functionally necessary (elevation, not decoration)
npx skill4agent add gnurio/refactoring-ui-plugin use-shadows-appropriately| Level | Use Case | CSS Example (approximate) |
|---|---|---|
| None | Static content, text, icons | |
| Subtle | Cards (alternative to borders) | |
| Low | Raised cards, buttons | |
| Medium | Dropdowns, popovers, tooltips | |
| High | Modals, dialogs, drawers | |
| 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-clutter0 4px 6px rgba(0,0,0,0.1)0 2px 4px0 4px 6px0 2px 4px0 20px 25px rgba(0,0,0,0.15)