Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(markets): pull every signed number and trust badge in the market tables back over the AA contrast floor

ni3ac29da51e67b1
diff --git a/src/coin-pages.css b/src/coin-pages.css
index 62b2a9d05..9a8e2fa5f 100644
--- a/src/coin-pages.css
+++ b/src/coin-pages.css
@@ -63,6 +63,11 @@ html[data-theme='light'] {
tinted winner cell. Red already clears AA and is kept as it is. */
--cv-green-text: #15803d;
--cv-red-text: #dc2626;
+ /* Text sitting ON a tinted badge fill rather than on the page. The tint
+ lifts the background, so --cv-red reads 4.22:1 and --cv-green 3.02:1
+ against their own fills, both under AA. Dark needs no such adjustment. */
+ --cv-red-on-tint: #b91c1c;
+ --cv-green-on-tint: #166534;
--cv-surface: #fff;
--cv-surface-2: #f8fafc;
--cv-surface-3: #f1f5f9;
@@ -106,6 +111,8 @@ html:not([data-theme='light']) {
--cv-green: var(--success);
--cv-green-soft: rgba(34, 197, 94, 0.12);
--cv-red: var(--danger);
+ --cv-red-on-tint: var(--danger);
+ --cv-green-on-tint: var(--success);
--cv-red-soft: rgba(239, 68, 68, 0.12);
--cv-chart-green: #22c55e;
--cv-chart-red: #ef4444;
@@ -270,8 +277,12 @@ html.cv-page,
display: block;
}
+/* --cv-green (3.3:1 on white) is the chart and fill green; --cv-green-text is
+ the same hue darkened for body copy, and that is what a signed number in a
+ table is. Dark maps both to the same value, so this only moves light out of
+ a 3.29:1 reading it was failing AA on across every market table. */
.cv-up {
- color: var(--cv-green);
+ color: var(--cv-green-text);
}
.cv-down {
color: var(--cv-red);
diff --git a/src/exchange-page.css b/src/exchange-page.css
index c24eeb1cb..07b330b84 100644
--- a/src/exchange-page.css
+++ b/src/exchange-page.css
@@ -56,13 +56,16 @@
border: 1px solid transparent;
cursor: help;
}
+/* The "/10" suffix is differentiated by size and weight alone. It used to also
+ carry opacity: 0.7, which blended the badge colour into its own tinted
+ background and dropped the 11px text to 3.84:1, under the 4.5:1 AA floor
+ the repo gates on. Smaller text needs MORE contrast, not less. */
.ex-score .of {
font-size: 0.6875rem;
font-weight: 500;
- opacity: 0.7;
}
.ex-score-hi {
- color: var(--cv-green);
+ color: var(--cv-green-on-tint);
background: var(--cv-green-soft);
border-color: color-mix(in srgb, var(--cv-green) 30%, transparent);
}
@@ -75,7 +78,7 @@
color: var(--warn);
}
.ex-score-lo {
- color: var(--cv-red);
+ color: var(--cv-red-on-tint);
background: var(--cv-red-soft);
border-color: color-mix(in srgb, var(--cv-red) 30%, transparent);
}
diff --git a/src/exchanges.css b/src/exchanges.css
index 279e25eea..921a6afec 100644
--- a/src/exchanges.css
+++ b/src/exchanges.css
@@ -18,13 +18,16 @@
font-variant-numeric: tabular-nums;
border: 1px solid transparent;
}
+/* Size and weight carry the "/10" suffix on their own. The opacity: 0.7 this
+ used to add blended the pill colour into its own background and left 10px
+ text at 4.11:1 across every row, under the 4.5:1 AA floor. Smaller text
+ needs more contrast, not less. */
.ex-trust .of {
font-size: 0.625rem;
font-weight: 500;
- opacity: 0.7;
}
.ex-trust-hi {
- color: var(--cv-green);
+ color: var(--cv-green-on-tint);
background: var(--cv-green-soft);
border-color: color-mix(in srgb, var(--cv-green) 30%, transparent);
}
@@ -34,7 +37,7 @@
border-color: var(--cv-border);
}
.ex-trust-lo {
- color: var(--cv-red);
+ color: var(--cv-red-on-tint);
background: var(--cv-red-soft);
border-color: color-mix(in srgb, var(--cv-red) 30%, transparent);
}
diff --git a/tests/e2e/a11y-top-pages.spec.js b/tests/e2e/a11y-top-pages.spec.js
index 33924045b..ce3ca1d5a 100644
--- a/tests/e2e/a11y-top-pages.spec.js
+++ b/tests/e2e/a11y-top-pages.spec.js
@@ -33,6 +33,16 @@ const EXTRA_HIGH_TRAFFIC = [
'/nvidia',
'/pricing',
'/irl',
+ // The Markets tables. Their priority scores sit below the top 30, so the
+ // whole cv-page design system rode into production ungated: every signed
+ // number in a market table was drawn in the chart-fill green (3.29:1 on
+ // white) and the trust badges in a hue on their own tint (3.02:1), all of
+ // it under AA in light mode and none of it visible to this gate. These two
+ // pages between them exercise the shared table, the stat cards, the score
+ // badges and the filter chips, so a regression in any of those is caught
+ // here rather than on a page nobody audits.
+ '/derivatives',
+ '/exchanges',
// The Home Assistant lane, every public route of it. A voice-controlled
// house is assistive technology for the people most likely to need it, so
// these carry the same hard WCAG floor as the marketing surfaces above and