Clay Logo
Clay brand mark, three rounded tiles in an optional badge. Tiles use currentColor; badge bg overridable via --clay-logo-bg.
Install
Pull Clay Logo from the barrel for everyday use, or the granular path when you want a tighter bundle.
import { ClayLogo } from "@brika/clay";import { ClayLogo } from "@brika/clay/components/clay-logo";A minimal example
Drop this into a page. Native HTML attributes pass through to the underlying primitive.
import { ClayLogo } from '@brika/clay/components/clay-logo';
export default function ClayLogoDefaultDemo() {
return <ClayLogo variant="badge" className="size-16 text-clay-brand" />;
}Clay Logo, every way
Glyph
Accessibility
- Purely decorative,
aria-hidden="true"is applied automatically. - When used inside a link or button, supply
aria-labelon the interactive wrapper.
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--clay-logo-bgcolorvar(--secondary)components.clayLogo.bgBackground 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.
{
"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.
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'ClayLogoVariantWhich lockup to render: "badge" wraps the tiles in a rounded-rect; "glyph" renders the tiles only.