Icons
The Engine's icons come from UI/UX Icons, an independent open-source library of more than 600 icons in several styles and weights. The Engine's core doesn't depend on any icon library: definitions refer to icons by name, and you can plug in another library.
In React
Pass an icon component to a slot. Import each icon from its own file, so your bundle holds only the icons you use:
import { Button } from "@uiuxengine/react";
import { IconPlay } from "@uiuxicons/react/icons/play";
<Button label="Run analysis" leadingIcon={IconPlay} />;Don't import from @uiuxicons/react itself: that entry loads every icon.
Icons inside a labelled control are decorative and hidden from assistive technology. A control with only an icon needs accessibleLabel, which the Button's contract requires:
import { IconSearch } from "@uiuxicons/react/icons/search";
<Button variant="ghost" leadingIcon={IconSearch} accessibleLabel="Search" />;Style, weight and size
The default is the line style in the regular weight, everywhere: React, Figma and specs. The defaults are theme tokens, icon.style and icon.weight, so a theme can change them in one place.
Density sets icon sizes through tokens, and icons take the color of the text around them.
Icons by name
Definitions and specs refer to icons as data:
{ "type": "icon", "id": "play", "style": "line", "weight": "regular" }style and weight are optional and fall back to the defaults. In React, a name or a reference resolves through the nearest IconCatalogProvider, which lists the icons your app allows:
import { IconCatalogProvider } from "@uiuxengine/react";
import { IconInbox } from "@uiuxicons/react/icons/inbox";
import { IconPlus } from "@uiuxicons/react/icons/plus";
<IconCatalogProvider icons={{ inbox: IconInbox, plus: IconPlus }}>
<App />
</IconCatalogProvider>;This is how specs from agents get their icons: a spec that names an icon outside the catalog doesn't render. See Agents and MCP.
Another icon library
Pass any React component that renders an SVG to a slot, or give IconCatalogProvider a resolve function that returns an element for an icon reference. The Engine's definitions keep their names, so Figma keeps using UI/UX Icons.
In Figma
The Figma plugin makes icon slots instance-swap properties with instances from the UI/UX Icons Figma library, so designers swap icons the usual way. See Figma.
UI/UX Icons has its own license, releases and site. The Engine uses its published packages and never copies or changes its icons.