Sketch tutorial cold knowledge

It has been found that while using only basic functionality is good for design, mastering practical tips can make your job easier. So from this issue, I will write some little-known sketch knowledge, including shortcuts, components, libraries, practical plug-ins and so on. I hope this series of articles can be useful and inspiring.
Since it is cold knowledge, it is often difficult to systematize to sort out, may be more scattered, so you see interested in the small skills best to try, should be able to quickly understand.
(Note: Everyone has their own usage habits and routines, so it’s hard to know whether I’m writing hot or cold for you. I’m just sharing my own little tricks that I’ve been using sketch for the first time to the present, which I feel are rather cold-blooded but useful. So, we learned a little bit of praise.

1, quickly modify object properties in the property bar.

Usually when you modify the object, you can choose the object and zoom directly, the result is often prone to deviations, such as decimal pixels, no alignment and so on, directly in the right property bar through the numerical operation will be much easier.

1) quickly modify mouse, Shift and Option.

The property bar on the right side of the main interface allows you to click on the property value to increase or decrease the value quickly (note that the mouse should be placed in the upper and lower positions of the text, and the left and right arrows appear before you can modify it quickly). If you hold down the Shift key, Sketch increases or decreases the value by 10 times, and holding down the Option key increases or decreases it by a tenth.

—————By Sketch tutorial knowledge

 

2) the property bar also supports composite modification.

Supports simple mathematical formulas, style unit L (center point left alignment) R (center point right) C (center point center center) M (center point center point center center point top) T (center point bottom alignment) B (center point bottom alignment), and fillet fast customization (format is X; Y; N; M, order is left-up-right-down-left), which can help adjust quickly and accurately. Is it very advanced?

—————By Sketch tutorial knowledge

Number + function combination operation

 

Simple mathematical formula calculation

 

Rounded corners setup

 

2. Small skills in layer operation.

When you first start using sketch, you often misoperate, such as shifting the wrong layer. For example, when you first select a layer and move it, you still move the layer group, which is a headache. So there are several shortcut keys in stacking multiple graphs.

1) When the layers are buried deep in a bunch of folders, you can hold down the command + left mouse button directly and quickly select the layers in the group.

—————By Sketch tutorial knowledge

 

2) hold down Option and select only layers that are entirely located in a graphic area to avoid misregistration. (Chestnuts, for example, move the interface elements on a large background map with a bottom, but don’t want to select the bottom one. In addition to locking the layers, Option is a convenient solution.)

—————By Sketch tutorial knowledge

Multi graph stacking

 

Multi choice and do not want to move certain elements.

3) Pressing option + command at the same time can move the layer separately, the mouse focus can not be on the selected layer, if you do not press these two shortcut keys combination, can not move outside the element area, when there are a large number of layers in the interface, you can also avoid misoperation to other layers (I strongly recommend that this combination key through) Frequently used to help solve the problem of mobile selection.

—————By Sketch tutorial knowledge

4) If there are overlapping layers, especially when the upper layer obscures the lower layer, it is difficult to select them directly. At this point, you can select the right-click of the top layer to select the desired layer, and move or modify the layer with the shortcut key mentioned above.

 

 

5) alignment layer
Control-Command-V equivalence in the vertical direction; Control-Command-H equivalence in the horizontal direction, this shortcut key is very common, much more convenient than each click on the upper right-hand corner of the alignment tool.

6) adjust the layer.
Layer zooming and zooming is a common operation, but if some layers have layer styles, such as edge tracing, projection, rounded corners, and so on, they can not zoom in at the same time when zooming directly. For example, if the shape of 50 PX in length and width and 10 px in edge tracing is changed to the shape of 100 PX in length and width, the edge tracing is still 10 px. How can we solve this problem?

—————By Sketch tutorial knowledge

In fact, sketch has two types of scaling, one is direct scaling, does not change the element style only modify the basic attribute size; the other is transform scaling, you can scale the basic attribute and style attributes at the same time. This also works for symbols by selecting Layer > Transform > Zoom… (or press Command-K) from the menu.

3, layer constraint skills

First, look at what is a layer constraint and look directly at the picture. The layer constraint can achieve the following effect:

 

Is it convenient to do interface adaptation? How can it be done concretely?

1) layer zoom fixed margins

In the element attribute bar, you can find constraint settings that set the relationship between child elements and parent elements as needed (Note: Layer constraints must be established in a layer group, without the concept of a group, layer constraints cannot be used; child parent relationships refer to reference relationships, such as white blocks relative to the bottom in the following figure The blue block, the white is the child, the blue is the parent, and the resizing setting is the child.

—————By Sketch tutorial knowledge

Sub parent relationship

 

Apple official component settings for layer constraints

 

2) automatic adaptation of symbol content

When there is cursor in the input item, the position can be changed automatically according to the length of the content.

—————By Sketch tutorial knowledge

4. Graphic manipulation skills

Rotation is a frequently used operation. There are many ways to rotate layers in sketch, depending on the situation.

1) set the fillet value directly through the angle of the property bar, which is very convenient when the rotation angle is very clear.

2) Rotate through the rotation option on the toolbar. The advantage is that the object can be rotated anywhere on the screen after selection

3) Rotate directly by the shortcut key, hold the command key and drag one of the control handles of the object to rotate. This shortcut will be very useful when you need to adjust the rotation many times.

—————By Sketch tutorial knowledge

 

4) in addition, add a little knowledge beyond rotation, comand Jian is also useful when doing transformation. It allows object transformation to be adjusted in one direction only.

5, mask technology

1) Masking in sketch is powerful, not only for layers, but also for layer groups. But within the masking group, any new layer or group of layers will be automatically masked, and sometimes it becomes a problem.

There are two ways to remove the mask: 1. Drag the layer or group out of the mask group, but this will destroy the element structure; 2. Select the layer that you want to remove directly, and ignore the underlying mask by right-clicking. The advantage is that you can not destroy the object organization structure.

2) There are two forms of mask in sketch, one is based on graphics, the other is based on transparency to achieve, often used to do gradient effect of the picture. These 2 are very common.

—————By Sketch tutorial knowledge

6, sketch file compression

After a lot of high-definition graphics are used in the source file, the sketch file will become very large, one is inconvenient to transfer, the other will also cause file stuck, slow response. At this point, you can use the layer – picture – the smallest size to quickly compress the files.

 

7, batch replacement colors

Modifying colors on multiple pages and panels can be time-consuming without symbols. In fact, sketch has built-in batch modification of color function, but probably not many people use.
Specific operations are: Edit – find and replace color (option + Command + F), need to pay attention to color transparency, according to actual needs to determine whether to check.

8. Quick switch view

During the design process, you often need to switch different views to view the design content, which is almost the use of UHF requirements! So for these shortcuts, we must mention here:
Command +1 fully displays all the contents in the page, which is suitable for global display and view consistency.

Command + 2 enlarges the selected elements to the right screen size, and one of the great things about this view is that you can copy the duplicated elements directly into the middle of the current element. This feature is very practical, and you’ll know it’s useful if you try it.

—————By Sketch tutorial knowledge

Command +3 displays the selected elements in the center of the screen.

 

Command + 0 preview the page in real pixel mode, that is, look at the design effect under 100% size.

 

9, layer alignment

Layer alignment is also a frequently used operation. When aligning directly with objects, Sketch aligns the layer to the outermost layer of all selected objects. But how do you want to map the layer to specific objects?
For example, if you want the two elements in the following figure to be centered with a square as a reference, you should first use the lock button in the layer list or use Shift-Command-L to lock the layer, and then perform the alignment operation.

10, set the default value of sketch shape.

When sketch is first used, a new rectangle is created, each time it brings its own edge tracing, and then manually closes the edge tracing, which is troublesome. Can this default value be changed? Certainly.
Operations: First create a rectangle without edges, then select layer-style-set style as default (this function was previously in Edit and was updated and merged into style). Get it done. Next time you create a new shape, you will use the style you just set as the default value.

In addition to that, the article mentioned in the small skills, must try their own ah, otherwise you have read or you do not need, do not believe it? Then try it.

—————By Sketch tutorial knowledge

 

Related reading:

Gal Shir, the popular illustrator of micro-blog, takes you to understand the birth process of these works.\

A summary of the basic knowledge of the ultra comprehensive navigation design

Half A Year For Two App, I Summed Up The 6 Practical Experiences.