Skip to content

Patterns

How primitives compose

Replicas, not the shipped components — the real sidebar, message row, composer, thread summary, link card and huddle card call Convex hooks or browser APIs and need the app to mount. The avatars, buttons, inputs and the ⋮ menu inside are the real primitives, avatar initials and colours come from a copy of the app's src/lib/avatar.ts, and the frame and list colours are each theme's own class strings from shared/themes.ts.
Theme

At a glance#

The pieces below, composed the way the shell draws them: rail and channel list on the themed frame, and the channel's content panel floating beside them with its 54px header, the message rows and the composer. On a phone it becomes the two screens the app shows there: the channel list, and the open channel under a back bar. Switch the theme to see every piece move together.

design-review

Today
MC
Maya Chen10:02 AM

Pushed the new onboarding flow to staging. I'd love eyes on the invite step before Thursday.

onboarding-v3.pdfPDF · 2.4 MB
JW
Jonas Weber10:05 AM

Looking now. The invite step reads well, but the Skip link is easy to miss on phones.

👀2✅3
PR
Priya Raman10:11 AM

Agree on Skip. I can make it a secondary button, same width as Continue.

JWMCSO3 repliesLast reply 5 minutes ago
New
SO
Sam Okafor10:31 AM

Huddle at 11 to walk through it together? @Maya @Priya

Skip becomes a secondary button

Message row#

38px avatars (34px in the thread pane) and 600 sender names over 15px bodies at line-height 1.5, under a date pill. Own reactions take a 12% accent fill, a 1px inset accent ring and an accent count; others are muted. @mentions are accent chips, the open thread's parent holds an accent tint with a 3px bar, and the accent New divider marks the first unread. Links and @mentions take the accent too; there is no separate link blue. The second row is forced into its hover state: muted/60 behind it and the hover toolbar pinned above.


Today
MC
Maya Chen10:02 AM

Pushed the new onboarding flow to staging. I'd love eyes on the invite step before Thursday.

onboarding-v3.pdfPDF · 2.4 MB
JW
Jonas Weber10:05 AM

Looking now. The invite step reads well, but the Skip link is easy to miss on phones.

👀2✅3
PR
Priya Raman10:11 AM

Agree on Skip. I can make it a secondary button, same width as Continue.

JWMCSO3 repliesLast reply 5 minutes ago
New
SO
Sam Okafor10:31 AM

Huddle at 11 to walk through it together? @Maya @Priya

Composer#

A rounded-xl bordered box whose focus cue is a border shift (focus-within:border-foreground/25), not a ring. On top, the formatting bar in two groups split by one divider: B I U S as letters, then link, numbered, bulleted, quote, code, code block and clear as lucide line icons (28px buttons). Then the 14px field, then a row of 30px buttons: + / emoji / @ / slash / a text Aa, and an accent send joined to the schedule caret (channel, DM and thread composers pass one). Empty, both go muted and the Shift + Return hint, bottom right under the box, fades out. The typing line floats above the box, so an idle composer reserves no row for it. Accent fills take white text in light and #16090e in dark, where the accents are pastels.

md and up · typing, someone else typing

Jonas Weber is typing…
Skip becomes a secondary button

Shift + Return to add a new line

md and up · empty

Message #design-review

Shift + Return to add a new line

Under md, closed is one row in a rounded-2xl box: +, field, emoji, Aa, send. Every control is 36px with a 44px hit area (an after:-inset-1 overlay). @ and slash hide, and there is no Shift + Return hint. An empty send goes transparent and the disabled caret is dropped. Aa opens formatting, which stacks: a single-row toolbar that scrolls sideways (36px buttons over a hairline), the full-width field, then the action row with send pushed right.

< md · closed, empty

Message #design-review

< md · closed, typing

Skip becomes a secondary button

< md · formatting open

Skip becomes a secondary button

Hover toolbar#

A floating card pinned 16px above the row's top-right edge: two quick reactions (your most recent on this device, defaulting to 👀 ✅) and add reaction, a divider, then reply in thread, save for later and more (⋮). Everything else lives in the ⋮ menu — click it: Remind me, then Forward, Copy link and Pin, then Edit and Delete, each shown only when the caller may use it. It overlaps the row above rather than pushing content down.

Thread summary chip#

Stacked participant avatars (22px, 24px under md, each ringed in the background), "N replies" in the accent at 600, then "Last reply …" as a relative time. On hover the label becomes "View thread" and a chevron fades in; both labels share one grid cell, so the chip keeps its width instead of shrinking out from under the pointer. Under sm the label cell is hidden, and under md the chip grows to 36px.

sm and up · rest

JWMCSO3 repliesLast reply 5 minutes ago

sm and up · hover

JWMCSO3 repliesView thread

< sm

JWMCSO3 replies

Member stack#

The channel header's members button: a few member avatars at 22px, overlapped by 5px and ringed in the background, then the member count. It uses the same avatar style as every other person avatar.

Huddle card#

Pinned to the foot of the channel list while a huddle is live. It sits on the list panel, so it darkens rather than lightens: black/22% with a white/8% inset ring and a white Join. The participant line takes the theme's item colour.

Huddle in #design-reviewSam and Jonas