@servicetitan/anvil2-illustrations. Use Icons for compact glyphs in controls. Compose empty-state layout and copy with the Empty States pattern.
The grid lists every token illustration. Click a cell to copy the named Anvil2 import. Previews follow the docs light and dark theme.
Import
Install@servicetitan/anvil2-illustrations separately.
Anvil2 file-swapping (
-light / -dark under AnvilProvider) is deprecated; use the named export. Dual files stay the API for Carto, AI Kit, <img>, and React Native until a native port. Removal of Anvil2 file-swapping is TBD in a later major.
Anvil2
Named exports readillustration.color.* tokens (--a2-illustration-color-*) and follow AnvilProvider. Do not swap files for dark mode.
src/svg/ and are not a published import. Set one dimension from the file viewBox and let the other scale. Empty states use height={200}.
Carto and AI Kit
Carto and AI Kit do not wrap the tree inAnvilProvider, so CSS variables do not theme. Import the generated -light or -dark SVG.
Accessibility
Provide meaningfulalt text when the illustration conveys information. Use empty alt or aria-hidden when adjacent title and body already explain the state.