Measure the themes' contrast in CI - #49
Conversation
Every contrast finding on the recent theme pull requests was found by hand or by a review bot, one pair at a time. A check now computes the ratios of each palette, layered on the JabRef theme the way JabRef layers it, against the WCAG floor; a per-theme baseline holds the existing shortfalls so the gate stops new ones. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01X4mvBHaWcrBN9QDm5tzRdo
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01X4mvBHaWcrBN9QDm5tzRdo
PR Summary by QodoEnforce theme contrast baselines in CI
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
Code Review by Qodo
1.
|
A count alone lets a change fix one pair and break another unnoticed, so the baseline carries a fingerprint of the pairs as well. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01X4mvBHaWcrBN9QDm5tzRdo
|
🤖 Generated with Claude Code Qodo's point about count-only baselining is right — fixing one pair while breaking another keeps the number and slips through. The full pair list stays out of the baseline on purpose: it is roughly 700 lines today, most of them inherited by the fourteen Dino Girl's themes from the JabRef theme, so every improvement there would rewrite a large part of the file. The CI log prints every pair. |
Named colors were read as unmeasurable, so the themes that write white and black dropped out of half their own checks. Translucent fills are now measured over each surface they can lie on, and the badge text is measured on the paler green JabRef derives for a partly selected group -- the pair that started this in the first place. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01X4mvBHaWcrBN9QDm5tzRdo
Every contrast finding on the recent theme pull requests was found by hand or by a review bot, one pair at a time. A check now computes the ratios of each palette — layered on the JabRef theme the way JabRef layers it, following token references and
derive()— against the WCAG floor the style guide states, and a per-theme baseline holds the shortfalls that exist today so the gate stops new ones. The CI log lists every pair, so lowering a baseline number is mechanical.Stacked on github.com//pull/48; triggered by #46 (comment)
🤖 Generated with Claude Code
https://claude.ai/code/session_01X4mvBHaWcrBN9QDm5tzRdo