On this page

Usage

Pick the right size, colour and label for an icon, and use the same icon for the same action everywhere.

An icon works when people learn it once and recognise it everywhere after that.

Use 16 px icons in the colour of the text, with a label, and the same icon for the same meaning everywhere.

Sizes

Pick the size from the text next to the icon.

Size Token Use it for
16 px size.icon.default Default. Buttons, menus, tables, form fields, next to 14 px text.
20 px size.icon.medium Next to 16 px text, in toolbars and in the page header.
24 px size.icon.large An icon on its own, such as a status in a card or a small empty state.
32 px size.icon.empty Empty states only.

Don’t use other sizes. Don’t scale an icon to fit a box: change the box.

Do
Last sync 5 minutes ago

16 px icon next to 14 px text.

Don’t
Last sync 5 minutes ago

A 24 px icon next to 14 px text, or an in-between size such as 18 px.

Stroke

Keep Lucide’s stroke. It is 2 units on the 24 grid and scales with the icon: 1.33 px at 16, 1.67 px at 20, 2 px at 24. Don’t set stroke-width or absoluteStrokeWidth. A fixed 2 px stroke fills in the small details of a 16 px icon.

Do

Lucide’s own stroke, scaled with the icon (here at 24 px).

Don’t

Changing the stroke width, or mixing widths.

Colour

An icon takes the colour of its text. Icons draw with currentColor, so an icon in a button or a link is right without extra code. Set a colour only with a color.icon.* token:

TokenLightDarkUse
icon#42413F#CDCCC9Default icon colour.Contrast 8.0:1 / 8.2:1 on background.selected
icon.subtle#5F5E5B#A8A6A3Secondary icons, next to text.subtle or text.subtlest.Contrast 5.7:1 / 6.0:1 on background.neutral
icon.disabled#949390#6B6A67Icons of disabled controls.
icon.inverse#FDFDFC#181717Icons on background.neutral.bold and surface.inverse.Contrast 14.0:1 / 15.4:1 on background.neutral.bold
icon.on-bold#FFFFFF#181717Icons on the solid status fills.Contrast 4.5:1 / 4.9:1 on background.danger.bold
  • Status icons use the status token, such as icon.danger, and always sit next to the status in words.
  • Never give an icon a colour to decorate it, and never use the brand yellow for an icon.
Do
Sync failed

Icon in the text colour, or a status icon next to the status in words.

Don’t
Online store

Colour to decorate, or an icon in a colour below 3:1.

Alignment with text

Centre the icon on the line height of the text. Use display: flex; align-items: center. Next to several lines, centre the icon on the first line.

Sync now
One line. The icon is centred on the line height of the text (align-items: center).
3 products were skipped because their SKU is missing in the ERP. Add the SKU, then sync again.
Several lines. The icon is centred on the first line, not on the whole block.
Do
Runs every day

Icon centred on the line of text.

Don’t
Runs every day

Icon sitting on the text baseline: it rides high.

Spacing

The gap between an icon and its text follows the text size: 4 px next to 14 px text or smaller, 8 px next to 16 px text or larger.

Text Icon Gap Token Where
12 or 14 px 16 px 4 px space.050 Small and default controls, menus, tabs, table cells
16 px or larger 20 or 24 px 8 px space.100 Large controls, toolbars, the page header, a status in a card

Set the gap on the control with gap, not with a margin on the icon.

Add store
4 px with a 16 px icon, in small and default controls (space.050).
Add store
8 px with a 20 or 24 px icon, in large controls and outside controls (space.100).

Icon and label

Give an icon a label by default. The label says what happens; the icon helps people find it again.

Use an icon on its own only when all three are true:

  • The action is well known: close, search, add, edit, delete, copy, refresh, settings, filter, more, menu.
  • Space is tight, such as a table row or a toolbar.
  • The button has a name (aria-label) and a tooltip with the same words. See Accessibility.
Do
Sync now

Icon with a label. The label says what happens.

Don’t

An icon on its own for an action people may not know.

Selected state

Lucide icons are outline only. Show a selected item with background.selected and the indicator bar, not by filling the icon.

Do
StoresOrders

Selected: the selected background and an indicator bar. The icon stays outline.

Don’t
StoresOrders

A filled icon as the only sign of the selected item.

Common actions

One icon per meaning. Use this icon whenever you show one of these actions or objects, in every product. If a meaning is missing, ask the design system team before you choose one, so it is added here.

MeaningIconNameNote
Sync, refresh, retryrefresh-cwSpins while a sync runs.
Add, createplus
Editpencil
Delete, removetrashDestructive: always with a label or a confirmation.
Copycopy
Searchsearch
Settingssettings
Filterfunnel
Close, dismiss, clearx
More actionsellipsisVertical (ellipsis-vertical) only at the end of a table row.
Opens another siteexternal-link
Download, exportdownload
Upload, importupload
Success, syncedcircle-check
Warningtriangle-alert
Error, failedcircle-x
Infoinfo
Helpcircle-question-mark
ConnectionplugDisconnected: unplug.
Webhookwebhook
Store, sales channelstore
Orderreceipt
Productpackage
Inventory, warehousewarehouse
User, accountuser
Datecalendar
Time, scheduleclock
Do
Sync now

One icon for one meaning, everywhere: refresh-cw for every sync.

Don’t
Sync now

Three icons for the same action on one screen.

Do and don’t

Do Don’t
Use 16, 20, 24 or 32 px. Scale icons to other sizes.
Keep the icon in the text colour. Colour icons to decorate.
Add a label to most icons. Use an unfamiliar icon on its own.
Use the same icon for the same meaning. Use a different icon in each product.
Use outline icons with a selected background. Fill an icon to show it is selected.
Write the status next to a status icon. Let an icon or its colour carry the status alone.
Use one icon per button. Combine two icons into one action.