Primitives

Clay Logo

Clay brand mark, three rounded tiles in an optional badge. Tiles use currentColor; badge bg overridable via --clay-logo-bg.

Preview
01 Installation

Install

Pull Clay Logo from the barrel for everyday use, or the granular path when you want a tighter bundle.

tsxBarrel1 line
import { ClayLogo } from "@brika/clay";
tsxGranular1 line
import { ClayLogo } from "@brika/clay/components/clay-logo";
02 Usage

A minimal example

Drop this into a page. Native HTML attributes pass through to the underlying primitive.

tsxClay Logo.tsx4 lines
import { ClayLogo } from '@brika/clay/components/clay-logo';
export default function ClayLogoDefaultDemo() {
  return <ClayLogo variant="badge" className="size-16 text-clay-brand" />;
}
03 Examples

Clay Logo, every way

Glyph

04 Accessibility

Accessibility

  • Purely decorative, aria-hidden="true" is applied automatically.
  • When used inside a link or button, supply aria-label on the interactive wrapper.
05 Tokens 1 theme-overridable

Theme tokens

Every CSS variable Clay Logo reads, with its default and the dotted path you'd write in a ThemeConfig JSON to override it. Set any of these in your theme to retune Clay Logo without touching component code.

Clay Logo tokens

1 token
ColorFill, border, and text colors.1
  • --clay-logo-bgcolorvar(--secondary)
    components.clayLogo.bg

    Background color of the rounded badge that wraps the tiles in the `badge` variant. Defaults to the theme `--secondary` so the chip reads as distinct from the page surface.

Override in a theme

Authoring a theme is plain JSON. Drop overrides under components.clayLogo, the names are camelCase versions of the variable suffix.

jsonmy-theme.json12 lines
{
  "id": "my-theme",
  "name": "My Theme",
  "description": "...",
  "accentSwatches": ["#000"],

  "components": {
    "clayLogo": {
      "bg": "var(--secondary)"
    }
  }
}

Then apply with applyTheme(myTheme) (see the theming guide), scope it to a subtree with themeToCssVars(myTheme, mode), or consume any token directly in your own JSX with the matching Tailwind utility (e.g. bg-clay-logo-…) — see the chips on each token row.

06 API reference

API reference

Props specific to Clay Logo. Native HTML attributes pass through to the underlying primitive, see the component source on GitHub for the full type signature.

  • variantdefault 'badge'
    ClayLogoVariant
    Which lockup to render: "badge" wraps the tiles in a rounded-rect; "glyph" renders the tiles only.