Install
Pull Brika Logo from the barrel for everyday use, or the granular path when you want a tighter bundle.
import { BrikaLogo } from "@brika/clay";import { BrikaLogo } from "@brika/clay/components/brika-logo";A minimal example
Drop this into a page. Native HTML attributes pass through to the underlying primitive.
import { BrikaLogo } from '@brika/clay/components/brika-logo';
export default function BrikaLogoDefaultDemo() {
return <BrikaLogo className="size-12 text-clay-strong" />;
}Accessibility
- Purely decorative,
aria-hidden="true"is applied automatically. - When used as a link or button, supply
aria-labelon the interactive wrapper.
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--brika-logo-full-bgcolorblackcomponents.brikaLogo.fullBgBackground 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-fgcolorwhitecomponents.brikaLogo.fullFgFill 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.
{
"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.
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'BrikaLogoVariantWhich logo lockup to render: "mark" for icon only, "full" for the boxed brand mark.