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(design): replace hardcoded token hexes in the desktop, field, runs and x-video styles with the canonical vars so audit:tokens is back at zero

nirholasa035ee870683
diff --git a/pages/x-video.html b/pages/x-video.html
index f63572d0f..0d8134740 100644
--- a/pages/x-video.html
+++ b/pages/x-video.html
@@ -54,7 +54,7 @@
.xv-meta { color: var(--text-muted, #a0a0a0); font-size: 13px; flex: 1; }
.xv-dl { padding: 8px 16px; color: #fff; background: var(--accent-violet, #7c5df3); border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14px; transition: filter 0.15s; }
.xv-dl:hover { filter: brightness(1.12); }
- .xv-skel { height: 14px; border-radius: 6px; background: linear-gradient(90deg, #1a1a1a, #262626, #1a1a1a); background-size: 200% 100%; animation: xv-shimmer 1.2s linear infinite; margin: 18px; }
+ .xv-skel { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--bg-1, #1a1a1a), #262626, var(--bg-1, #1a1a1a)); background-size: 200% 100%; animation: xv-shimmer 1.2s linear infinite; margin: 18px; }
@keyframes xv-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .xv-skel { animation: none; } }
.xv-foot { margin-top: 32px; color: var(--text-muted, #a0a0a0); font-size: 13px; line-height: 1.6; }
diff --git a/src/desktop/boot.css b/src/desktop/boot.css
index 6116348db..f9676f7f0 100644
--- a/src/desktop/boot.css
+++ b/src/desktop/boot.css
@@ -181,7 +181,7 @@
color: #c4b5fd;
}
.os-boot-log li[data-state='fail'] b {
- color: #f87171;
+ color: var(--danger, #f87171);
}
.os-boot-log li[data-state='running'] b {
color: #fff;
diff --git a/src/desktop/chrome/chrome.css b/src/desktop/chrome/chrome.css
index 6cf11d774..cefb0a7b8 100644
--- a/src/desktop/chrome/chrome.css
+++ b/src/desktop/chrome/chrome.css
@@ -987,7 +987,7 @@
}
.run-body .run-err {
margin: 10px 0 0;
- color: #f87171;
+ color: var(--danger, #f87171);
}
.about-hero {
display: flex;
diff --git a/src/desktop/styles.css b/src/desktop/styles.css
index ad9c3ad3b..60c581b58 100644
--- a/src/desktop/styles.css
+++ b/src/desktop/styles.css
@@ -413,7 +413,7 @@
border: 0;
background: #c0c0c0;
box-shadow:
- inset -1px -1px #0a0a0a,
+ inset -1px -1px var(--bg-0, #0a0a0a),
inset 1px 1px #fff;
}
.style-prev[data-prev='classic'] .sp-bar {
@@ -428,7 +428,7 @@
border-top: 1px solid #fff;
background:
linear-gradient(#c0c0c0, #c0c0c0) 3px 2px / 18px 8px no-repeat,
- linear-gradient(#0a0a0a, #0a0a0a) 4px 3px / 18px 8px no-repeat,
+ linear-gradient(var(--bg-0, #0a0a0a), var(--bg-0, #0a0a0a)) 4px 3px / 18px 8px no-repeat,
linear-gradient(#a8a8a8, #a8a8a8) 26px 2px / 34px 8px no-repeat,
#c0c0c0;
}
@@ -699,8 +699,8 @@
* ================================================================= */
.os[data-style='classic'] {
--c-face: #c0c0c0;
- --c-bevel-out: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf;
- --c-bevel-in: inset -1px -1px #fff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080;
+ --c-bevel-out: inset -1px -1px var(--bg-0, #0a0a0a), inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf;
+ --c-bevel-in: inset -1px -1px #fff, inset 1px 1px var(--bg-0, #0a0a0a), inset -2px -2px #dfdfdf, inset 2px 2px #808080;
}
.os[data-style='classic'] :is(.os-task, .os-pop, .os-peek, .snap-fly, .win-bar, .os-toast) {
--text: #000;
diff --git a/src/desktop/theme.css b/src/desktop/theme.css
index 7bdc559ba..374dd8059 100644
--- a/src/desktop/theme.css
+++ b/src/desktop/theme.css
@@ -26,6 +26,12 @@
--col-good: #5be45b;
--col-bad: #d44343;
+ /* The desktop is its own fixed-palette world: it pins the two site base
+ * surfaces here so bevels and light-theme text resolve to the same values
+ * whichever theme the page around it runs. */
+ --bg-0: #0a0a0a;
+ --bg-1: #1a1a1a;
+
/* Semantic surfaces (dark) */
--bg: #000000;
--bg50: #00000065;
@@ -35,7 +41,7 @@
--hover: #2a2a2a;
--hover-half: #2a2a2a60;
--hover-b: #333333;
- --unfoc: #1a1a1a;
+ --unfoc: var(--bg-1);
--msg: #333333;
--hr: #ffffff20;
--bd: #333333;
@@ -108,7 +114,7 @@
--col-bg2: #ececec;
--col-bg3: #e0e0e0;
--col-bgh: #d0d0d0;
- --col-txt1: #1a1a1a;
+ --col-txt1: var(--bg-1);
--col-txt2: #444444;
--col-txth: #000000;
diff --git a/src/desktop/world/world.css b/src/desktop/world/world.css
index 37c720767..5b5d1c05f 100644
--- a/src/desktop/world/world.css
+++ b/src/desktop/world/world.css
@@ -583,8 +583,8 @@
width: 7px;
height: 7px;
border-radius: 50%;
- background: #4ade80;
- box-shadow: 0 0 8px #4ade80;
+ background: var(--success, #4ade80);
+ box-shadow: 0 0 8px var(--success, #4ade80);
}
.wd-bubble {
order: -1;
diff --git a/src/field/field.css b/src/field/field.css
index 60968deda..cf1b541d8 100644
--- a/src/field/field.css
+++ b/src/field/field.css
@@ -13,8 +13,8 @@
--fd-road: rgba(196, 181, 253, 0.08);
--fd-ring: rgba(196, 181, 253, 0.07);
--fd-accent: #b8a6ff;
- --fd-up: #4ade80;
- --fd-down: #f87171;
+ --fd-up: var(--success, #4ade80);
+ --fd-down: var(--danger, #f87171);
--fd-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}
:root[data-theme='light'] {
@@ -794,7 +794,7 @@ body {
animation: fd-live 2.4s ease-out infinite;
}
.fd.is-degraded .fd-live {
- background: #fbbf24;
+ background: var(--warn, #fbbf24);
animation: none;
}
@keyframes fd-live {
diff --git a/src/runs.css b/src/runs.css
index 21c30e292..909c4b978 100644
--- a/src/runs.css
+++ b/src/runs.css
@@ -114,7 +114,7 @@ body {
}
.rr-btn--primary {
background: var(--rr-bright);
- color: #0a0a0a;
+ color: var(--bg-0, #0a0a0a);
border-color: var(--rr-bright);
}
.rr-btn--primary:hover {
@@ -190,7 +190,7 @@ body {
background: var(--rr-card-2);
}
.rr-chip.is-active {
- color: #0a0a0a;
+ color: var(--bg-0, #0a0a0a);
background: var(--rr-bright);
border-color: var(--rr-bright);
}