The design language that makes your AI harness better at design.
JavaScript
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Low Contrast Near The Bar: Failing vs Advisory vs Passing</title>
<style>
/* Taste call r3-02: a ratio within 0.3 of the bar for normal text
(4.2:1 up to 4.5:1), or within 0.2 for large text (2.8:1 up to 3:1),
is reported as advisory, outside the failure count, with its measured
ratio. Below the margin it fails as before. The margin is read off the
ratio as it prints, so #7c7c7c (4.17:1, printed 4.2:1) is advisory and
#7d7d7d (4.12:1, printed 4.1:1) fails. Every case has its own colour so
each finding names it. */
body { font-family: system-ui, sans-serif; background: #ffffff; color: #1f2937; margin: 0; padding: 24px; }
.grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; max-width: 1200px; margin: 0 auto; }
.col > h2 { font-size: 20px; margin: 0 0 16px; color: #1f2937; }
.panel { width: 340px; padding: 16px; margin: 0 0 16px; background: #ffffff; }
.body-copy { font-size: 14px; font-weight: 400; margin: 0; }
.large-copy { font-size: 28px; font-weight: 400; margin: 0; }
.display { font-size: 40px; font-weight: 700; line-height: 1.3; margin: 0; }
.hover-button { background: #ffffff; color: #111111; border: 0; font-size: 14px; padding: 12px 16px; }
.image-card { width: 340px; height: 96px; padding: 16px; box-sizing: border-box; margin: 0 0 16px;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 96'%3E%3Crect width='340' height='96' fill='%23ffffff'/%3E%3C/svg%3E");
background-size: cover; }
.image-card p { margin: 0; font-size: 18px; font-weight: 700; }
/* A translucent pill over a scrim over an image: only rendered pixels
say what the text sits on, so the pixel pass measures it. */
.photo-card { position: relative; overflow: hidden; width: 340px; height: 96px; margin: 0 0 16px;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 96'%3E%3Crect width='340' height='96' fill='%23ffffff'/%3E%3C/svg%3E");
background-size: cover; }
.scrim { position: absolute; inset: 0; background-image: linear-gradient(to top, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0) 100%); }
.pill { position: relative; z-index: 1; display: inline-block; margin: 24px; padding: 6px 14px; border-radius: 999px;
background: rgba(255, 255, 255, 0.1); font-size: 18px; font-weight: 700; }
/* Should flag (failing): under the margin. */
.fail-body { color: #7d7d7d; } /* 4.12:1, need 4.5 */
.fail-link { color: #7e7e7e; font-size: 14px; } /* 4.06:1, need 4.5 */
.fail-large { color: #9c9c9c; } /* 2.75:1, need 3 */
.fail-display { color: #9e9e9e; } /* 2.68:1, need 3 (r3-08: bold display keeps failing) */
.fail-hover:hover { color: #7f7f7f; } /* 4.0:1, need 4.5 */
.fail-image { color: #4182c6; } /* 4.01:1 over a white image */
.fail-pill { color: #4182c6; } /* about 3.9:1 in pixels */
/* Should flag as advisory: inside the margin. */
.adv-edge { color: #7c7c7c; } /* 4.17:1, prints 4.2:1 */
.adv-body { color: #777777; } /* 4.48:1 */
.adv-link { color: #797979; font-size: 14px; } /* 4.35:1 */
.adv-span { color: #7a7a7a; font-size: 14px; } /* 4.29:1 */
.adv-large { color: #9b9b9b; } /* 2.78:1, prints 2.8:1 */
.adv-display { color: #959595; } /* 2.99:1 */
.adv-hover:hover { color: #787878; } /* 4.42:1 */
.adv-image { color: #3b7cc0; } /* 4.35:1 over a white image */
.adv-pill { color: #3b7cc0; } /* about 4.3:1 in pixels */
/* Should pass: at or over the bar. */
.pass-body { color: #767676; } /* 4.54:1 */
.pass-link { color: #757575; font-size: 14px; } /* 4.61:1 */
.pass-large { color: #949494; } /* 3.03:1 */
.pass-hover:hover { color: #737373; } /* 4.74:1 */
</style>
</head>
<body>
<div class="grid">
<div class="col">
<h2>Should flag</h2>
<div class="panel"><p class="body-copy fail-body">Plans renew on the first of the month</p></div>
<div class="panel"><a class="fail-link" href="#renewal">Read the renewal terms</a></div>
<div class="panel"><p class="large-copy fail-large">Every plan compared</p></div>
<div class="panel"><p class="display fail-display">Ship it today</p></div>
<div class="panel"><button class="hover-button fail-hover" type="button">Cancel the trial</button></div>
<div class="image-card"><p class="fail-image">Seats are billed per editor</p></div>
<div class="photo-card"><div class="scrim"></div><div class="pill fail-pill">Refunds take five days</div></div>
</div>
<div class="col">
<h2>Should flag as advisory</h2>
<div class="panel"><p class="body-copy adv-edge">Taxes are added at checkout</p></div>
<div class="panel"><p class="body-copy adv-body">Invoices list every seat</p></div>
<div class="panel"><a class="adv-link" href="#invoices">Download past invoices</a></div>
<div class="panel"><span class="adv-span">Prices shown in euros</span></div>
<div class="panel"><p class="large-copy adv-large">Questions about seats</p></div>
<div class="panel"><p class="display adv-display">Start free</p></div>
<div class="panel"><button class="hover-button adv-hover" type="button">Change the plan</button></div>
<div class="image-card"><p class="adv-image">Annual plans save a month</p></div>
<div class="photo-card"><div class="scrim"></div><div class="pill adv-pill">Teams get shared billing</div></div>
</div>
<div class="col">
<h2>Should pass</h2>
<div class="panel"><p class="body-copy pass-body">Billed yearly, cancel any time</p></div>
<div class="panel"><a class="pass-link" href="#sales">Talk to the sales team</a></div>
<div class="panel"><p class="large-copy pass-large">Billing questions</p></div>
<div class="panel"><button class="hover-button pass-hover" type="button">Keep the plan</button></div>
</div>
</div>
</body>
</html>