Fair Case

Icons

One house icon set: line glyphs with a 1.5px line at every size, and solid glyphs for transport controls only. Every icon takes one of four sizes and one door.

Sizes

Four sizes, never a number. Every line glyph draws a 1.5px line at every size.

  • xs · 12
  • sm · 16
  • md · 20
  • lg · 24

The dashed box is the glyph's box, 4px outside it on every side.

Code

TSX

import { PinIcon } from "@repo/ui/icons";

<PinIcon />
<PinIcon size="md" />

Every icon

ExportGlyph and use
PinIconIconMapPin · sm
join-form.tsx, location-chip.tsx, use-phone-chip.tsx
GlobeIconIconGlobe · sm
header-popup-triggers.tsx, language-menu.tsx, site-footer-locales.tsx
ChevronDownIconIconChevronBottom · xs
header-popups.tsx, join-form.tsx, language-menu.tsx, location-chip.tsx, site-footer-locales.tsx, use-phone-chip.tsx
PaperclipIconIconPaperclip1 · md
ask-box.tsx, attach-soon.tsx
MicIconIconMicrophone · md
ask-box.tsx
ArrowUpIconIconArrowUp · md
ask-box.tsx
LockIconIconLock · sm
ask-box.tsx
PauseIconIconPause · sm · solid
stepper.tsx
PlayIconIconPlay · sm · solid
stepper.tsx
StopIconIconStop · md · solid
ask-box.tsx
MenuIconIconBarsTwo · md
header-popup-triggers.tsx, header-popups.tsx
CloseIconIconCrossMedium · md
header-popups.tsx, language-menu.tsx, voice-controls.tsx
SearchIconIconMagnifyingGlass · sm
DocsLayout.astro, docs-sidebar.tsx, language-menu.tsx
CheckIconIconCheckmark1 · sm
header-popups.tsx, join-form.tsx, join-page.tsx, language-menu.tsx
FileIconIconFileText · sm
ask-box.tsx
WarningIconIconExclamationTriangle · sm
ask-box.tsx
UploadIconIconShareOs · sm
ask-box.tsx
PlusIconIconPlusSmall · md
join-page.tsx
MinusIconIconMinusSmall · md
join-page.tsx
ArrowUpRightIconIconArrowUpRight · md
docs-sidebar.tsx, site-footer.tsx
InstagramIconIconInstagram · md
site-footer.tsx
LinkedInIconIconLinkedin · md
site-footer.tsx
TikTokIconIconTiktok · md
site-footer.tsx
XIconIconX · md
site-footer.tsx
YouTubeIconIconYoutube · md
site-footer.tsx
PersonIconIconUser · sm
app-sidebar.tsx
SignOutIconIconDoor · sm
app-sidebar.tsx
SunIconIconSun · sm
theme-switch.tsx
MoonIconIconMoon · sm
theme-switch.tsx
DeviceIconIconDevices · sm
theme-switch.tsx
InfoIconIconCircleInfo · md
intake-conversation.tsx
MailIconIconEmail2 · md
join-form.tsx, join-token-page.tsx

Their own doors

  • InfoIcon

    packages/ui/src/components/info-icon.tsx

    /ask uses no other icon, and importing icons.tsx would bring every homepage glyph with it (+13,536 bytes of script on /ask, over the budgets in decision 0028). It writes out the md size itself and icons.test.ts holds it to the scale.

  • MailIcon

    packages/ui/src/components/mail-icon.tsx

    Only Join's form and link pages draw it. Imported from icons.tsx, its glyph landed in the homepage's shared chunk; the move saved about 0.4 KB of script on /.

Use it well

  • A licensed house icon set, installed from the registry at build time with a licence key in the environment and never copied into the repository.

  • icons.tsx is the only door for the house set; each export is a function, not a value from a factory call, so the bundler can drop unused glyphs.

  • Icons take size xs, sm, md or lg, never a number. An icon that needs another size adds a step to ICON_PX.

  • Every line glyph draws a 1.5px line at every size (icons.css), so the set reads as one weight.

  • Solid glyphs are for transport controls only: play, pause and stop.

  • Icons draw in currentColor, are aria-hidden, and are decorative: the control that holds one carries the accessible name.

  • Every icon is shrink-0, so a long label cannot squash it. A caller's className goes through cn and wins over the size variant.

  • No glyph is copied into the repository; a new icon is a new export in icons.tsx with a glyph from the outlined package.

  • A route that uses no other icon takes its glyph through its own door file rather than icons.tsx.