import { ServiceLogo } from "@elabs-ai/components-icons";npm install @elabs-ai/components-tokens @elabs-ai/components-ui @elabs-ai/components-iconsPaste it into Claude Code, Cursor, Codex or any other coding agent. Text in [brackets] is yours to fill in.
Add the brand-ui ServiceLogo component (from @elabs-ai/components-icons) to this project. 1. Read https://elabs-ai.com/llms.txt first: it maps every package and the rules. If you can use MCP servers, connect https://elabs-ai.com/mcp and use its search, docs and tokens tools. If not, run the same lookups in the terminal: `npx -y @elabs-ai/components-cli search "<what you need>"` and `npx -y @elabs-ai/components-cli docs <Component>`. 2. Look ServiceLogo up before writing code: `npx -y @elabs-ai/components-cli docs ServiceLogo` prints its real props, variants, what it pairs with and what to avoid. 3. If @elabs-ai/components-icons is not installed yet: `pnpm add @elabs-ai/components-tokens @elabs-ai/components-ui @elabs-ai/components-icons` (or `npm install @elabs-ai/components-tokens @elabs-ai/components-ui @elabs-ai/components-icons`). If this is the first brand-ui package in the project, wire it once: import `@elabs-ai/components-tokens/styles.css` plus the `themes/light.css` and `themes/dark.css` stylesheets in the CSS entry, add one Tailwind `@source` line per installed @elabs-ai package (Tailwind does not scan node_modules, so without it everything renders unstyled), and wrap the app root in `ThemeProvider` from `@elabs-ai/components-tokens`. 4. Use it here: [the screen or file, and what it should show] 5. Rules: use only @elabs-ai/components-* components and the semantic tokens — no raw colours, no raw font sizes, no arbitrary Tailwind values. Look up each component's real props with the docs tool before you use it; never guess a prop. 6. Done means: the typecheck passes, `npx -y @elabs-ai/components-cli audit src --strict` reports nothing, and you have opened the app and looked at every screen you touched in the light and the dark theme.
@elabs-ai/components-icons ships the MACHINERY — registerServiceLogos, a themable render contract, and an accessible monogram fallback for anything not yet registered — and the CONSUMING APP supplies the real marks it is licensed to display. A registered mark is allowed to paint itself with the service's OWN brand colour as a raw literal — a deliberate, narrow exception carved out of brand-ui audit's raw-color rules by the data-service-logo marker used below.
Examples
Mono
`variant="mono"` for dense lists (a filter chip row, a compact combobox) — a well-behaved registered mark draws via `currentColor` when asked; brand-ui can't force that on an arbitrary consumer asset, only offer the seam.
Unregistered Fallback
An unregistered name — the app hasn't called `registerServiceLogos` for it yet (or never will). ServiceLogo never renders broken/blank output: it falls back to an accessible monogram tile, `currentColor` only.
Decorative Beside Label
Adjacent visible text already names the service, so the mark is `decorative` and hidden from assistive tech instead of announcing a duplicate name.
Sizes
Scales with `size`, same convention as `Icon`'s default of 24.
API
ServiceLogo
| Prop | Type | Description |
|---|---|---|
namerequired | string | The service's registry key, e.g. "slack", "github". An unregistered name renders a monogram fallback instead of broken/blank output. |
size | number | string | Pixel size for both width & height. Defaults to 24 (mirrors `Icon`). |
label | string | Accessible name override. Defaults to the registry entry's own `label`, else a title-cased `name`. Ignored when `decorative` is set. |
variant | "brand" | "mono" | "brand" (default) renders the mark's own colours. "mono" asks a registered `render` mark to draw via `currentColor` (best-effort — it's the mark author's choice) and desaturates a `src` image; the fallback tile is already mono regardless of this prop. |
logos | ServiceLogoRegistry | Scope marks to this instance only, merged over (and overriding) the global registry — for tests or a locally-scoped set. |
decorative | boolean | Set true when adjacent visible text already names the service, so the mark is hidden from assistive tech instead of announcing a duplicate name. Defaults to false — the mark carries its own accessible name. |