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/ux-von-restorff-emphasis.md
1---2title: Make Important Elements Visually Distinct3impact: HIGH4tags: ux, von-restorff, emphasis, distinction5---67## Make Important Elements Visually Distinct89When multiple similar elements are present, the one that differs is most likely to be remembered.1011**Incorrect (primary action blends in):**1213```tsx14<div className={styles.actions}>15<button className={styles.button}>Cancel</button>16<button className={styles.button}>Delete Account</button>17</div>18```1920**Correct (destructive action stands out):**2122```tsx23<div className={styles.actions}>24<button className={styles["button-secondary"]}>Cancel</button>25<button className={styles["button-danger"]}>Delete Account</button>26</div>27```2829Reference: [Von Restorff Effect](https://lawsofux.com/von-restorff-effect/)30