Layer and text styles
Learn how to speed up your work with layer and text styles
Layer and text styles are predefined sets of object and text properties that you can reuse in your designs. With the help of styles you can dramatically save your time and make your designs look more professional and consistent. When you modify a style, Lunacy immediately applies them to all the objects using this style.
You will store your custom layer and text styles on the Styles tab.
Layer style properties include:
- Inner shadows
They appear in the Inspector when you select an object.
For details on styling properties, refer to the Styling section of our documentation.
Adding a layer style
There are two ways of adding layer styles.
Way 1. By clicking the plus icon in the left panel and defining all the required properties in the Inspector.
Way 2. By first defining the properties of an object and then saving them as a style.
Applying styles to objects
Click the required object and select the style you want to apply to it from the menu in the Inspector.
Optionally, after selecting the object you can click the required style in the left panel and then click the replacement icon as shown below.
You can also apply a style to multiple selected objects at a time (see the demo below).
Modifying a layer style
There are two ways to modify a style.
- Swith to the Styles tab, then click the style you want to modify. The Edit Layer Style panel appears on the right.
- Use the panel to make the required changes.
- Click the Save button below the preview window. To discard all changes that you have made but have not saved yet, use the Reset button.
- Select an object using the style you want to modify.
Make the required changes in the Inspector. When you are done, you will see an asterisk (*) next to the style name in the Inspector. It indicates that changes have been made to the style.
Use one of the following options:
- Create New Layer Style (1): Saves the changes to a new style.
- Update Style (2): Saves the changes to the existing style.
- Reset Style (3) : Discards all changes that you have made.
Detaching a style
Select the required object and click the Detach style button shown below.
The appearance of the object remains the same, but it is no longer associated with the style and further changes to the style will not affect the object.
It is a good practice to organize styles into categories similar to those shown in the figure below.
To divide your styles into categories, consider the following format of style names:
Category name / Subcategory name / Style name
For example, to organize your styles of backgrounds, you can give them the following names:
- Backgrounds / Light
- Backgrounds / Dark
You don’t need to manually create categories and subcategories. Lunacy will show them automatically based on style names. The number of nesting levels for subcategories is not limited.
To rename a style:
- In the left panel, right-click the style and select Rename on the displayed menu or press
F2, if you prefer shortcuts.
- Type the new name and press
To rename a style category, right-click the category you want to rename and select the respective command on the displayed menu.
Style categories and styles appear in the A-Z order in the left panel.
To unfold/fold the content of all style categories, right-click anywhere over the category list and select Expand All/Collapse All on the displayed menu.
You can duplicate your existing styles and quickly create new ones based on their parents.
To duplicate a style:
Click the style in the list and press
Ctrl + D.
Right-click the style in the list and select Duplicate on the displayed menu.
Also, you can select and duplicate several styles at a time.
Copying styles between documents
To copy styles between documents:
- Select one or several styles in the source document (hold down
Shiftto select multiple items).
- Right-click and select Copy style on the displayed menu.
- Switch to the target document.
- Open the Styles tab.
- Right-click over the left panel and select Paste style on the displayed menu.
Deleting styles and categories
To delete a style:
Click the style in the list and press
Right-click the style in the list and select Delete on the displayed menu.
To delete a style category, right-click the category you want to delete and select the respective command on the displayed menu.
Also, you can select and delete several styles at a time.
The only difference between text styles and layer styles is that in addition to such properties as fills, shadows and blurs, text styles also feature a set of typography properties that include font size, font family, line spacing and others. All the procedures with text styles are the same as in layer styles.
See also the Text section for tips on working with text objects.
You can make use of layer and text styles from UI kits supplied with Lunacy or your own files. In the latter case you should first add this file to the UI Kits library. For details about UI kits, click here.
To apply an external style to an object:
- Select the object on the canvas.
- In the Appearance section of the Inspector, click the down arrowhead to invoke the menu.
- In the UI kits section of the menu, navigate to the required style.
You cannot make changes to external styles, but you can use the Unlink from Library feature. This feature will add a copy of the style you need to your document assets, i.e. to the list of your layer or text styles. After that, you can do whatever you want with the unlinked style as with any other style within your document.
There are two ways to unlink styles:
Way 1. Select an object with the style you want to unlink, then click Unlink from Library in the Inspector.
Way 2. Select a style or several styles in a UI kit, then right-click and select Unlink from Library on the context menu.
The demo below shows both these methods.