Primitives

Brika Logo

Brika brand mark, three stacked bricks. Uses currentColor.

Preview
01 Installation

Install

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

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

A minimal example

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

tsxBrika Logo.tsx4 lines
import { BrikaLogo } from '@brika/clay/components/brika-logo';
export default function BrikaLogoDefaultDemo() {
  return <BrikaLogo className="size-12 text-clay-strong" />;
}
03 Accessibility

Accessibility

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

Theme tokens

Every CSS variable Brika 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 Brika Logo without touching component code.

Brika Logo tokens

2 tokens
ColorFill, border, and text colors.2
  • --brika-logo-full-bgcolorblack
    components.brikaLogo.fullBg

    Background color of the rounded-rect chip in the `full` lockup. Defaults to literal `black` to preserve the canonical black-on-white brand mark.

  • --brika-logo-full-fgcolorwhite
    components.brikaLogo.fullFg

    Fill color of the brick shapes in the `full` lockup. Defaults to literal `white` to preserve the canonical black-on-white brand mark.

Override in a theme

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

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

  "components": {
    "brikaLogo": {
      "fullBg": "black"
    }
  }
}

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-brika-logo-…) — see the chips on each token row.

05 API reference

API reference

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

  • variantdefault 'mark'
    BrikaLogoVariant
    Which logo lockup to render: "mark" for icon only, "full" for the boxed brand mark.