sailfork / t3code-github / .repos/ alchemy-effect/ website/ src/ components/ marketing/ Logo.astro

---
import Yantra from "../../brand/Yantra.astro";

interface Props {
  size?: number;
}
const { size = 22 } = Astro.props;
// The yantra reads best when sized roughly to the cap-height of the
// accompanying wordmark — slightly larger than the old solid dot so the
// inner triangle stays legible.
const markSize = Math.round(size * 0.95);
---

<span class="alc-logo">
  <Yantra class="alc-logo__mark" size={markSize} />
  <span class="alc-logo__word" style={`font-size:${size}px;`}>Alchemy</span>
</span>

<style>
  .alc-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .alc-logo__mark {
    display: inline-flex;
    align-items: center;
  }
  .alc-logo__mark :global(svg) {
    display: block;
  }
  .alc-logo__word {
    font-family: var(--alc-font-serif);
    font-style: italic;
    font-weight: 500;
    color: var(--alc-fg-1);
    letter-spacing: -0.01em;
  }
</style>