What problem does it solve?
It prevents UI regressions by verifying that visual changes actually meet intended design goals and accessibility requirements using evidence-based screenshot and visual-diff analysis.
Core Features & Use Cases
- Visual validation of UI modifications: Compare screenshots against modification goals to determine whether the change achieved the desired outcome, not just that it looks different.
- Design system & accessibility verification: Validate typography, color/contrast, spacing/layout, focus indicators, and other inclusive design cues against WCAG-oriented expectations.
- Cross-state and cross-breakpoint checking: Ensure loading, error, animation/interaction, and responsive/dark-mode variants remain consistent and correct.
- Recommended testing approaches: Support workflows using visual regression concepts and tools (e.g., Percy/Chromatic/Backstop/Playwright-based comparisons) for deterministic and repeatable checks.
Quick Start
Use ui-visual-validator to validate a specific UI change by providing before/after screenshots (or visual diffs), the expected behavior/design goal, and the target accessibility checks.