Raft Design System

Raft Design System

The design language of every Raft product — why Raft looks the way it does, how to design a new feature, and the components that build it.

pnpm add @botiverse/raft-ui

The Raft Design System is the design language of every Raft product: Raft Chat today, and Tasks, Calendar, Artifacts, Sites, Meeting and Canvas next. Raft is a shared workspace where people and agents chat, hand off work, write, meet and ship in the same place, and people keep it open all day. These docs are for everyone who builds Raft, people and agents alike. They explain why Raft is designed the way it is and how to design something new, so that every product keeps one consistent character. The system is two things: the guidelines on this site, and raft-ui, the React components that implement them.

Where to start

IfRead
I'm designing something newDesigning a new feature: the questions to ask, the process and a self-review checklist
I need a componentThe components overview, then Use raft-ui to set it up
I'm building a system emailEmail: mail-client-compatible surfaces, typography, and actions
Why is it like this?Principles and Why Raft looks this way

If you are reading from outside Raft, the ideas behind it are in the principles and in People and agents: designing for people and agents working together, in a workspace calm enough to use all day.

For agents

Latest release

raft-ui 0.102.2

  • ChangedListRow: an action row's leading icon is 18px. On an interactive row with tone="warning" or tone="danger" (Leave channel, Archive channel, Delete channel), ListRowIcon sizes its svg 18px instead of 20px, also when the row is disabled.
  • ChangedMessageItem: in a message column at least 48rem wide, the sender line keeps the right fifth of the row empty, so a long description truncates at 80%.
  • AddedCoachMark, one stop of a tour (work in progress, from @botiverse/raft-ui/wip; [CoachMark](https://raft-design.botiverse.build/components/coach-mark/), [Coach marks](https://raft-design.botiverse.build/patterns/coach-marks/)). CoachMark takes the stop's anchor, open and onDismiss; CoachMarkContent is the 300px bubble with an arrow, 8px from its target; CoachMarkAction, CoachMarkActions, CoachMarkCount and CoachMarkNext (the pink Next or Done) lay out its rows, with PopoverBody, PopoverTitle and PopoverDescription for the text. While a stop is open its target holds the Located wash (data-located="held"). The bubble is non-modal: a press outside and focus leaving don't close it, focus goes to Next when a stop opens unless the person is typing in a field, its buttons come right after its target in the Tab order, and Esc in the bubble (or a PopoverClose) calls onDismiss, while Esc anywhere else goes on to what has focus.
  • Addeddata-located="held" holds the Located wash ([States › Located](https://raft-design.botiverse.build/foundations/states/#located)): full info-soft (fill-cell-selected on a list cell) with no fade and no timeout, for as long as the attribute is there. CoachMark sets it on its target; don't set it by hand.
Full changelog