Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Living wiki of UI design patterns and best practices built with Fumadocs, Next.js, and Base UI components.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
rules/visual-shadow-direction.md
1---2title: Consistent Shadow Direction Across UI3impact: HIGH4tags: visual, shadow, direction, light-source5---67## Consistent Shadow Direction Across UI89All shadows must share the same offset direction to imply a single light source. Mixed directions feel broken.1011**Incorrect (conflicting light sources):**1213```css14.card { box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }15.modal { box-shadow: 4px 0 8px rgba(0, 0, 0, 0.1); }16.tooltip { box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1); }17```1819**Correct (consistent top-down light):**2021```css22.card { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }23.modal { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }24.tooltip { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }25```26