Fair Case

Mail icon

The envelope on Join's form and link pages. It is kept apart from the shared icon module so a glyph only Join uses does not ship on every page.

On Join's answer card

After the form is sent, the card leads with the envelope. The card's squircle corners are drawn as the code draws them.

Check your email

If that address can join, we have sent one email with a link to confirm. You count only after you press it.

That is the only email we send before you confirm. If it does not arrive in a few minutes, look in your spam folder.

TSX

<div className={CARD}>
  <span className="flex size-11 items-center justify-center rounded-full bg-hero text-accent">
    <MailIcon />
  </span>
  <h2 className="font-semibold text-fg text-h3">{copy.heading}</h2>
  <p className="text-base text-muted">{copy.body}</p>
  <p className="text-muted text-sm">{joinContent.accepted.note}</p>
</div>

The glyph and its badge

The icon itself is only the 20px glyph. The circle comes from the two Join call sites.

Join's badge: 44 circle, hero fill, accent glyph
md · 20 · currentColor

TSX

<span className="flex size-11 items-center justify-center rounded-full bg-hero text-accent">
  <MailIcon />
</span>
{/* no wrapper: the text colour */}
<MailIcon />

Code

TSX

<span className="flex size-11 items-center justify-center rounded-full bg-hero text-accent">
  <MailIcon />
</span>

From join-form.tsx and join-token-page.tsx.

Variants

Variants
PropValueHow it looks
glyph sizemd only20px square (size-5), and it never shrinks. The 1.5px line is drawn at every size.
badge (caller)JoinBoth Join call sites sit it in a 44px circle with the hero fill (#EEF6FF light, #122A43 dark) and the accent colour (#0E6FD6 light, #7EB7FF dark).

States

States
StateHow it looks
restStatic glyph, decorative. No hover or focus.
hovernot written
disablednot written

Props

Import from @repo/ui/mail-icon.

Props
PropTypeDefaultWhat it does
(none)n/aNo props. It always draws IconEmail2 at 20px (size md) with the 1.5px line, in currentColor.

Use it well

  • It writes out the scale's md itself, and a test in packages/ui holds it to that.

  • Import it from @repo/ui/mail-icon, so only Join's pages carry the envelope.