Foundations
Iconography
One icon family, a small size scale, and rules that keep icons clear and accessible.
Why we chose this
One family, Tabler Icons (outline, MIT), so every icon shares the same 24px grid, rounded line ends and stroke. They match the soft corners of the radius scale and take any color through currentColor.
Use it for
- Next to a word, to make an action quicker to recognise
- Alone only for universal actions: close, search, menu
- At
icon-size-sm(16),-md(20) or-lg(24)
Don't
- Mix in another icon family, or an emoji, for UI.
- Scale to an odd size like 18px or fill an outline icon.
- Hard-code a color. Use an icon token.
The icon library
We use Tabler Icons (outline style). It is free and open source under the MIT license, so it is safe for commercial work. It has thousands of icons so we rarely need to draw our own. All icons sit on the same 24px grid with rounded line ends, which matches the soft corners of our radius scale. And because they are drawn with strokes, they use our stroke-* tokens and take any color through currentColor.
| Library | Tabler Icons, outline set, version 3 |
|---|---|
| License | MIT. The license text is kept in icons/LICENSE-tabler.txt. |
| Where | We keep a curated copy in icons/ (46 icons below), not the whole 5,000-icon library. |
| Grid | 24 × 24px, line ends and corners rounded |
Sizes
Size and stroke
An icon's line thickness scales with its size. Compare a few combinations. As a starting point we use stroke-2 at 16px (so the line stays crisp) and stroke-1.5 at 20 and 24px.
The size and stroke pairing is my recommendation. Tell me if you'd rather use one stroke everywhere.
Icon set
Click an icon to copy its name. Need another? Find it at tabler.io/icons and add the outline SVG to icons/.
Color
Icons take their color from icon tokens, never from a hex. They inherit it with currentColor.
Using icons
<!-- inline the SVG so it can use currentColor -->
<svg class="icon" aria-hidden="true" viewBox="0 0 24 24" ...>...</svg>
.icon { width: var(--icon-size-sm); height: var(--icon-size-sm);
stroke: currentColor; stroke-width: var(--stroke-1-5); fill: none; }
.cm-btn--primary .icon { color: var(--icon-primary-invert); }
Icon buttons
An icon alone is a button with no label, so it needs an accessible name and a 44px target.
Accessibility
- Decorative icons are hidden: an icon next to text gets
aria-hidden="true", so screen readers don't read it twice. - Icon-only buttons have a name: use
aria-labelor visually hidden text. The icon alone is not a label. - Meaning never relies on the icon or its color alone: status icons always come with a word.
- Touch target stays 44px: a 16px icon sits inside a 44px button (
control-min-height). - Contrast: icons that carry meaning need 3:1 against their background. The icon tokens are chosen for that.
Rules
| Rule | Reason |
|---|---|
| Use only icons from this set. Don't mix in another icon family or emoji for UI. | Different families have different line weights and corners. |
| Use a size token (16, 20, 24). Don't scale to odd sizes like 18px. | Lines stay crisp on the pixel grid. |
| One stroke weight per size, everywhere. | Mixed weights look uneven. |
Color with an icon token via currentColor. | Works in light and dark and for every state. |
| Prefer a text label with the icon. Use icon-only just for universal ones (close, search, menu). | Many icons are ambiguous. |
| Don't fill outline icons or add a second color. | Keeps the set quiet and consistent. |
Booking confirmed
Icon at a token size with a word.
<button class="cm-btn cm-btn--primary">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="1.5"
aria-hidden="true">…</svg>
<span class="cm-btn__label">Download</span>
</button>✅
Emoji, odd sizes, hard-coded colors and heavy strokes.
<button>
<svg width="18" height="18" viewBox="0 0 24 24" fill="none"
stroke="#a75e2a" stroke-width="3">…</svg>
</button>