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/native-backdrop-styling.md
1---2title: Use ::backdrop for Dialog Backgrounds3impact: MEDIUM4tags: native, backdrop, dialog5---67## Use ::backdrop for Dialog Backgrounds89Use ::backdrop pseudo-element for dialog/popover backgrounds.1011**Incorrect (extra overlay node):**1213```tsx14<>15<div className={styles.overlay} onClick={close} />16<dialog className={styles.dialog}>{children}</dialog>17</>18```1920**Correct (native ::backdrop):**2122```css23dialog::backdrop {24background: var(--black-a6);25backdrop-filter: blur(4px);26}27```28