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(credits): make the primary buttons readable instead of white ink on a white fill

nirholas0466bde5974e
diff --git a/pages/credits.html b/pages/credits.html
index b4ae30b6b..759384870 100644
--- a/pages/credits.html
+++ b/pages/credits.html
@@ -178,8 +178,8 @@
color 0.15s;
}
.seg button[aria-pressed='true'] {
- background: var(--accent, #6c8cff);
- color: #fff;
+ background: var(--btn-primary-bg, var(--accent, #6c8cff));
+ color: var(--btn-primary-fg, #0a0a0a);
}
.field {
margin-top: 1rem;
@@ -257,23 +257,32 @@
padding: 0.7rem 1.1rem;
width: 100%;
margin-top: 1rem;
- background: var(--accent, #6c8cff);
- color: #fff;
+ background: var(--btn-primary-bg, var(--accent, #6c8cff));
+ color: var(--btn-primary-fg, #0a0a0a);
transition:
- filter 0.15s,
+ background 0.15s,
opacity 0.15s;
}
- .btn:hover {
- filter: brightness(1.08);
+ .btn:not(.secondary):hover:not(:disabled) {
+ background: var(--btn-primary-bg-hover, rgba(255, 255, 255, 0.88));
+ }
+ .btn:not(.secondary):active:not(:disabled) {
+ background: var(--btn-primary-bg-active, rgba(255, 255, 255, 0.76));
}
.btn:disabled {
- opacity: 0.55;
- cursor: not-allowed;
+ opacity: var(--disabled-opacity, 0.4);
+ cursor: var(--disabled-cursor, not-allowed);
}
.btn.secondary {
- background: var(--surface-2, #1c1f27);
- border: 1px solid var(--border, #262a33);
- color: var(--text-primary, #e8ebf2);
+ background: var(--btn-secondary-bg, var(--surface-2, #1c1f27));
+ border: 1px solid var(--btn-secondary-border, var(--border, #262a33));
+ color: var(--btn-secondary-fg, var(--text-primary, #e8ebf2));
+ }
+ .btn.secondary:hover:not(:disabled) {
+ background: var(--btn-secondary-bg-hover, rgba(255, 255, 255, 0.12));
+ }
+ .btn.secondary:active:not(:disabled) {
+ background: var(--btn-secondary-bg-active, rgba(255, 255, 255, 0.16));
}
.status {
margin-top: 0.85rem;
diff --git a/src/credits.js b/src/credits.js
index 0ee50b4d9..1320200a1 100644
--- a/src/credits.js
+++ b/src/credits.js
@@ -15,6 +15,7 @@ const SOL_MINT = 'So11111111111111111111111111111111111111112';
const $ = (id) => document.getElementById(id);
const fmtUsd = (n) => `$${(Number(n) || 0).toFixed(2)}`;
+const origin = window.location.origin;
// Balances round to cents, but a UNIT price does not: $THREE trades well under a
// cent, and `$0.00` next to a live quote reads as broken. Keep enough decimals to
@@ -26,7 +27,6 @@ function fmtUnitPrice(n) {
const decimals = Math.min(10, Math.max(2, Math.ceil(-Math.log10(v)) + 3));
return `$${v.toFixed(decimals).replace(/0+$/, '')}`;
}
-const origin = window.location.origin;
let state = {
asset: 'SOL',