01-establish-visual-hi…
Determine what UI element draws attention first, second, third using size, weight, color, and de-emphasis strategies
Ensure WCAG AA accessibility and readability
$ npx -y skills add gnurio/refactoring-ui-plugin --skill 09-manage-color-contrast --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/09-manage-color-contrastContext preview
The summary Claude sees to decide when to auto-load this skill.
Ensure WCAG AA accessibility and readability
name: manage-color-contrast description: Ensure WCAG AA accessibility and readability domain: ui-design skill-type: evaluative version: 1.0.0 author: refactoring-ui-expert prerequisites: [] dependencies: - 03-build-color-palette
Ensure text and interactive elements have sufficient contrast against their backgrounds for readability and accessibility.
Evaluative + Corrective
Calculates contrast ratios and ensures compliance with WCAG AA standards (4.5:1 for normal text, 3:1 for large text and UI components).
| Text Color on White | Ratio | Pass AA? | |---------------------|-------|----------| | #000000 (black) | 21:1 | ✓ | | #333333 | 12.6:1 | ✓ | | #666666 | 5.9:1 | ✓ | | #757575 | 4.6:1 | ✓ (minimum) | | #999999 | 2.8:1 | ✗ | | #CCCCCC | 1.6:1 | ✗ |
| Failure | Description | Fix | |---------|-------------|-----| | **Light Gray Text** | #999 or lighter for body text | Use #666 minimum, #333 preferred | | **Ghost Text** | Placeholder same as value | Make placeholder lighter (#999) | | **Low-contrast Primary** | Brand color too light for white text | Darken brand color or use dark text | | **Subtle Links** | Links barely different from text | Add underline or increase contrast | | **Disabled Confusion** | Disabled buttons too prominent | Reduce to 30% opacity or use gray | | **Icon Fade** | Icons too light to see | Match text color or use higher contrast |
**Input:** Body text #888888 on white background
**Evaluation:** FAIL
**Recommendation:** Change to #666666 (5.9:1) minimum Prefer #333333 or #1A1A1A for body text
Ten structured AI skills for evaluating and improving UI designs — covering visual hierarchy, typography, color, spacing, buttons, clutter, empty states, shadows, contrast, and grouping.
Determine what UI element draws attention first, second, third using size, weight, color, and de-emphasis strategies
Create clear typographic hierarchy using hand-crafted font sizes, weights, and colors
Create comprehensive palette with 8-10 greys, 5-10 primary, 5-10 accent shades
Use systematic spacing with 25% minimum jumps, start with excess whitespace
Create clear primary/secondary/tertiary action distinctions
Remove unnecessary borders, backgrounds, shadows, decorations