fix(app): agent fallback colors

This commit is contained in:
adamelmore
2026-01-27 06:16:20 -06:00
parent 1f9313847f
commit 743e83d9bf
2 changed files with 13 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
const defaults: Record<string, string> = {
ask: "var(--icon-agent-ask-base)",
build: "var(--icon-agent-build-base)",
docs: "var(--icon-agent-docs-base)",
plan: "var(--icon-agent-plan-base)",
}
export function agentColor(name: string, custom?: string) {
if (custom) return custom
return defaults[name] ?? defaults[name.toLowerCase()]
}