contrast-solver-helper

Implement APCA and WCAG2 contrast evaluation with solver behavior and tests.

3|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/claushaas/palette-kit --skill contrast-solver-helper
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: contrast-solver-helper
Source: https://github.com/claushaas/palette-kit/tree/main/.codex/skills/contrast-solver-helper
Command: npx skills add https://github.com/claushaas/palette-kit --skill contrast-solver-helper

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides tooling to implement and validate contrast logic (APCA/WCAG2) and solver behavior for accessibility targets in the contrast subsystem.

Core Features & Use Cases

  • APCA and WCAG2 contrast evaluation
  • Solver behavior for targets and failure modes (best-effort vs strict)
  • Minimal tests to validate target attainment and failure handling

Quick Start

Develop APCA/WCAG2 contrast evaluation and solver behavior for the src/contrast module.

Frequently Asked Questions about contrast-solver-helper

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement APCA contrast evaluation logic for an accessibility module?

APCA contrast evaluation logic is implemented by developing solver behavior that calculates perceptual lightness contrast for text, validating accessibility targets through deterministic paths and minimal tests.

What is the difference between best-effort and strict failure modes in contrast solving?

Best-effort failure modes attempt to find the closest accessible color match, while strict failure modes halt and report when exact contrast targets cannot be attained, ensuring spec-v0.3 alignment.

How do I validate WCAG2 contrast targets and handle solver failures?

You validate WCAG2 contrast targets by applying solver logic to design and test color pairs, using guardrails and deterministic paths to confirm target attainment and trigger strict or best-effort failures.

Does the contrast solver support both APCA and WCAG2 standards?

Yes, the contrast solver supports both APCA and WCAG2 evaluation, applying specific guardrails and deterministic paths to align with spec-v0.3 and roadmap-v0.3 for accessibility validation.

What are the limitations of using a deterministic solver path for color contrast?

Deterministic solver paths ensure consistent target attainment but may lack flexibility in complex color spaces, requiring minimal tests to validate both best-effort approximations and strict failures.