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(a11y): clear the WCAG AA contrast failures on the market-tool pages

nirholasc88b729885d4
diff --git a/public/getting-started.css b/public/getting-started.css
index a307f712b..9c3bfffbd 100644
--- a/public/getting-started.css
+++ b/public/getting-started.css
@@ -78,10 +78,14 @@
.twg-pill-label { white-space: nowrap; letter-spacing: -0.01em; }
.twg-pill-count {
font-variant-numeric: tabular-nums;
- color: var(--ink-dim, #888888);
+ /* The pill is a permanently dark surface, so its ink cannot come from a token
+ that flips with the page theme: in light mode --ink-dim resolves to #5a616f
+ and reads at 2.6:1 on this background. Fixed light-on-dark, like the rest of
+ the pill. */
+ color: #a1a1aa;
font-weight: 500;
}
-.twg-pill.is-complete .twg-pill-count { color: var(--success, #4ade80); }
+.twg-pill.is-complete .twg-pill-count { color: #4ade80; }
.twg-pill.is-complete {
border-color: rgba(74, 222, 128, 0.25);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(74, 222, 128, 0.08);
diff --git a/src/coin-pages.css b/src/coin-pages.css
index 3eafd286d..98f91059e 100644
--- a/src/coin-pages.css
+++ b/src/coin-pages.css
@@ -58,6 +58,11 @@ html[data-theme='light'] {
filled control picks its own pair: 6.7:1 here, 7.9:1 in dark. */
--cv-accent-solid: #1d4ed8;
--cv-on-accent: #fff;
+ /* --cv-green reads at 3.3:1 on white, so a table that colours whole cells by
+ sign needs a darker green for its text: 5.0:1 on the surface, 4.8:1 on the
+ tinted winner cell. Red already clears AA and is kept as it is. */
+ --cv-green-text: #15803d;
+ --cv-red-text: #dc2626;
--cv-surface: #fff;
--cv-surface-2: #f8fafc;
--cv-surface-3: #f1f5f9;
@@ -87,6 +92,8 @@ html:not([data-theme='light']) {
--cv-accent-hover: #93bbfc;
--cv-accent-solid: #60a5fa;
--cv-on-accent: #0a0a0a;
+ --cv-green-text: #4ade80;
+ --cv-red-text: #f87171;
--cv-surface: #09090b;
--cv-surface-2: #131316;
--cv-surface-3: #1c1c21;
@@ -1699,6 +1706,15 @@ html.cv-page,
display: inline-flex;
align-items: center;
gap: 0.375rem;
+ color: var(--cv-text);
+ text-decoration: none;
+}
+/* The series colour identifies the column, but as text it is 2.1:1 for amber on
+ white. It rides under the symbol instead, so the tie to the chart line holds
+ and the label itself stays readable. */
+.cmp-table thead th .coin .sym {
+ border-bottom: 2px solid var(--cmp-series, var(--cv-text-3));
+ padding-bottom: 0.125rem;
}
.cmp-table thead th img {
width: 20px;
@@ -1726,13 +1742,13 @@ html.cv-page,
position: relative;
}
.cmp-table td.cv-up {
- color: var(--cv-green);
+ color: var(--cv-green-text);
}
.cmp-table td.cv-down {
- color: var(--cv-red);
+ color: var(--cv-red-text);
}
.cmp-table td.best:not(.cv-up):not(.cv-down) {
- color: var(--cv-green);
+ color: var(--cv-green-text);
}
.cmp-legend {
display: flex;
diff --git a/src/compare.js b/src/compare.js
index 693edc370..b6b4251cb 100644
--- a/src/compare.js
+++ b/src/compare.js
@@ -535,9 +535,9 @@ function renderTable() {
const head = ready
.map(
(c) =>
- `<th scope="col"><a class="coin" href="/coin/${encodeURIComponent(c.id)}" style="text-decoration:none;color:inherit">
+ `<th scope="col"><a class="coin" href="/coin/${encodeURIComponent(c.id)}" style="--cmp-series:${c.color}">
${c.detail.image ? `<img loading="lazy" decoding="async" src="${esc(c.detail.image)}" alt="" data-no-dark-filter />` : ''}
- <span style="color:${c.color}">${esc(c.detail.symbol || c.detail.name)}</span>
+ <span class="sym">${esc(c.detail.symbol || c.detail.name)}</span>
</a></th>`,
)
.join('');