Skip to content

Components

Every primitive, every variant

The 25 files in components/ui, rendered from source, plus the app's shared NativeSelect. Switch the mode in the header to check both grounds.

Button#

7 variants x 4 sizes, plus states.

Variants

Sizes

States

Badge#

Admin
Guest
Deactivated
Bot

Input, Label, Switch#

NativeSelect#

Not a ui primitive: src/components/native-select.tsx, a shared app component, copied verbatim and held to the app by check:sync. A native <select> with appearance-none and a themed lucide chevron. Browsers treat a mouse click on a <select> as keyboard focus, so a focus ring would flash on every click; the focus cue is a border shift to foreground/40 instead.

Used by the channels, permissions and audit settings pages, the profile form, the developer apps page and the OAuth app card. Tab into the rest control to see the real focus cue.

Verification code#

input-otp, as used by the 2FA gate and email confirmation.

Avatar#

The primitive rounds to 25% of its size, so corners scale with the avatar, and bolds its initials. Without a photo, person avatars show first + last initials on a stable colour per name: avatarInitials and avatarColor from src/lib/avatar.ts (this site uses a copy, not covered by check:sync). Workspace icons and the deactivated-user card keep their own look.

Sizes

MC16pxForwarded quote
MC20pxDM row
MC22pxThread chip, member stack
MC34pxThread pane message
MC38pxMessage row, rail

Initials

MC"Maya Chen"
PR"Priya Anand Raman"
J"Jonas"
ÉD"élodie durand"
?no name

Palette · 23 colours

MC#8a6a55
MC#5d6390
MC#4f7a68
MC#8f5c46
MC#6b5b8a
MC#4f6f8a
MC#8a5a6a
MC#5c7449
MC#3f6f73
MC#3f5f8a
MC#7a4f78
MC#9a5048
MC#66663a
MC#8a6230
MC#544f8f
MC#4f783b
MC#3d7b51
MC#546aab
MC#6f62b2
MC#8958ad
MC#995699
MC#9d5886
MC#a7526f

The app's file notes that white initials clear 4.5:1 on each colour. The pick is a string hash of the trimmed name modulo the palette length, so a name lands on the same colour everywhere.

Skeleton, Separator#

Overlays#

Dialog, Sheet, Popover, Dropdown, Tooltip.

Tabs, Accordion#

Message results appear here.

Accordion · list

All messages, mentions only, or nothing.

Accordion · cards, as the integrations pages compose it

Card, Table#

Acme

12 members · 8 channels

MemberRoleStatus
Avery RahmanOwner
Active
Monirul IslamAdmin
Guest