1---2name: ux-law3description: rule for designing user interfaces and user experience4---56# Design Principles to Follow78## Aesthetic-Usability Effect910- Use clean, consistent spacing (e.g., `gap-2`, `px-4`)11- Apply typography hierarchy (e.g., `text-lg font-semibold`)12- Add visual cues like subtle shadows or border separators to improve perceived usability1314## Hick's Law1516- Reduce visible options per screen17- Collapse complex filters/conditions into toggles or expandable sections1819## Jakob’s Law2021- Match WordPress admin conventions (e.g., table lists, modals, top bar)22- Stick to familiar placement of “Add New”, status toggles, and trash icons2324## Fitts’s Law2526- Make important actions (edit, delete) large and easy to click27- Avoid tiny icon-only targets unless grouped and spaced (e.g., `space-x-2`)2829## Law of Proximity3031- Group related controls using spacing and containers (`PanelBody`, `Card`)32- Visually bundle inputs related to conditions or filters3334## Zeigarnik Effect3536- Show progress in multi-step processes (stepper, breadcrumb, “Step X of Y”)37- Provide save state feedback (e.g., “Saving…”, “Unsaved changes” banners)3839## Goal-Gradient Effect4041- Emphasize the next step in workflows (highlight active step, use primary button styling)42- Use progress bars or steppers to encourage completion4344## Law of Similarity4546- Keep consistent styles for toggle switches, buttons, badges, and filters47- Align icon sizing and spacing across rows for visual rhythm4849## Miller’s Law5051- Avoid overloading users; chunk configurations into steps or panels52- Default to collapsed sections for advanced options5354## Doherty Threshold5556- Target sub-400ms interactions (loading skeletons, optimistic UI)57- Use loading states like spinners or shimmer placeholders