diff --git a/DESIGN.md b/DESIGN.md index d6e905f6b4..8bde7a684d 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -155,8 +155,8 @@ 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 +palette. `@corbits/chat-ui` owns the finite Tailwind color palette and +resolves a principal to one class pair; consumers never use CSS variables or inline 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 b058eee921..1cd27bb684 100644 --- a/apps/web/src/pages/create-agent-panel.tsx +++ b/apps/web/src/pages/create-agent-panel.tsx @@ -53,8 +53,7 @@ import { import type { IntakeField } from "@corbits/react-ui"; import { useEffect, useState } from "react"; import { - AVATAR_COLORS, - avatarColorClass, + AVATAR_PALETTE, CORBIT_DEFAULT_COLOR, CorbitAvatar, } from "@corbits/chat-ui"; @@ -434,13 +433,13 @@ export function CreateAgentPanel({ size="lg" />
- {AVATAR_COLORS.map((color) => ( + {AVATAR_PALETTE.map(({ color, className }) => (