Contrast Solver Helper

Implement APCA/WCAG2 contrast requirements and solver behavior per src/planning/spec-v0.3.md and src/planning/roadmap-v0.3.md, with minimal tests. Use when this capability is needed.

tomevault-io Updated

File contents

Contrast Solver Helper

Use this skill when implementing or validating contrast logic, APCA/WCAG2 targets, or solver behavior in src/contrast.

Workflow

  1. Read src/planning/spec-v0.3.md and the relevant phase in src/planning/roadmap-v0.3.md.
  2. Implement contrast evaluation for APCA and WCAG2.
  3. Implement solver behavior for targets and failure modes (best-effort vs strict).
  4. Add minimal tests for target attainment and failure handling.

Guardrails

  • Respect ContrastRequirement and OutputOptions.strict behavior.
  • Prefer deterministic solver paths; document edge-case behavior.

Converted and distributed by TomeVault — claim your Tome and manage your conversions.

tomevault-io/skills-registry/tree/main/claushaas--palette-kit--contrast-solver-helper commit b3ff88820e

Frequently asked questions

npx skillmds@latest add tomevault-io/contrast-solver-helper