Components · Identity
Icons
The icons Raft draws itself, imported from @botiverse/ricons — five for kinds of conversation, one for an Artifact (Lucide's file-code, its page drawn wider), one for something private (a solid lock with a keyhole) and ten for following, joining, adding, reopening and opening in a new window; every other icon comes from Lucide.
import { Icons } from "@botiverse/ricons";Raft draws a few icons of its own, for meanings no Lucide icon carries. Five stand for kinds of conversation: MessageIcon, DirectMessageIcon, ThreadIcon, CommentIcon and FeedbackIcon. ChatIcon is MessageIcon under a second name: a message and a chat share one icon. ArtifactIcon stands for an Artifact; it is Lucide's file-code with its page drawn wider, under a name that says what it means. PrivateIcon stands for something private: a solid lock with a keyhole, the one filled icon in Raft. Ten label actions: following a thread or an Artifact, joining a channel, adding a comment, reopening a task and opening something in a new window (Action icons). Every other icon in Raft comes from Lucide. The rules for all icons (the set, the stroke, the color and the size by context) are in Iconography.
They are their own package, @botiverse/ricons, kept in this repository beside raft-ui, and they are imported only from it: raft-ui doesn't export them. It depends only on React, so an app or a page that draws no raft-ui component can use the icons without raft-ui.
import { ThreadIcon } from "@botiverse/ricons";Without raft-ui, also load ricons' stylesheet once, for UnfollowArtifactIcon's mark at 16px (Action icons); raft-ui's styles.css already imports it:
@import "@botiverse/ricons/styles.css";When to use
Anatomy
MessageIcon: a speech bubble.ChatIcon: the same icon asMessageIcon, exported under a second name.DirectMessageIcon: a speech bubble with a person.CommentIcon: a speech bubble with quote marks. A comment is said about a passage, so it carries the passage's quote marks.FeedbackIcon: a speech bubble with an exclamation mark, the mark most apps give feedback: a thought or a problem, told to the Raft team.ThreadIcon: two overlapping speech bubbles, both outlined. Every icon in Raft is a line drawing at one weight; a filled bubble read heavier than every Lucide icon beside it in a menu or a toolbar (stdrc, 2026-10-23). The back bubble stops a stroke's width short of the front one on both sides, so the overlap reads as a gap, not a join, and both stay inside the 18px box with their stroke.
The bubble is the same in MessageIcon, DirectMessageIcon, CommentIcon and FeedbackIcon; only the mark inside it changes. A message and a chat share the plain bubble, with no mark: Raft draws no difference between them, so ChatIcon is MessageIcon (stdrc and Artea, 2026-10-30). A direct message, a comment, feedback and a thread each keep their own icon, so those kinds never share one.
Each one is an 18px svg drawn in currentColor, so it takes the color of the text around it. Size it with a class, by the context it is in (Iconography).
Their lines are 1.5 on the 18px grid, the weight of Lucide's 2 on its 24px grid, so at any size they match the Lucide icons beside them: 1.33px at 16px, as Lucide's are. At 1 they drew 0.89px at 16px, thinner than every icon around them in a menu or a toolbar.
ArtifactIcon is Lucide's file-code with its page drawn 2 wider: a page with a folded corner and a < >, from x 3 to 21 of the 24 grid instead of 4 to 20, at the same height. Lucide's portrait page is 16 wide where the icons beside it in the rail and in menus (a monitor, people, a speech bubble) are 20, so at the same size it read one size smaller; 18 wide, it reads as theirs (stdrc, 2026-11-12). The < > is unchanged, and FollowArtifactIcon and UnfollowArtifactIcon are drawn on the same wider page. An HTML Artifact's chip in a message shows ArtifactIcon too, so the Artifacts page, the menus and the chip all show one page for an Artifact (xxchan, 2026-11-07). ricons exports it under its own name so a caller names the meaning, an Artifact, and not the drawing; it is a 24px svg, lines of 2, like the action icons drawn on it.
Private
PrivateIcon is a solid lock with a classic keyhole cut through it, a round hole over a slot that shows the surface behind; its shackle is 2 wide, as in Lucide's lock. It marks what only some people can read: a private channel, and the private chat with an agent beside its Lounge. Every lock that means private is this one, in the sidebar, a channel's header, pickers, filters, an unread count and an avatar's corner, so private is drawn one way.
Lucide's plain lock is a rounded box under an arch. In the sidebar its 12px glyph in an agent's unread count read as the Lounge's sofa beside it, which is the same shape at that size: two counts that should say "your private chat" and "the Lounge" looked alike. The solid body tells them apart at any size, and the keyhole says lock rather than box.
It is the one filled icon in Raft, an exception to Outline only, on purpose: among icons that are all outlines, the one solid icon reads as closed, which is what private means (huxijin, 2026-12-03, #proj-raft-ui:1fc7df8f). It meets the three conditions the exception asks: it marks a kind, not a state (a channel doesn't switch between private and public in place, so the fill can't read as on or off); it is the only one; and it is drawn the same everywhere private is shown. The cost is accepted: in a channel list a private channel's row reads heavier than the # rows around it. An outline lock with a keyhole was compared in every place and kept the list even, and was not chosen.
Lucide's lock stays for what is locked, not private: a paywalled history, a setting the person can't change, a shortcut that can't be rebound. The solid lock says who can read; the outline lock says you can't open or change this.
The small lock in the corner of a channel icon (a private external, Slack or Feishu channel, 8 units on the 24 grid) stays an outline lock with no keyhole: at that size a solid body would swallow the glyph beside it and the hole would fill in. It is still the private mark, drawn at its smallest.
Action icons
Each one labels one action, in a menu item or on a button, beside the action's name:
Pick the join icon by the kind of channel the action is on, the same kind its own icon shows (hash, PrivateIcon, git-branch; Raft Chat channel).
They are drawn on Lucide's grid: a 24px svg, lines of 2, round ends and joins, in currentColor. A pair shares one drawing and swaps only its mark, a plus to follow and a minus to unfollow, so the two read as one command and its opposite; the join icons have the plus alone:
- The thread pair is
ThreadIconat 24px, the mark inside the front bubble, as Lucide'smessage-circle-plusputs it. - The Artifact pair is
ArtifactIconwith the mark in the bottom-right corner (16 to 22), as the join icons put it: the page is full of its< >, so the mark has no room inside. The page's right edge and bottom edge stop 1.6 short of the mark, and the< >sits 1.5 higher than inArtifactIcon, so its point clears the mark by as much. At 16px and under, the minus ofUnfollowArtifactIconis drawn heavier, a line of 3 rather than 2, on whole pixels: the plain minus, a short line beside the page's cut edges, reads as one more piece of its outline and is easy to miss in a menu (Artea, 2026-10-28, for an earlier drawing with the minus inside the page). From 18px up it is the plain minus, the same weight as the plus ofFollowArtifactIcon(A mark at small sizes). The rule that swaps the minus is in@botiverse/ricons/styles.css. raft-ui'sstyles.cssimports it, so an app that loads raft-ui's stylesheet needs nothing more; an app that uses ricons without raft-ui imports it itself. Without it, the icon keeps the plain minus at every size. It is a stylesheet and not a<style>in the icon, so it loads under a Content-Security-Policy ofstyle-src 'self'.
- The join icons are Lucide's
hash,PrivateIconand Lucide'sgit-branch, full size and in place, the plus in the bottom-right corner (16 to 22). Where the glyph reaches that corner its strokes stop short of the mark, as Lucide'scalendar-pluscuts its corner: the solid lock's body steps around the plus, 2 clear of its stroke edge (a filled body has no stroke of its own to leave the gap): in from the right at y 13 to x 16, down to y 16, in to x 14, then down, so the cut never reaches the keyhole andhash's lower bar 1.6, buthash's right-hand slant ends 0.9 from the mark (Artea, 2026-10-28).git-branchleaves the corner empty and needs no cut.
AddCommentIcon puts a plus in the same corner, 1.6 from the bubble: it is CommentIcon at 24px, its bubble cut short of the plus. It has no minus pair.
ReopenTaskIcon has no badge. It is a ticked box broken open at the top by a counter-clockwise arrow (Lucide's rotate-ccw-square with a check): a done task, opened again. Lucide's rotate-ccw already means restart and refresh-cw retry, so a reopen drawn as a bare circle arrow would read as one of them.
OpenInNewWindowIcon has no pair. It is two stacked windows: the back one, up and to the right, with a title bar, and a ↗ inside the front one, pointing to the window that opens. The back window is Lucide's copy mirrored, its outline stopping 4 short of the front one as copy's does, and its title bar is a line across its top, as Lucide's app-window draws one. The front window has no title bar: at 16px its body has room for a title bar or a legible arrow, not both. The arrow runs 5.5 across and up, and keeps at least 1 clear of the front window's outline. Raft doesn't use Lucide's external-link or square-arrow-out-up-right, one box and an arrow leaving it: they read as leaving Raft, which a link out marks with arrow-up-right at its end instead (Links that leave Raft). A new window stays in Raft, so it has its own icon (Jasper, Kirby, 2026-11-24, #proj-raft-ui:#302).
A channel's own icon with a globe (readable on the public page) has no join icon of its own: its corner already holds the globe, and joining it is joining a channel.
Accessibility
- The icons are hidden from assistive technology (
aria-hidden) and can't take focus. The text or thearia-labelof the control around them names what they stand for. - To use one as the only content of a button, give the button an
aria-label: Open thread.
Rules
- Don't add drawn icons. New icons come from Lucide (Iconography); these fifteen are the only drawn ones (
ChatIconis a second name forMessageIcon, not a drawing of its own, andArtifactIconis Lucide'sfile-code), each for a meaning Lucide has no icon for. - Use an action icon only for its action.
JoinChannelIconis not a channel's icon, andAddCommentIconis not a comment's. - A plus means add, create, follow or join this kind of thing, and a minus remove or unfollow it: in the bottom-right corner, or inside the thing where it has room (the thread pair puts it in the front bubble). Never use either for another meaning, such as "new" or "more".
- Leaving a place (Leave channel, for a channel of any kind, and Leave server) is Lucide's
door-open, and signing out of Raft is Lucide'slog-out. Until 2026-11-23 leaving a channel was the channel's own icon with a minus, which read as an underline at 16px, so nobody saw it as leaving; the open door reads as going out, and having no arrow keeps it apart from signing out (huxijin, 2026-11-23, #proj-raft-ui:d2d2af86). Leave channel no longer shows the channel's kind: the action sits on the channel it leaves.
API
AddCommentIcon, FollowArtifactIcon, FollowThreadIcon, JoinChannelIcon, JoinJointChannelIcon, JoinPrivateChannelIcon, OpenInNewWindowIcon, ReopenTaskIcon, UnfollowArtifactIcon, UnfollowThreadIcon, ChatIcon, CommentIcon, DirectMessageIcon, FeedbackIcon, MessageIcon, ThreadIcon, ArtifactIcon, PrivateIcon
Takes the attributes of its element.
Related
Changes
- 0.102.22 · Added
OpenInNewWindowIcon(@botiverse/ricons0.1.2): Open in new window ([#1387](https://github.com/botiverse/raft-design/pull/1387)). Two stacked windows, the back one with a title bar, and a ↗ inside the front one. raft-ui 0.102.22 depends on ricons 0.1.2. - 0.95.1 · Changed
ArtifactIcon(@botiverse/ricons0.1.1): its page is drawn 2 wider ([#1210](https://github.com/botiverse/raft-design/pull/1210)). raft-ui 0.95.1 depends on ricons 0.1.1. - 0.95.0 · Breakingraft-ui no longer exports its own icons: import them from
@botiverse/ricons([Icons](https://raft-design.botiverse.build/components/icons/)).MessageIcon,ChatIcon,DirectMessageIcon,ThreadIcon,CommentIcon,FeedbackIcon,ArtifactIcon,FollowThreadIcon,UnfollowThreadIcon,JoinChannelIcon,LeaveChannelIcon,JoinPrivateChannelIcon,LeavePrivateChannelIcon,JoinJointChannelIcon,LeaveJointChannelIcon,FollowArtifactIcon,UnfollowArtifactIcon,AddCommentIcon,ReopenTaskIconand the typesActionIconProps,ConversationIconPropsandObjectIconPropsmoved to the new package@botiverse/ricons(packages/icons), with the same names, types and drawings. raft-ui depends on it for its own components and doesn't export them: the icons have one import path. - 0.53.0 · Changed
ChatIconisMessageIcon's plain bubble: the three dots inside are gone, so a message and a chat share one icon.ChatIconstays exported as an alias;DirectMessageIcon,ThreadIcon,CommentIconandFeedbackIconkeep their marks. - 0.41.0 · AddedAction icons:
FollowThreadIcon/UnfollowThreadIcon,JoinChannelIcon/LeaveChannelIconand their private and joint pairs. - 0.41.0 · Added
CommentIcon,AddCommentIcon,FeedbackIcon,CreateTaskIcon,ReopenTaskIcon,ArtifactIcon,FollowArtifactIcon/UnfollowArtifactIcon. - 0.5.64 · Changed
SidebarItemThreadCountdraws the package'sThreadIcon(was lucideMessageSquare), at 12px with a 1.75 stroke; badge height is unchanged.