main character

icons · 30 · filled and outline
source: static/icons/ · static/js/card.js

Icons

One icon for each card type, and for each built-in category, dream tone and thing category. Cards draw the filled set by default; people show their initials instead. The interface has icons of its own too: the caret on things that open and close, the dashed ring beside a proposed category, and undo, redo, add and edit in the entities sidebar.

Assignments

Each row: filled, outline and the file. The mapping lives in static/js/card.js (TYPE_ICONS, SUBTYPE_ICONS); this page mirrors it, and a row that disagrees is flagged in red. The interface rows mirror .caret-icon, .dash-icon and .ui-icon in static/css/components.css the same way.

In a card

Small cards drawn by static/js/card.js, which picks the icon from the card's type and subtype. iconStyle: 'outline' switches set.

The full set

Every icon in static/icons/, filled then outline, with what uses it and the set it comes from. peace-bold and the interface icons have one version each. Licenses: static/icons/LICENSES.md.

Usage

The icons are square SVGs drawn in currentColor. On a card, span.card-icon draws the file as a CSS mask filled with currentColor, so it takes the visual's accent and hover colours (an <img> would not), sized at .9em of the visual's glyph size. They are always aria-hidden: the card's eyebrow and title already say what the item is.

In the interface, span.ui-icon with the icon's name (plus, undo, redo, pencil) draws one file the same way, in the button's text colour at .9em, so it follows hover and the accent. It sits before the button's word (undo, kind, new), and is aria-hidden there too. An icon-only button, like a group's edit, carries an aria-label and a title instead of the word. The caret (.caret-icon) and the dash mark (.dash-icon) are drawn the same way, with their own sizes and colours.

To change or add one: put name.svg and name-filled.svg in static/icons/, point the entry in card.js at it, and update its row in pages/icons.js. A single-version icon goes in ONE_VERSION. Then run node figma/icons/icons.mjs, which bundles them for the Figma Icons plugin (figma/icons/).

An interface icon is one file, name.svg, with a .ui-icon.name rule in components.css and a row in the interface group of pages/icons.js. It isn't in the Figma Icon set.

Sources: TDesign Icons by Tencent (most, including pencil), Phosphor Icons (alien, peace-bold), Boxicons (category, hand, rocket, pizza, plus), Bootstrap Icons (bookmark-heart) and Mynaui (undo, redo), all MIT; Entypo+ (caret-right, CC BY-SA 4.0) and MingCute (circle-dash, Apache 2.0). The originals are in mc-icons/.