Open History to see the last commit
1import type { UsageProviderKind } from "@t3tools/contracts";
2
3import { ClaudeAI, type Icon, OpenCodeIcon, OpenAI } from "../Icons";
4
5/**
6 * Series and table order. The chart layers both providers from a shared zero
7 * baseline, so this only fixes the reading order of legends, tables and hover
8 * rows; it does not decide which series sits above the other.
9 */
10export const PROVIDER_ORDER: readonly UsageProviderKind[] = ["codex", "claude", "opencode"];
11
12export const PROVIDER_LABEL: Record<UsageProviderKind, string> = {
13 claude: "Claude Code",
14 codex: "Codex",
15 opencode: "OpenCode",
16};
17
18/**
19 * Claude's brand orange against a neutral white for Codex; a violet that reads
20 * on both themes for OpenCode.
21 */
22export const PROVIDER_COLOR: Record<UsageProviderKind, string> = {
23 claude: "#d97757",
24 codex: "#e6e6e6",
25 opencode: "#a78bfa",
26};
27
28/**
29 * Brand marks, reused from the provider picker.
30 *
31 * Claude ships its own fill (`#d97757`), which matches its chart band; OpenAI
32 * and OpenCode render monochrome, so their legend and hover marks carry the
33 * series association through the neighbouring label rather than a fill.
34 */
35export const PROVIDER_MARK: Record<UsageProviderKind, Icon> = {
36 claude: ClaudeAI,
37 codex: OpenAI,
38 opencode: OpenCodeIcon,
39};