Icons
Icon sizes, the icon library, colour and fill rules, and best practices.
Icon Size Tokens
#icon-size-tokensIcons 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.
Pairing with text
Match the icon to the text size it sits next to.
Icon Library
#icon-libraryEvery 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/*
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
#stylingIcons 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.
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-practicesGeneral guidance for using icons in the product.
Size icons to the text
SizingKeep icons the same optical size as the label beside them. size.16 next to 14px text is the default.
Don't put a 24px icon next to 14px text. It pulls focus and breaks the baseline.
Use one icon style
StyleUse line icons throughout. They match Geist's stroke weight.
Don't mix filled and line icons in the same group.
Label icon-only buttons
AccessibilityGive every icon-only button an aria-label and a tooltip that names the action.
Don't rely on the icon alone. Screen readers announce nothing, and the meaning is ambiguous.
Inherit colour from text
ColourLet icons take the colour of their text: muted icon with muted text, normal with normal.
Don't colour icons for decoration. Reserve primary and status colours for meaning.