Memorisely

Components

Badges

Status in a small pill. Six tones, three sizes, with or without a dot. Badges label. They do not act.

Buy now

Status

ActiveDraftArchivedFailed
<Badge variant="outline"><span className="size-1.5 rounded-full bg-[#2F6E45]" />Active</Badge>
<Badge variant="outline"><span className="size-1.5 rounded-full bg-[#E6B400]" />Draft</Badge>
<Badge variant="outline"><span className="size-1.5 rounded-full bg-[#A8A49A]" />Archived</Badge>
<Badge variant="outline"><span className="size-1.5 rounded-full bg-[#E5484D]" />Failed</Badge>

How to use

A dot reports state. Green is active, yellow is in progress, grey is inactive, and red is failed. The label stays to one or two words. A badge does not act.

Tones

NewBetav1.4Deprecated
<Badge>New</Badge>
<Badge variant="secondary">Beta</Badge>
<Badge variant="outline">v1.4</Badge>
<Badge variant="destructive">Deprecated</Badge>

How to use

Solid marks something new or important. Secondary and outline are quieter. Destructive marks something that should be removed. Do not invent a new colour for a badge.

With flags

United StatesUnited KingdomJapan
<Badge variant="outline">
  <span className="overflow-hidden rounded-full"><US /></span>
  United States
</Badge>

How to use

A flag names a country or locale. It sits in a circle on the left edge of the badge and fills that circle. The country name follows. Do not use a flag without the name.

With avatars

Ada ChenACAssigned3 reviewers
<Badge variant="outline"><img src="/portrait.jpg" alt="" />Ada Chen</Badge>
<Badge variant="secondary"><span>AC</span>Assigned</Badge>

How to use

An avatar names a person and sits on the left edge. Use a photo, or initials when there is no photo. A group shows three faces, then the count. Do not show more than three.

Counts

123 newIn review
<Badge variant="secondary">12</Badge>
<Badge>3 new</Badge>

How to use

A count is a number, not a sentence. Use it on a tab, a filter, or a list. It labels. It is not a button.

Badges exists so designers, engineers, and AI start from the same decision. The preview on this page is the component as it ships. You compose it. You do not redraw it.

Use it when the job matches the name. Reach for a neighbour in the system when it does not. Names in Figma match the names in code, which is what keeps a prototype close to what actually ships.

Tokens

TokenValue
--badges-bgvar(--background)
--badges-fgvar(--foreground)
--badges-bordervar(--border)
--radius-md10px
--duration-fast120ms

Included

  • Six tones
  • dot and icon