My theme build fails if any color misses WCAG contrast — here's the pipeline
Admin User
Author
Summary
The problem with
One palette file, thirteen apps
The gate
def contrast(a: str, b: str) -> float: la, lb = rel_lum(a), rel_lum(b) hi, lo = max(la, lb), min(la, lb) return (hi + 0.05) / (lo + 0.05)
Confession: v1 of this gate had holes
Tuning by binary search, not by eye
What I'd tell other theme authors
Links
Source
This article discusses content originally published by at Dev.to.