Design System

Icons ​

An icon is a glyph, not a picture. That one fact decides how it is sized, how it is coloured, and what happens when somebody changes their text setting.

This page explains the model. Usage shows how to apply it, and Reference lists the sizes, prefixes and component API.

One source, one weight ​

Icons come from Font Awesome Free 6.5.1, solid weight, written fas.

Caido draws no interface icons of its own. The drawn marks that do exist are logos and illustrations rather than icons, so a feature that needs a picture the library already has waits on nobody.

Brand marks keep their own family, and one place uses the regular weight because hollow against filled is the point there. Prefixes lists both.

A settled vocabulary, not a permission list ​

The set is a list of meanings, each drawn one way. It is not a list of glyphs you are allowed to use, and there is no gate in front of picking one.

The point is that a meaning the system already has does not get a second drawing. If a sitemap is already a sitemap, a second sitemap glyph elsewhere is drift, and anybody reading the two would have to work out whether the difference meant something.

Some icons name a thing, others name a shape ​

Mixing these two kinds up is what makes an icon set stop meaning anything.

Single-purpose icons are named after a concept. A sitemap, a bug, a puzzle piece. Each means one thing and must not be borrowed for another.

Multi-purpose icons are named after their appearance. An arrow, a globe, a circle, a chevron. These are shapes, and the same shape legitimately does several jobs.

So a chevron pointing down can open a menu in one place and expand a row in another, while a bug keeps its one meaning wherever it appears.

The three sizes, side by side ​

no size beside body text

no size beside caption text

icon-marker 12px

icon-message 32px

The first two are the same icon with nothing written. It is a different size in each because the text beside it is, and that is the whole mechanism.

An inline icon carries no size ​

An icon sitting next to text takes no size class at all. It inherits, so its size is 1em: the type step of the text beside it.

That is how it tracks the interface text setting. Somebody who raises their text setting to 20px gets icons that grow with it, because the icon was never told a size. Most icons in the interface are inline, and need nothing written.

Two rungs, for a glyph standing alone ​

The sizes exist only for a glyph with no text to inherit from. icon-marker is 12px, for a glyph inside a tag or a badge, and icon-message is 32px, for a glyph that is the subject of a message such as an empty state.

Both are written in pixels rather than a scaling unit, because a glyph standing alone is not text. There is no rung between them, as Sizes sets out.

An icon takes the colour of its context ​

The component writes no colour of its own, so a glyph is the foreground colour of whatever it sits in. That is why an icon beside a label needs nothing written: it is already the colour of the label.

A glyph that carries meaning on its own, such as a status dot, takes a foreground token written by the caller, because that colour is the caller's knowledge rather than the icon's.

An icon is either decorative or it is not ​

An icon beside a text label adds nothing for a screen reader, because the label already says it. An icon standing alone is the only thing saying what a control does.

Getting the treatment backwards either hides a control or reads the same word twice. Labelling an icon covers both cases.