Shared materials

By default, each vector layer has its own unique material. Changing it only changes that layer. Shared materials can be used by many layers at once, and editing a shared material updates every layer that uses it.

They’re a great way to keep buttons, cards, and other repeated elements consistent — a bit like a color constant, but for an entire material.

Material picker #

The top of the material tab on the properties window shows the name of the selected layer’s material, and whether it is unique or shared (and if it’s shared, how many layers use it). Clicking the material name opens the material picker.

The top of the material picker shows a preview of the current material, and lets you rename it. Below that is a list of the shared materials in the document. Type in the search field to filter the list by name.

Sharing a material #

To turn a layer’s material into a shared material, select a single layer, open the material picker, and click Convert to Shared. It’s worth giving the material a good name while you’re there, so it’s easy to find later.

To stop layers from using a shared material, select them, open the material picker, and click Detach. Each layer gets its own unique copy of the material, and changing it won’t affect any other layers.

Applying shared materials #

To apply a shared material, select one or more layers, open the material picker, and click the material in the list. The selected layers will now use that shared material.

Each material in the list has a menu with Assign, Duplicate, and Delete commands. Duplicating a shared material makes a new shared material with the same settings. Deleting a material gives any layers that used it a new default material.

Shared materials can also be applied with the action prompt. Press ⌘/, type apply followed by part of the material name, and press return. The prefix a also works.

Further reading: Action prompt

Copying and pasting materials #

Materials can be copied from one layer and pasted onto others. Select a layer and choose Layer › Copy Material or press ⇧⌘C, then select the destination layers and choose Layer › Paste Material or press ⇧⌘V. Both commands are also available by right-clicking on the canvas.

If the copied material is shared, pasting it into the same document applies the shared material, so the layers stay linked. Pasting a shared material into a different document adds it to that document as a shared material. If the copied material is unique, each destination layer gets its own copy.

The eyedropper tool is another quick way to copy materials between layers.