Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

881 B
Raw Blame
/**
 * Canonical status colors — single source of truth for status HEX, mirroring the
 * semantic tokens in `src/app/globals.css` (--color-success / --color-warning /
 * --color-error). Previously these same hex values were copy-pasted across several
 * components (flow edge styles, token-health badge, cascade nodes…); this module
 * collapses them to one place.
 *
 * Use these HEX values ONLY where a CSS class can't reach — canvas, ReactFlow SVG
 * strokes, or inline styles on third-party nodes. For normal DOM, prefer the Tailwind
 * utilities (`text-success`, `bg-error/10`, …) which already read the same tokens.
 */
export const STATUS_HEX = {
  success: "#22c55e",
  warning: "#f59e0b",
  error: "#ef4444",
  muted: "#6b7280",
  /** Human-approval gate (waiting_approval) — violet, matching the industry de-facto palette. */
  approval: "#8b5cf6",
} as const;