Foundations
Iconography
The icon set, its stroke and color, the one table of meanings that cards, menus and settings share, the icon sizes by context, and what is not an icon.
Raft's icons are Lucide icons, from lucide-react, at a stroke of 2. An icon inherits its color from the text around it (currentColor).
Principles
- Lucide only. When you need a new icon, take the Lucide icon of that name. Raft draws a few of its own, for kinds of conversation and for following, joining, adding, reopening and opening in a new window, where Lucide has none; they follow Lucide's grid and weight. Our own icons live in
@botiverse/ricons, a package of their own in this repository, and are imported only from it: raft-ui doesn't export them. ItsArtifactIconis Lucide'sfile-codewith its page drawn wider, so it reads as the size of the icons beside it (Icons). - Pixel avatars are not icons. They stand only for agents; see Avatar.
- Emoji are content, not icons. Don't use an emoji as an icon. Emoji in reactions are content; see Brand.
- No sparkles. Don't use sparkles, stars or similar icons to mark agents or AI; see Identity and presence.
Meanings
- One meaning per icon on a screen. Two different things or actions on one screen never share an icon. When a new one would take an icon already there, give one of them another.
- One icon per concept. Take one Lucide drawing for a concept and use it everywhere, not its variants:
clock, notclock-3;settings, notsettings-2. Something private is ricons'PrivateIconeverywhere (Icons › Private); Lucide'slockmeans locked. - More is
ellipsisin a row of actions,ellipsis-verticalfor an object's menu. The horizontal ⋯ ends a horizontal toolbar or action row, its dots carrying on the row of actions beside it: the message hover toolbar, a selection toolbar. The vertical ⋮ opens one object's menu, at the trailing end of a panel header, a card or a list row. - Back is
arrow-left, not a chevron, and Forwardarrow-right(Alignment). A chevron pages through a set, such as the previous and next image, or opens and closes a section. - Success is
circle-check; an error or a warning istriangle-alert, as Banner and Toast draw them. Notcircle-check-bigorcircle-alert. - Reopen is not restart.
rotate-ccwmeans restart or reset, so Reopen task has its own icon,ReopenTaskIcon(Icons). - No box with an arrow. Lucide's
external-linkandsquare-arrow-out-up-rightread as leaving Raft, so Raft doesn't use them: a link that leaves Raft ends inarrow-up-right(Links that leave Raft), and Open in new window, which opens a Raft window of its own and stays in Raft, has its own icon,OpenInNewWindowIcon(Icons) (Jasper, Kirby, 2026-11-24, #proj-raft-ui:#302). - Outline only. Don't fill an icon to show a state, such as saved: a toggle shows the action it offers (
bookmark-minusto remove from Saved). A media player's Play and Pause are the exception, and so is the mark of something private:PrivateIconis the one filled icon, a solid lock, because among outlines the one solid icon reads as closed (huxijin, 2026-12-03). A filled icon is allowed only when it marks a kind and never a state, is the only icon drawn that way, and is the same wherever its meaning is shown (Icons › Private).
One meaning, one icon
Cards, menus and settings pages take their icons from this one table: a meaning has exactly one Lucide icon, and the same meaning draws the same icon on a card, in a menu and in a settings page. It is kept here, in the design system, not in the app or in a card's code, so a new card kind, a new menu item and a new settings page all find the icon in the same place (Kirby and Tenny, 2026-11-23). Before, four kinds of action card (an agent's call, a prepared request, an assistant acting for its owner, restoring an app's owner) all drew shield-alert, so the icon told the reader nothing about which was asked; and a card icon named sparkles drew a lightbulb, so its name and its drawing meant different things.
- Take the meaning from this table, not a drawing that looks right. When nothing here fits, add a row here first, in the same change, with its meaning and where it is used; a second icon for a meaning already here is a mistake in one of them.
- Name a card's icon for its meaning. The key an agent or the server sends for a card's icon is the meaning (
approval,question), never a drawing's name, so a drawing can change without the key lying about it. There is nosparkleskey, and no sparkles at all (No sparkles). - A card's state is not an icon. A card that asks for something shows its phase and outcome as its status pixel and word (Cards in messages); Waiting, Done and Failed here are for menus, rows and banners.
Sizes
A mark at small sizes
One drawing serves every size: Lucide draws none twice. A drawn icon whose mark gets lost at 16px and under may carry a second mark for small sizes, drawn on the same grid and swapped in below 18px by a container query on the icon (data-icon-sizes, in @botiverse/ricons/styles.css, which raft-ui's stylesheet imports). The rest of the drawing doesn't change, and from 18px up the icon is the one drawing. Only UnfollowArtifactIcon has one: at 16px its minus is heavier, so it reads as a mark rather than one more piece of the page's outline (Icons). Add one only when a mark is lost at the size the icon is used, not to tune an icon that reads.