Skip to content

Jig 0.2.1

Choose a tag to compare

@timessuman timessuman released this 01 Sep 21:26
· 512 commits to main since this release
6ee3ae6

Fixes two shipped accessibility defects.

--color-text-warning was 3.64:1 and --color-text-success 4.48:1 against surfaces they can land on, where text requires 4.5:1 and strokes 3:1.

The source states it directly for system colours. RECONCILE.md lists the contrast floors as the one category not up for reconciliation. C-19 is a rule about this exact failure. The system was breaking its own hardest rule, in a default every consumer inherits unless they override it.

Warning lightness 36% → 29%, success 26% → 23%. Hue and saturation unchanged, so both are the same colour, darker. All four semantic colours now clear both floors against bg-base, bg-raised and fill on either.

The system colours also now state what a replacement must satisfy. The brand colour already carried that contract; these did not — so a user bringing their own error colour, which is the intended workflow, had no floor to hit.

Added

Check rule 5 computes contrast from the token values and fails the build. This is the only defect class in the system that arithmetic can catch, and it shipped twice because nobody was doing the arithmetic.

Check rule 6 fails the build when a token is defined but never rendered by the preview.

packages/preview — a rendering harness. Every prior check verified the system by arithmetic or grep; nothing had looked at it. Plain HTML and CSS, no build, not published. It found two gaps on its first run: no border-width token, and no focus-ring geometry tokens.