Contrast Solver Helper
Use this skill when implementing or validating contrast logic, APCA/WCAG2 targets, or solver behavior in src/contrast.
Workflow
- Read
src/planning/spec-v0.3.mdand the relevant phase insrc/planning/roadmap-v0.3.md. - Implement contrast evaluation for APCA and WCAG2.
- Implement solver behavior for targets and failure modes (best-effort vs strict).
- Add minimal tests for target attainment and failure handling.
Guardrails
- Respect
ContrastRequirementandOutputOptions.strictbehavior. - Prefer deterministic solver paths; document edge-case behavior.