Lesson 10. Alignment. New primitives. Export

Module 2. Figma basics.
Free UX / UI design course for a newcomer

In the next part on the basics of Figma (already the fourth), we will learn how to align objects and distribute them in space. We will explore new shapes: ellipse, polygon, star. They are not as simple as they seem at first glance.

We will learn how to export frames to graphic files. This will allow us to share them with the client or developers later on. We will review popular image formats and understand in which cases to use them.

Alignment of one object relative to another

Alignment can also be done manually, but to improve efficiency, Figma provides special tools. To align objects, you need to:

  • Select both layers with objects. Note that the smaller object will align relative to the larger one if edge alignment (left, right, top, bottom) is applied. If center alignment (horizontally or vertically) is used, both objects may shift;
  • On the right panel, click on one of the alignment types. They are located at the top of the properties panel right under the Design tab. Let's consider each type of alignment and hotkeys:

    • Align Left – align to the left edge of the larger object. Option + A on MacOS. Alt + A on Windows;
    • Align Horizontal Centers – align horizontally to the center of the larger object. Option + H on MacOS. Alt + H on Windows;
    • Align Right – align to the right relative to the larger object. Option + D on MacOS. Alt + D on Windows;
    • Align Top – align to the top edge of the larger object. Option + W on MacOS. Alt + W on Windows;
    • Align Vertical Centers – align to the top edge of the larger object. Option + W on MacOS. Alt + W on Windows;
    • Align Bottom – align to the bottom edge of the larger object. Option + S on MacOS. Alt + S on Windows.
  • Note that the hotkeys for alignment are set in the same order as the arrow buttons. Another analogy for gamers – the alignment hotkeys are similar to movement in any 3D shooter, for example, Counter-Strike (AWSD).
  • Immediately after clicking, the objects will be instantly moved to the new location, and the coordinates will change. You can continue to click on other types of alignment, observing how the position updates.

Aligning multiple objects relative to another

The sequence of actions here is the same as in the previous case, but you need to select more than two objects. The alignment will be relative to the largest.

Note that aligned objects change their position relative to each other (since they are of different sizes). To avoid this, it is necessary to group the objects beforehand, as shown in the next section.

Alignment of the group relative to the object while maintaining position

It sounds contradictory, but after reviewing the instructions below, everything will fall into place.

So, the previous grouping allows you to maintain the relative positions of the aligned layers, which sometimes comes in handy. Otherwise, without grouping, when applying multiple alignments, all objects can get mixed up into a pile, which is what happened at the beginning of the video.

Alignment of Separate Objects

If the selected objects are located separately (without a large object that overlaps in size with the others, as in the previous examples), the alignment will occur relative to the boundaries of all selected objects. In practice, it looks like this (after each alignment, the last action is undone using Cmd+Z or Ctrl+Z):

Aligning a single object within a frame

If only one object is highlighted within the frame, it will be aligned outside the last one:

As you can see, depending on the context, the alignment tool works differently. Make sure you understand how objects will be aligned based on the situation. Get used to the hotkeys.

Uniform Distribution

Another very useful tool for arranging objects. Imagine a situation: you have several rectangles (buttons), but the distances between them are different, and you need them to be the same. Of course, you can arrange everything yourself, but the Tidy Up tool will do it for you. To do this, select all objects and press Ctrl+Alt+T on macOS or Ctrl+Alt+Shift+T on Windows. Click on the appeared field, and with the arrow keys (up and down) adjust the appropriate distance between the elements or enter a value and press Enter.


There are two similar tools – Distribute Vertical Spacing (Ctrl+Alt+V on macOS and Ctrl+Alt+Shift+V on Windows) and Distribute Horizontal Spacing (Ctrl+Alt+H on macOS and Ctrl+Alt+Shift+H on Windows). They have two differences:

  1. They distribute the selected objects within their boundaries, meaning that after redistributing the objects, they will occupy the same space as before the operation was applied. The Tidy Up tool, on the other hand, does not take into account how much space the objects will occupy in their new positions;
  2. You need to specify the direction in which to distribute the objects (horizontally or vertically). Tidy Up does this automatically.

In practice, it looks like this:


Don't forget that distribution can be used together with alignment. This allows for quickly organizing a large number of inaccurately placed objects.

New Primitives

In the toolbar, we still have a few unfamiliar shapes left. Let's figure out how to use them if you haven't done so yet. I'm sure you didn't even suspect that the ellipse has so many possibilities.

Ellipse

Creating an ellipse is simple, just use the hotkey O (or select the corresponding item in the tools menu) and then do everything the same as with a rectangle. Next comes the most interesting part:

  • If you hover over the newly created circle, you will notice that a white dot appears to the right, which you can drag. If you do this, the circle will transform into a arc;
  • Immediately after transforming into an arc, three more dots will appear: Start – the starting point, Sweep – the sweep, which defines the length of the arc, Ratio – the ratio of the inner radius of the arc to the outer, which determines the thickness of the arc.
  • These parameters are also available in the properties panel, where you can enter precise values from the keyboard;
  • A useful feature may be the rounding radius, which will soften the ends. It is located in the same place on the right panel as in the case of a rectangle.

Polygon

Allows you to create polygons from triangles to polygons with an unlimited number of vertices (most often up to 10). I will show you how to use it to create a figure with relatively blurred edges. Such things are often used for backgrounds in design. They are also called blobs. There is no hotkey, so you will have to use the tools menu. As with the ellipse, after creation and hovering, two circles will appear that correspond to:

  • Count – number of vertices;
  • Radius – radius of vertex rounding.

Star

This shape also does not have a hotkey. Its application boundaries are quite limited, but not trivial. The shape as in the video can be used as a background for a discount badge. Let's get acquainted with the circles that correspond to the parameters:

  • Count – the number of rays of the star;
  • Ratio – the ratio between the indentations and the protrusions of the ray. The smaller the value, the longer the rays;
  • Radius – the radius of rounding.

Export Design

In your work, you often need to convert a design inside Figma into an image that can be sent as a file. There are different formats for different purposes. Here are some examples when this will be necessary:

  • Forward several screens in Png format files without loss of quality to the client via email or in messengers;
  • Send icons in Svg vector format to the developer;
  • Provide product photos in Jpg format files.

The process of converting a design element in Figma into an image file is called exporting. You can export any layer or frame either separately or all marked elements for export at once. Here’s how it’s done.

How to spot the layer for export and save it to a file

  1. Select a frame, group, or layer for export;
  2. On the properties panel on the right, click + (plus) next to the Export label;
  3. Options for export will appear;
  4. The far-right menu indicates the format in which the file will be saved. Make sure to select PNG – this is a lossless format;
  5. Click the Export name of the selected layer, button located under the settings. The text on the button will correspond to the name of the selected layer;
  6. A window will appear where you specify where and under what name to save the graphic file. By default, the name is taken from the name of the selected layer, but this can be changed. Don’t think about changing the file format at this stage (three characters after the dot) – it’s too late. If necessary, click Cancel and change the format using the right dropdown menu;
  7. Click the Save. button. The file selection window will disappear. Done! The image has been saved to the specified location and file. Now you can send it to the client for approval or to me as homework

PNG Format

PNG (Portable Network Graphics) – a raster format without loss of quality. It allows for an accurate representation of each pixel of the original image. In other words, the recipient will see it without distortions. Always export the design in Png format for the client (if for some reason they cannot view it directly in Figma) and in all other cases.

Jpg Format

Jpg (Jpeg, Joint Photographic Experts Group) – raster format for photographs with lossy quality. It invisibly distorts the original image using the characteristics of human perception. It allows for significant savings on file size. Never use Jpg for exporting design.

Svg Format

Svg (Scalable Vector Graphics) – vector graphic format. Supports both static and animated images. Figma currently exports only statically, although it supports animations. Takes up very little space. Always use for exporting icons and illustrations with a small number of colors (infographics, diagrams, tables with non-trivial layouts). Note that the introductory image in each lesson was exported in this format. To verify this, simply zoom in on the page – there will be no loss of quality, and you will not see pixelation.

PDF Format

Pdf (Portable Document Format) – format of electronic documents. Allows you to preserve the design in vector form, but this is not its primary purpose. Often used for creating reports and presentations for investors. Unfortunately, Figma generates very large files in this format. Never use Pdf for exporting design.

Each format has its own features and unique capabilities. For example, Png allows you to specify areas with transparency, while Jpg cannot do that. But I will gradually introduce you to this in the next lessons, as the material covered is sufficient for now.

Homework

Due to a large influx of people wanting to take the course, I am making homework checks paid. $30 (at the current exchange rate), I will transfer 10% to the Armed Forces of Ukraine. For one donation, I will check homework for all lessons.

For details, please write in the direct messages on Instagram @frusia.pro
The course and lessons remain free of charge.

Homework is no longer checked for citizens of Russia.


  1. Create a new file in Figma. For each task, create a separate page. Here is the first task. Repeat the drawing below by sketching all the shapes along with text labels in separate frames, using the tools you know. Then export each shape with its name, frames of the same size, to separate png files. After that, import the newly created png files back into Figma. Arrange them in a separate frame. As a result, you should have three frames on the page from top to bottom: 1) with the image of the task itself (reference); 2) with the sketched shapes (with names under each shape); 3) with the sketched shapes in raster format that you imported. All three frames should be as similar as possible.

    Shapes for the first task from the 4th part of the basics of Figma lessons

  2. Second task. Choose any object from the previous task and sketch how the properties panel of Figma currently looks (it is located on the right) in a separate frame. Then change the colors to match the dark theme of the interface. See an example of the dark interface theme below.

    Example of the dark interface

  3. Third task. Go to Behance or Awwwards (google it if you forgot what it is) and find two website designs. Create a new design using the structure from one site, and the colors and illustrations from the other. This is a very challenging task, considering that you know nothing about the basics of design, but at least give it a try.

For review, please send a link to the file with editing rights. To grant the appropriate rights, read the previous lesson. Let's not forget that each task must be completed on a separate page. Carefully read each point, there are many nuances. Use the new techniques from this lesson. Don't forget about alignment, which will come in handy.

Conclusions

You continue to move forward in mastering Figma. A few more lessons and we will move on to studying the fundamentals of design. By that time, you will already be well-versed in one of the best tools and it will be not just theory in a vacuum, but practical tasks.

Try to complete the homework from this lesson, it will give you a lot of experience. And this is the most important thing in our work.

Follow me on Instagram @frusia.pro and stay updated on announcements for new lessons, watch homework checks in stories, ask questions, and you can also look forward to a variety of useful posts about design.

Take quiz

To pass the lesson and check your knowledge, you need to correctly answer 80% of the questions from the quiz. To do so, you need to login and enroll to the course or signup, if you haven't done so yet.

Take quiz