mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-07 09:11:42 +00:00
11 lines
348 B
TypeScript
11 lines
348 B
TypeScript
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()]
|
|
}
|