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-matches-elevation.md
1---2title: Shadow Size Indicates Elevation3impact: MEDIUM4tags: visual, shadow, elevation, hierarchy5---67## Shadow Size Indicates Elevation89Larger blur and offset means higher elevation. Use a consistent shadow scale across your UI.1011**Correct (elevation scale):**1213```css14:root {15--shadow-1: 0 1px 2px rgba(0, 0, 0, 0.05);16--shadow-2: 0 2px 8px rgba(0, 0, 0, 0.08);17--shadow-3: 0 8px 24px rgba(0, 0, 0, 0.12);18}1920.card { box-shadow: var(--shadow-1); }21.dropdown { box-shadow: var(--shadow-2); }22.modal { box-shadow: var(--shadow-3); }23```24