import type { UsageProviderKind } from "@t3tools/contracts"; import { useAppearancePreferences } from "../settings/appearance/AppearancePreferencesProvider"; /** * Series and table order. The chart stacks providers from the bottom in this * order, so it also fixes which band sits on top of the bars. */ export const PROVIDER_ORDER: readonly UsageProviderKind[] = ["codex", "claude"]; export const PROVIDER_LABEL: Record = { claude: "Claude Code", codex: "Codex", }; /** * Claude's brand orange holds in both themes; Codex is neutral and must flip * with the theme or its bars vanish against the matching background. */ export function useProviderColors(): Record { const { themeAppearance: scheme } = useAppearancePreferences(); return { claude: "#d97757", codex: scheme === "dark" ? "#e6e6e6" : "#3c3c43", }; }