DesignOverviewDesign SystemMapsGraphIntroductionInstallationDeriving a themeSandboxTheme builderVisual testingAgentsCortexMemoryActiveProvenanceActiveContextActiveServicesInsightsGet in touchSource on GitHub
Foundations
Iconography<helix-iconname="trash"></helix-icon>Helix draws its glyphs from Phosphor, plus a few marks of its own, on a 256
box at Phosphor's bold weight. We keep Phosphor's own geometry. Rescaling to a
24 box would change the optical weight of every glyph, and the set would stop
matching Phosphor. We use the bold weight because Phosphor's regular weight is a
hairline beside the medium weight of Helix text. An icon that looks lighter than
the words next to it does not work as a mark.One mark is drawn at the regular weight by design. Option, Time Picker, and
Menu Item mark a chosen row with Phosphor's regular-weight check, a lighter
line than Checkbox's tick, so a chosen row reads apart from a checked box.Register the setimport'@fusion.dev/helix/icon'The Icon entry registers every glyph in the set by name, so name draws any
glyph. @fusion.dev/helix/icon/all is the same entry and registers the same
set.Size comes from the region and color from the textAn icon has no size and no color property. It draws in currentColor, so it
takes the color of the text it sits in:<spandata-tone="danger"><helix-iconname="warning"></helix-icon> Careful
</span>An icon is --helix-size-icon square, and that size follows the region's
density: 16px at sm, 20px at md, and 24px at lg. It does not follow the
size of the text around it. Inside a Button, an icon is 1.15 times the label's
size, rounded down to an even pixel: 12px beside the 12px label of a small
button, 14px beside a 13px label, and 16px beside a 14px label. A small button's
icon is a step smaller without any extra setting. Set --icon-size on an icon
to give it a size of its own.An Icon Button draws the glyph a field draws, a step under the region's icon:
12px at sm, 16px at md, and 20px at lg. A Toolbar and an App Header sit at
sm and raise that step to 16px, so their Icon Buttons draw 16px glyphs.Decorative and named icons<!-- Decorative: the text beside it already says what this is. --><helix-button><helix-iconname="trash"></helix-icon>
Delete
</helix-button><!-- Named: there is no text, so the button has to carry the name. --><helix-icon-buttonlabel="Delete"><helix-iconname="trash"></helix-icon></helix-icon-button>An icon with no label is hidden from assistive technology. Leave out label
when text beside the icon says what it is. Add a label when there is no text.
Icon Button takes a label because it never has text beside it, and the icon
inside it takes none.Mirror an icon on right-to-left pages<helix-iconmirrorname="arrow-right"></helix-icon>Icon names describe physical directions, so arrow-right points right on every
page. When an arrow means forward or back, add mirror to flip it on a
right-to-left page. Every caret Helix draws already flips.
Localization has the rest.Import a glyphimport{trash}from'@fusion.dev/helix-icons'Each glyph is data in the form { content, name, viewBox }. You can put one in
your own markup, in a canvas, or anywhere you do not want an element. Every
name Helix uses is checked against the glyphs that exist, so a typo fails the
build.Pass a glyph to the icon property to draw it, from any set:import{trash}from'@fusion.dev/helix-icons'<helix-iconicon={trash}/>icon is a property because a glyph is an object, and an attribute holds only a
string. Frameworks can set properties. Plain HTML cannot, so it uses name. If
both are set, icon wins.icon also keeps your bundle small. name looks up glyphs in an index of the
whole set, and no bundler can tree-shake that index. If you render one icon by
name, you ship the whole set: 25.5 kB gzipped, measured November 11, 2026. With
icon, you ship only the glyph you import.icon also draws glyphs from outside this set. Anything that exports the same
shape works:
Phosphor at another weight
another icon library
your own drawings
constdot={content:'<circle cx="12" cy="12" r="10" fill="currentColor" />',name:'dot',viewBox:'0 0 24 24'}Choose a weight with a subpathimport{caretDown}from'@fusion.dev/helix-icons/regular'import{trash}from'@fusion.dev/helix-icons/bold'The default is bold. /bold is the same set, with the weight in its path.Each weight is a separate set of drawings, so each weight is a subpath.
Phosphor's weights are outlined, filled paths. caret-down is a12,12 at bold
and a8,8 at regular, so CSS cannot turn one weight into another, and every
weight offered adds bytes. Bundlers tree-shake a subpath at each import site. A
weight attribute would put every weight into the index that name reads. The
regular set is 23.5 kB gzipped on its own, so the two weights together would
raise the bundle from 25.5 kB to about 48, and each further Phosphor weight
would add about as much again.Only the default weight has that index, so name always draws bold. To use the
set in another weight, import the glyphs and pass them to icon.Build your own icon setThe package includes the command that builds this set, so you can add any glyph
yourself:npx helix-icons build --source ./brand-icons --out src/icons.tsimport{peak}from'./icons'<helix-iconicon={peak}/>The command reads a directory of SVG files and writes the module that
helix-icon draws from. It works the same way for your own drawings, another
library's, or the 1,351 Phosphor glyphs this set does not include:npx helix-icons build \
--source node_modules/@phosphor-icons/core/assets/regular \
--list mine.txt --out src/icons.tsUse --suffix for a set that puts the weight in the file name, such as
Phosphor's bold caret-down-bold.svg. --index also writes the record that
name reads. Use it only if your own elements take a name in markup, because no
bundler can remove that record.The command stops with an error when a name appears in two sources. With
an order of precedence, the glyph on the page would come from whichever
directory ranked higher, and nothing would look wrong.Draw your own glyphs by nameregisterIcons makes your glyphs resolve by name, so plain HTML can draw
them:import{registerIcons}from'@fusion.dev/helix/icon'import{peak}from'./icons'registerIcons([peak])<helix-iconname="peak"></helix-icon>Each glyph registers under its own name. To register a whole set, build it
with --index and pass the icons record the command writes to
registerIcons.registerIconLibrary resolves names under a prefix through a function of your
own, such as one that points into a sprite sheet or fetches from a server. After
registerIconLibrary('brand', resolve), name="brand:peak" draws the glyph that
resolve('peak') returns.To sit beside the Helix set, draw a glyph with the same geometry, a 256 box at
the bold weight. A glyph drawn at a different weight stands out next to the
others.Product marksThe set includes the Fusion, Helix, and Cortex marks, and the React and HTML5
logos, so <helix-icon name="helix"> draws the Helix mark. A mark identifies a
product. An icon stands for an action. The Helix and Cortex marks are each one
rounded body with material removed. Neither is a pictogram of a metaphor,
because each stands beside the Fusion mark, a geometric monogram.