ux-principles
Installation
SKILL.md
UX Principles
The craft floor. These hold no matter the vibe — a brutalist page and a trust-first service both owe the user legible hierarchy, real focus states, forgiving errors, and honest feedback. Principles here constrain style; they don't pick one. Honoring a project's vibe never means shipping something unusable.
Read ux-principles.md (in this skill's directory) for the full, itemized checklist. Use this SKILL.md as the working summary and the reviewer's lens.
The non-negotiables
Fail any of these and the design is broken regardless of how it looks:
- Contrast — body text ≥ 4.5:1, large text ≥ 3:1, UI/graphic boundaries ≥ 3:1. Muted grey on tinted near-white is the most common failure.
- Focus — every interactive element has a visible, non-color-only focus state. Keyboard reaches everything in a sensible order.
- Hit targets — ≥ 24px (WCAG 2.2), ≥ 44px for touch-primary UI.
- Feedback — every action gets an immediate, legible response: loading, success, error, empty.
- Error recovery — errors are preventable, specific, and recoverable. Never a dead end, never "something went wrong."
- Don't rely on color alone to carry meaning (state, required fields, chart series).
- Respect
prefers-reduced-motion— motion is enhancement, not a gate.