Logo mark (wordmark)
Simple geometric glyph plus a company name, used as a stand-in brand logo in navbars, footers and logo clouds.
pnpm dlx shadcn@latest add @haze/logo-mark---
import { cn } from "../../../lib/haze/utils";
interface Props {
/** Fictional company name shown as a wordmark. */
name: string;
shape?: "circle" | "square" | "triangle" | "diamond" | "haze";
class?: string;
}
const { name, shape = "circle", class: className } = Astro.props;
---
<span class={cn("inline-flex items-center gap-2 align-middle text-base font-medium tracking-tight text-muted-foreground", className)}>
{
shape === "haze" ? (
<svg viewBox="0 0 84 52" class="h-4 w-auto shrink-0" aria-hidden="true" fill="currentColor">
<path d="M0 0H30V10A12 12 0 0 0 33.51 18.48A25 25 0 0 0 26.38 22.48A20 20 0 0 1 22 10V8H8V44H22V42A20 20 0 0 1 42 22A12 12 0 0 0 54 10V0H84V52H54V42A12 12 0 0 0 50.49 33.52A25 25 0 0 0 57.62 29.52A20 20 0 0 1 62 42V44H76V8H62V10A20 20 0 0 1 42 30A12 12 0 0 0 30 42V52H0Z" />
</svg>
) : (
<svg viewBox="0 0 20 20" class="size-5 shrink-0" aria-hidden="true" fill="currentColor">
{shape === "circle" && <circle cx="10" cy="10" r="8" />}
{shape === "square" && <rect x="3" y="3" width="14" height="14" rx="3" />}
{shape === "triangle" && <path d="M10 2 18 17H2Z" />}
{shape === "diamond" && <path d="M10 1 19 10 10 19 1 10Z" />}
</svg>
)
}
{name}
</span>When to use
- Demo or fictional brands in prototypes
- A text wordmark is acceptable for the real brand
When not to use
- You have an official logo file; use it with alt text instead
Installation
Add the Haze registry to components.json once, then install Logo mark (wordmark) with the shadcn CLI. Works in any Astro project with Tailwind CSS v4.
pnpm dlx shadcn@latest add @haze/logo-marknpx shadcn@latest add @haze/logo-markyarn dlx shadcn@latest add @haze/logo-markbunx --bun shadcn@latest add @haze/logo-markFirst time? Registry and theme setup
1. Add to components.json:
{
"registries": {
"@haze": "http://localhost:4329/r/{name}.json"
}
}2. Install the theme once: npx shadcn@latest add @haze/theme, then import it after Tailwind in your global CSS:@import "./haze.css";
API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| name* | string | – | Company name shown as text. |
| shape | "circle" | "square" | "triangle" | "diamond" | "haze" | "circle" | Glyph shape. |
| class | string | – | Extra classes; set a text color to recolor the glyph. |
Accessibility
- The glyph is aria-hidden; the company name is real text.
Notes for AI
Copy into Claude Code, Cursor, Codex or any coding agent. Agents can also read the Markdown version of this page.
Install and use
Install the Haze UI component "Logo mark (wordmark)" with `npx shadcn@latest add @haze/logo-mark`. If components.json has no "@haze" registry yet, add "registries": { "@haze": "http://localhost:4329/r/{name}.json" }. If src/styles/haze.css does not exist yet, run `npx shadcn@latest add @haze/theme` once and import it from the global stylesheet after Tailwind. The CLI stops at an overwrite question when a Haze file already exists and differs, even with --yes, and then installs nothing after it: read its output. If the user has not edited their Haze files, re-run with --overwrite to take the registry versions; if they have, ask them before overwriting. Then import LogoMark from "@/components/haze/ui/logo-mark.astro" (or the relative path) and render it where it fits the page. Keep Haze token classes (bg-background, text-muted-foreground, border-border...) and never hardcode colors. Docs: http://localhost:4329/ui/logo-mark.md
Customize with real content
Adapt the Haze logo-mark ui for our product. Replace the demo values of these props with our real content: name, shape, class. Keep the layout, the heading level rules and these accessibility details: The glyph is aria-hidden; the company name is real text. Do not add raw color classes; use the Haze tokens.
Choose the right block
Before using logo-mark, check it fits: use it when demo or fictional brands in prototypes; a text wordmark is acceptable for the real brand. Avoid it when you have an official logo file; use it with alt text instead.
Dependencies
- @haze/utils
- @haze/theme (one-time setup)
Source · Original Haze UI work.