Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

774 B
Raw Blame
---
import { yantraSvg } from "./yantra";

interface Props {
  size?: number;
  stroke?: string;
  dot?: string;
  bg?: string;
  strokeWidth?: number;
  /** Inherit color from surrounding text (default true for inline use). */
  useCurrentColor?: boolean;
  class?: string;
}

const {
  size = 42,
  stroke,
  dot,
  bg,
  strokeWidth,
  useCurrentColor = true,
  class: className,
} = Astro.props;

// Theme-aware bindu: green in light, terracotta in dark. Defined per
// theme in tokens.css; falls back to deep moss outside the website.
const resolvedDot = dot ?? "var(--alc-yantra-dot, #3f5a2a)";

const svg = yantraSvg({
  size,
  stroke,
  dot: resolvedDot,
  bg,
  strokeWidth,
  useCurrentColor,
});
---

<span class={className} aria-hidden="true" set:html={svg} />