Skip to Content
BBRICKSv0.7.4
ShellFrame

BrandMark

The sidebar's brand mark on its own: the raspberry square with a letter, then the name (with its lime accent) and an optional line under it, without the sidebar's padding. For places outside the sidebar that show the logo, such as the ink art side of the sign-in page (LoginLayout brand={<BrandMark name="TRNDR" accent="." mark="T" />}). The square is decorative; the name is the text a screen reader reads.

import { BrandMark } from '@ergasti/bricks';

Examples

Brand mark

The sidebar's logo on its own: the raspberry square with a letter, the name and its lime accent, and an optional line under it. Use it wherever the logo shows outside the sidebar; size scales the square.

Pinned to TRNDR preset
Code
import { BrandMark } from '@ergasti/bricks';

function Mark() {
  return (
    <div style={{ display: 'flex', flexWrap: 'wrap', gap: 32, alignItems: 'center', padding: 24, borderRadius: 22, background: '#141414', color: '#FFFFFF' }}>
      <BrandMark name="TRNDR" accent="." />
      <BrandMark name="TRNDR" accent="." sub="PR portal" />
      <BrandMark name="TRNDR" accent="." mark="T" size={52} />
    </div>
  );
}

On the sign-in page

LoginLayout brand takes the mark for the top of the ink art side, so the sign-in page shows the same logo as the sidebar without copying its markup.

Pinned to TRNDR presetPR theme
Code (not run)
import { BrandMark, LoginCard, LoginLayout } from '@ergasti/bricks';

function OnLogin() {
  return (
    <LoginLayout brand={<BrandMark name="TRNDR" accent="." />} footer="© TRNDR 2026" landmark="div">
      <LoginCard onSubmit={() => {}} />
    </LoginLayout>
  );
}

Props

Prop

Type

Design guidance

How the BRICKS design system uses BrandMark. Written in docs/content/components/BrandMark.md; the props above are read from the code, which wins where the two disagree.

The sidebar's brand mark on its own: the raspberry square with a letter, the name with its lime accent, and an optional line under it; use it wherever the logo shows outside the sidebar, such as the sign-in page.

BrandMark is the mocks' .brandmk ("T" in a raspberry square, then "TRNDR" with a lime "."), drawn without the sidebar's padding. The PR v3 mock's sign-in page (P.login) puts it at the top of the ink art side, which LoginLayout brand={<BrandMark name="TRNDR" accent="." />} reproduces; the sidebar shows the same mark with "PR portal" under it. The square is decorative: the name is what a screen reader reads.

Anatomy

  1. Mark (.kit-shell-brand.kit-shell-bmark): a flex row, 10px gap, no padding.
  2. Square (.kit-shell-mk, aria-hidden): 38 × 38, radius 12, --rasp, white display 800 letter: mark, or the first letter of name when it is a string.
  3. Name: bold display 16px / 800, then the accent in --lime.
  4. Sub (optional): small, 12px, muted grey ("PR portal").

Variants

PropValueLookWhen to use
sizedefault (38)The sidebar's squareSign-in page, headers
e.g. 52, 56Bigger square; corner (× 0.316) and letter (× 0.42) scale with itA larger logo moment
subtextA muted line under the nameNaming the product ("PR portal")
accent"."The lime dot of "TRNDR."Always, for the TRNDR wordmark
marknodeReplaces the first letterA name that is not a string, or another letter

States

BrandMark is static: no interactive states. If name is not a string and mark is unset, no square is drawn. Long names wrap (overflow-wrap: anywhere).

Usage

import { BrandMark, LoginCard, LoginLayout } from '@ergasti/bricks';

export function SignIn() {
  return (
    <LoginLayout brand={<BrandMark name="TRNDR" accent="." />} footer="© TRNDR 2026">
      <LoginCard onSubmit={() => {}} />
    </LoginLayout>
  );
}
// Sizes and the product line, on the ink background the mark is drawn for
import { BrandMark } from '@ergasti/bricks';

export function Marks() {
  return (
    <div style={{ display: 'flex', gap: 32, alignItems: 'center', padding: 24, background: '#141414', color: '#FFFFFF' }}>
      <BrandMark name="TRNDR" accent="." />
      <BrandMark name="TRNDR" accent="." sub="PR portal" />
      <BrandMark name="TRNDR" accent="." mark="T" size={52} />
    </div>
  );
}

Where it appears

  • PR Portal › Sign in › ink art side, top (the mock's P.login). Screen: PR · Sign in.
  • The same mark is drawn by Sidebar (with "PR portal" in the PR mock, "Brand dashboard" in the brand mock); use Sidebar's brand there, not BrandMark.
  • Dashboard screen: PrLogin.

Guidelines

Do

  • Put it on an ink or dark surface, as the sidebar and the sign-in art side do; the name inherits the surrounding text colour.
  • Use accent="." for TRNDR so the wordmark matches the sidebar.
  • Scale with size only; the corner and letter follow.

Don't

  • Don't wrap it in a link or button yourself without an accessible name; the square is hidden from assistive tech.
  • Don't recolour the square or the accent per page.
  • Don't use it inside the sidebar; Sidebar draws its own.

RTL and Arabic

The row mirrors: the square sits on the right. With an Arabic name ("ترندر") the square takes its first letter unless mark is set; sub can be Arabic ("بوابة الـ PR").

Tokens

--rasp, --lime, --font-family-display, --kit-bmark (set from size).

Accessibility

  • The square is aria-hidden="true"; the name (and sub) is the readable text.
  • It has no role; give it a heading or link context where the page needs one.

Found in the source

  • ARIA attributes set: aria-hidden.
  • Its tests cover: “takes its own mark, a sub line and a size (a CSS variable the square scales by)”.

Read from the component's source and tests. See Accessibility for the patterns the library follows.

  • Sidebar: draws the same mark at the top of the nav.
  • LoginLayout: takes it as brand.
  • BrandAvatar: a brand's own coloured square in lists (not TRNDR's logo).

See also: LoginCard · AppShell · BottomNav · MobileNavSheet · NavGroups

Source

src/shell/BrandMark.tsx (line 24) on GitHub.

On this page