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.

tokens(theme): name the violet accent pair and move the skeleton primitives

nirholas2d5888a97409
diff --git a/public/style.css b/public/style.css
index e158e7b14..d4e95ded3 100644
--- a/public/style.css
+++ b/public/style.css
@@ -113,12 +113,9 @@
--shadow-3: 0 8px 32px rgba(0, 0, 0, 0.50), 0 1px 4px rgba(0, 0, 0, 0.20);
/* --- Skeleton ----------------------------------------------------------
- * Shared loading-shimmer treatment. Replaces hardcoded placeholder greys
- * (#2b2b2b / #3b3b3b) site-wide; monochrome so it reads on any dark surface.
+ * The shimmer primitives moved to tokens.css (QB-07) so nav-only pages
+ * resolve them too and they flip with the light theme. Consume the vars.
*/
- --skeleton-base: rgba(255, 255, 255, 0.04);
- --skeleton-sheen: rgba(255, 255, 255, 0.08);
- --skeleton-radius: var(--radius-md);
/* --- Cards -------------------------------------------------------------
* Glass-surface container with hover border lift and tasteful shadow.
@@ -160,7 +157,7 @@
/* Devnet / testnet badge (amber) */
--badge-devnet-bg: rgba(251, 191, 36, 0.12);
- --badge-devnet-fg: #fbbf24;
+ --badge-devnet-fg: var(--warn);
--badge-devnet-border: rgba(251, 191, 36, 0.32);
/* Informational / "New" badge (neutral) */
diff --git a/public/tokens.css b/public/tokens.css
index 560f0d441..363264ea7 100644
--- a/public/tokens.css
+++ b/public/tokens.css
@@ -171,6 +171,19 @@
--danger: #f87171;
--warn: #fbbf24;
+ /* Violet accent pair (QB-07). The pale violet that marks identity, agent and
+ on-chain surfaces was only ever named for the wallet, so every OTHER surface
+ that reached for the same hue hardcoded it: a sweep found it hand-typed on
+ payments, integrations, gestures, genome, galaxy and a dozen more. Those
+ copies never flipped for the light theme, where the pale rung measures 1.7:1
+ and the text is simply unreadable. Naming the pair at the platform level
+ gives them a destination; --wallet-* below is now a thin alias of it (same
+ sanctioned pattern as --nxt-* / --nv-*), so wallet UI is unchanged.
+ accent-violet default violet ink / chip text
+ accent-violet-strong emphasized fill, vanity glyphs, chart series */
+ --accent-violet: #c4b5fd;
+ --accent-violet-strong: #a78bfa;
+
/* Wallet identity accent — the violet family that marks every wallet surface
(chip, HUD, vanity studio) as one coherent system across the app. Route all
wallet UI through these tokens rather than scattering raw rgba(139,92,246,…).
@@ -178,8 +191,8 @@
accent-soft chip fill (low alpha)
stroke chip border
hi vanity-highlighted address glyphs (pure white) */
- --wallet-accent: #c4b5fd;
- --wallet-accent-strong: #a78bfa;
+ --wallet-accent: var(--accent-violet);
+ --wallet-accent-strong: var(--accent-violet-strong);
--wallet-accent-soft: rgba(139, 92, 246, 0.10);
--wallet-accent-fill: rgba(139, 92, 246, 0.15);
--wallet-stroke: rgba(139, 92, 246, 0.30);
@@ -241,6 +254,29 @@
--blur-md: 16px;
--blur-lg: 28px;
+ /* Skeleton (QB-07) — the loading-shimmer primitives. They were defined in
+ style.css, so a page that only injects the shared nav (nav.css imports this
+ sheet, not style.css) could not resolve them and hand-rolled its own grey
+ gradient instead; those literals then stayed dark on the light theme. Living
+ here they resolve on every token-covered page and flip with the theme.
+ Monochrome on purpose so a skeleton reads on any surface tier. */
+ --skeleton-base: rgba(255, 255, 255, 0.04);
+ --skeleton-sheen: rgba(255, 255, 255, 0.08);
+ --skeleton-radius: var(--radius-md);
+
+ /* Stage (QB-07) — the backdrop a 3D viewport, avatar thumbnail or model
+ modal renders against. Like the scrim family it is deliberately
+ theme-INVARIANT: a rendered model reads against a dark studio ground in
+ either theme, and flipping it to white would blow out every light-coloured
+ avatar. It replaces a six-value near-black ramp (#000, #050505, #0a0a0a,
+ #0d0d0d, #0e0e0e, #242424) that had drifted across three pages.
+ Use it ONLY behind media. A normal panel is --bg-0/--bg-1 and must flip. */
+ --stage-black: #000000;
+ --stage-deep: #050505;
+ --stage: #0a0a0a;
+ --stage-lift: #0d0d0d;
+ --stage-glow: #242424;
+
/* Motion (B01) — one duration ladder + named easings. Compose as
`transition: <prop> var(--duration-fast) var(--ease-standard);`
Respect prefers-reduced-motion at the component level. */
@@ -471,16 +507,22 @@
--text-4: #aab0bc;
--nv-bar-bg: rgba(255, 255, 255, 0.82);
- /* Wallet identity accent. The dark palette's pale violets (#c4b5fd text,
- #a78bfa vanity) were never remapped for light, so every wallet chip on a
- light surface rendered its address at 1.7:1 against the card: unreadable,
- and well under the 4.5:1 AA floor for the 11px type it uses. Darkening the
- two ink tokens to the violet-600/700 rungs keeps the violet identity that
- marks wallet UI across the app and measures 5.3:1 and 6.6:1. The fills,
+ /* Violet accent pair (and, through the aliases above, every wallet surface).
+ The dark palette's pale violets (#c4b5fd text, #a78bfa vanity) were never
+ remapped for light, so every wallet chip on a light surface rendered its
+ address at 1.7:1 against the card: unreadable, and well under the 4.5:1 AA
+ floor for the 11px type it uses. Darkening the two ink tokens to the
+ violet-600/700 rungs keeps the violet identity that marks wallet and
+ identity UI across the app and measures 5.3:1 and 6.6:1. The fills,
strokes and glow are alpha-based on the same 139,92,246 hue and already
composite correctly on a light canvas, so they stay put. */
- --wallet-accent: #6d28d9;
- --wallet-accent-strong: #5b21b6;
+ --accent-violet: #6d28d9;
+ --accent-violet-strong: #5b21b6;
+
+ /* Skeleton on light. A white-tint shimmer is invisible on a white canvas, so
+ the ramp inverts to a dark tint at the same two alphas. */
+ --skeleton-base: rgba(15, 18, 28, 0.06);
+ --skeleton-sheen: rgba(15, 18, 28, 0.11);
}
@media (prefers-reduced-motion: reduce) {