Components and shared styles
Make something once and reuse it on every frame: change the original and every copy follows. Keep colors and text looks as named styles.
A component is something you make once and place as many times as you like, on any frame of the project: a price tag, a logo with its tagline, a button, a footer. The original is the main component and each copy is an instance. Change the main and every instance changes with it.
Making a component
Select an element, a group or several elements and choose Create component (⌥⌘K): it's in the right-click menu and at the bottom of the inspector. Several elements are grouped first. The selection becomes the main component, right where it is, with a purple tag over it on the canvas and a purple icon in Layers.
Placing instances
Open Components in the bottom bar. Click a component to place an instance in the middle of the frame you're working on, or drag it onto any frame to drop it there. An instance moves, aligns and groups like anything else. Copying and pasting or duplicating an instance, or the main, makes another instance, and so does duplicating a frame.
Changing the main
What you change in the main component reaches every instance at once, on every frame: colors, text, pictures, sizes, effects, and where its parts are. An element you drag in among the main's parts in Layers is added to every instance, and parts you delete from the main go from every instance. Each instance keeps its top-left corner where you put it.
Overrides
Double-click an instance to work on one of its parts. What you change there, like the text, a color or a picture, or a part you hide, is that instance's own override: it stays when the main changes, until you reset it. The inspector shows how many changes of its own an instance has.
- Go to main component selects the main, on whichever frame it is.
- Reset takes back the overrides. On a whole instance it also puts back the parts you moved or deleted in it.
- Detach (⌥⌘B) turns an instance into plain elements that no longer follow the main.
Deleting a main component
Its instances keep working: each one keeps a copy, and the component stays in Components, marked Main deleted, while an instance uses it. Select an instance and choose Restore main component to put the main back. To remove a component for good, use the trash button on it in Components: its main and its instances become plain elements. ⌘Z brings any of it back.
Components belong to their project: pasted into another project, an instance or a main becomes plain elements.
Shared styles
A color style is a named color or gradient. A text style is a font with its size, bold and italic, line height, letter spacing, capitals, underline and strikethrough. Styles belong to the project, and changing one changes everything that uses it, on every frame.
- Save one: in a color picker, press + next to Styles to keep the color or gradient you see. For text, press + next to the text style at the top of Typography.
- Use one: pick it under Styles in the color picker, or in the text style list. Or click it in Styles in the bottom bar: a text takes a text style, and a color goes to a text's color, a shape's fill or a line's stroke (with nothing selected, to the frame's background).
- Change one: in Styles in the bottom bar, press the sliders button next to it to rename it or change its color, gradient, font and sizes. Update from selection gives it the look of what's selected.
- Detach: the unlink button keeps the color or the look but stops following the style. Changing a linked color or text by hand detaches it too.
While you type in a text, a text style picked goes on the selected words (their font, size, weight and lines), and those words don't follow later changes to the style. A stroke takes a gradient style's first color. A main component can use styles, and so do its instances.
Teams and the AI assistant
In a team project, components and styles are shared live like everything else. The AI assistant sees instances as ordinary elements: what it changes in an instance stays as that instance's override, and what it changes in a main reaches every instance. It can't make components, place or detach instances, or change styles.