Icons
At a bare minimum you'll want to include PDF images for light mode icons so they can be used for all views where your Component appears within the RapidWeaver Elements UI.

Standard Icon
All Elements require an icon.pdf file for light mode. If the dark-mode.pdf file isn't provided, icon.pdf will be used in Dark Mode.
icon.pdf (Required), 1:1 ratio, e.g. 128x128 (Square)
icon-dark.pdf (optional), 1:1 ratio, e.g. 128x128 (Square)
Palette Icons
The Palette image should be named paletteIcon.pdf and paletteIcon-dark.pdf for Dark Mode. If the paletteIcon-dark.pdf file isn't provided, paletteIcon.pdf will be used in Dark Mode.
paletteIcon.pdf (Required), 1:2 ratio, e.g. 128x256 (landscape)
paletteIcon-dark.pdf (optional), 1:2 ratio, e.g. 128x256 (landscape)
Asset Placement
All Icon files should be placed at the root of the Component alongside the info.json file.

How to add a Custom Icon to your Component
Watch the short video below to learn more about adding custom icons to your Components.
Sketch Example File
Your pdf icons MUST be on a transparent background. The background should not be exported as this is generated in Elements.


We've provided an example Sketch document below you can use to get started.
Experimental / Unsupported - Banner Icons
There is some unfinished experimental support for banner style icons, these are great for layout style components. However, this style of icon may not be supported when Elements ships, please use with caution and ensure you also include the standard style of icon.
bannerLayer1.png
bannerLayer1-Dark.png (optional)
Banner icons can be layered, and each layer can represent a different colour in the Theme Studio. For example this icon uses four layers and three of those layers will be tinted with the Theme colour.
bannerLayer1.png
bannerLayer2-brand-500.png
bannerLayer3-brand-200.png
bannerLayer4-surface-500.png
Banner images should be 512px in width, but can be as short or tall as you need. Banner icons will appear the same in both grid and list.

Last updated
Was this helpful?