Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

1.3 KB
Raw Blame
/**
 * ClaudeMark —— Claude Code 官方像素方块脸 mark(CLI 品牌 glyph),双轨:
 *  - variant="mono"(默认):currentColor 单色,跟随主题/状态染色(侧栏
 *    idle/running 灰阶、选中态同文字色等既有染色语义全部生效);
 *  - variant="brand":Anthropic 陶土橙 #d97757 固定品牌色(跨主题一致,语义
 *    豁免——同 docs/design-rules/cindy-design-system.md Toast 三色逻辑,不走主题 token),用于需要品牌辨识
 *    度的场景,父级染色 class 对其无效。
 *
 * 2026-07-20(产品):形状统一用 Claude Code 像素脸(比旧 Anthropic "AA"
 * wordmark 辨识度高);单色为默认,彩色按场景显式启用。
 */

import { CLAUDE_CODE_MARK_PATH } from '../../../shared/brandMarkPaths';

interface ClaudeMarkProps {
  size?: number;
  className?: string;
  variant?: 'mono' | 'brand';
}

export function ClaudeMark({ size = 14, className, variant = 'mono' }: ClaudeMarkProps) {
  return (
    <svg
      width={size}
      height={size}
      viewBox="0 0 24 24"
      xmlns="http://www.w3.org/2000/svg"
      className={className}
      aria-hidden
    >
      <path
        fill={variant === 'brand' ? '#d97757' : 'currentColor'}
        fillRule="evenodd"
        clipRule="evenodd"
        d={CLAUDE_CODE_MARK_PATH}
      />
    </svg>
  );
}