diff --git a/DESIGN.md b/DESIGN.md index 10e4bef784..783e361c16 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -163,11 +163,13 @@ and the rest of its semantic palette. Never hardcode a hex value or an arbitrary Tailwind color class in product code; if a needed token doesn't exist yet, add it in react-ui, not locally. -**Avatar identity** is the one deliberate color exception. A person without -an explicit image receives deterministic initials from the approved pastel -palette. `@corbits/chat-ui` owns the finite Tailwind background/text class -map and resolves a principal to one class pair; consumers never use CSS -variables or inline color styles. Agents use `CorbitAvatar`: a circular +**Avatar identity** resolves through theme tokens, not local hex. A person without +an explicit image receives deterministic initials from the `--avatar-1` through +`--avatar-4` pastel tokens, defined once in `@corbits/chat-ui`'s stylesheet +`:root` (the proposed upstream contract for `@corbits/react-ui`'s theme). +`@corbits/chat-ui` owns the finite token-to-class map and resolves a principal +to one class pair; consumers use the resolver's classes, never their own color +styles. Agents use `CorbitAvatar`: a circular field with a dark lower visor and sensor glint. The two forms stay distinct at a glance in every collaborative surface. diff --git a/apps/web/src/pages/create-agent-panel.tsx b/apps/web/src/pages/create-agent-panel.tsx index 2d3734974a..2f5532f56f 100644 --- a/apps/web/src/pages/create-agent-panel.tsx +++ b/apps/web/src/pages/create-agent-panel.tsx @@ -434,11 +434,11 @@ export function CreateAgentPanel({ size="lg" />
- {AVATAR_COLORS.map((color) => ( + {AVATAR_COLORS.map((color, index) => (