Weftv0.4.0
GitHubFigma
Blade AI
Foundations · Icons

Icons

Icon sizes, the icon library, colour and fill rules, and best practices.

Icon Size Tokens

#icon-size-tokens

Icons are sized with Global size tokens. Component-level icon tokens were not recreated. size.16 is the default inside every component.

Sizes

Five Global size tokens. size.16 is the default inside buttons, inputs, alerts and menus.

Icon
Name
Token
Value
Used for
xs
size.12
12px
Inside xs badges and dense table cells
sm
size.14
14px
Small buttons and menu items (text 12)
md · default
size.16
16px
Default: buttons, inputs, alerts (text 14)
lg
size.20
20px
Large buttons and empty-state accents
xl
size.24
24px
Page headers and feature callouts

Pairing with text

Match the icon to the text size it sits next to.

Settings
text 12 · size.14
Settings
text 14 · size.16
Settings
text 16 · size.20

Icon Library

#icon-library

Every icon component in the system: Remix Icon, line style, on a 24px frame with fills bound to a Theme icon token. Add new icons from remixicon.com and name them icon/<remix-name>.

Icons

33 components · icon/*

addPlusIcon
alertNot in code yet
arrow-downNot in code yet
arrow-down-sChevronDownIcon
arrow-left-sNot in code yet
arrow-right-sChevronRightIcon
arrow-upNot in code yet
arrow-up-downNot in code yet
book-openNot in code yet
checkCheckIcon
checkbox-circleNot in code yet
checkbox-circle-fillNot in code yet
closeCloseIcon
commandNot in code yet
cropNot in code yet
draggableNot in code yet
error-warningNot in code yet
expand-up-downNot in code yet
galleryNot in code yet
informationNot in code yet
layout-columnNot in code yet
loader4SpinnerIcon
mapNot in code yet
moreMoreIcon
more2Not in code yet
pie-chartNot in code yet
pulseNot in code yet
robotNot in code yet
settingsNot in code yet
side-barNot in code yet
skip-leftNot in code yet
skip-rightNot in code yet
terminal-boxNot in code yet

Not in code yet Paper-only icons are drawn from the Paper paths. Icons marked with a component name render the real icon from @blade-ai/weft/components/icons.

Styling

#styling

Icons have no colour of their own. In code they inherit currentColor from the parent text. In Paper, bind the vector fill to the same token as the text next to it.

Icon colour

Seven fills, each bound to a Theme icon token.

Icon
Token
Used for
interactive.icon.gray.normal
Default for icons next to body text
surface.icon.gray.muted
Decorative and secondary icons, input adornments
interactive.icon.primary.normal
Brand emphasis and selected states
feedback.icon.negative.intense
Destructive actions and errors
feedback.icon.positive.intense
Success status in alerts and badges
UNDEFINED · needs decision
Warning status in alerts and badges. No notice icon token; swatch uses feedback.text.notice.intense
UNDEFINED · needs decision
Informational status in alerts and badges. No information icon token; swatch uses feedback.text.information.intense

Stroke and fill

Remix line icons are filled outlines, not strokes.

Remix icons are drawn as filled shapes, so colour them with a fill and never add a stroke. Scale them with the size token (rescale in Paper, size-* in code) so line weight stays proportional. Use the -fill variants (e.g. checkbox-circle-fill) only for selected or completed states.

Best Practices

#best-practices

General guidance for using icons in the product.

Size icons to the text

Sizing
Use

Keep icons the same optical size as the label beside them. size.16 next to 14px text is the default.

Settings
Avoid

Don't put a 24px icon next to 14px text. It pulls focus and breaks the baseline.

Settings

Use one icon style

Style
Use

Use line icons throughout. They match Geist's stroke weight.

Avoid

Don't mix filled and line icons in the same group.

Label icon-only buttons

Accessibility
Use

Give every icon-only button an aria-label and a tooltip that names the action.

More actions
Avoid

Don't rely on the icon alone. Screen readers announce nothing, and the meaning is ambiguous.

Inherit colour from text

Colour
Use

Let icons take the colour of their text: muted icon with muted text, normal with normal.

Documentation
Avoid

Don't colour icons for decoration. Reserve primary and status colours for meaning.

Documentation