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/weight-duration-matches-action.md
1---2title: Sound Duration Matches Action Duration3impact: MEDIUM4tags: weight, duration, action5---67## Sound Duration Matches Action Duration89Sound duration should match action duration.1011**Incorrect (long sound for instant action):**1213```tsx14function handleClick() {15playSound("long-whoosh"); // 2000ms16}17```1819**Correct (matched duration):**2021```tsx22function handleClick() {23playSound("click"); // 50ms24}2526function handleUpload() {27playSound("upload-progress"); // Matches upload duration28}29```30