Mastering Layer Masks in Figma: A Comprehensive Guide

Layer masks are a powerful tool in Figma that can be used to hide and reveal specific parts of a layer. Using layer masks allows designers to control the visibility of different parts of a layer without the need to permanently alter or delete them. Think of using a layer mask as seeing through a window. For example, a designer might use a circle as a layer mask to reveal only the face of a person in a photograph to create an avatar. You can also think of a layer mask as a cookie cutter that can cut different shapes out of layers.

In this article, we will explore the benefits of using layer masks in Figma, how they work, and a step-by-step guide for creating them. Layer masks work by simply hiding portions of a layer. When a mask is applied to a layer, the content within the bounds of the layer mask will remain visible, while the overflow content will be hidden. When you use a layer mask, a mask object will be created in the Layers panel. The mask object is always positioned beneath the layers that it is masking with an arrow pointing upward beside the layers.

Getting started: creating a basic mask

To create a layer mask, start by adding the content you want to be masked. Next, add an object to act as the layer mask. Think about how you want to cut your content. With the mask object and content layers selected, click on the Use as mask button in the toolbar at the top. This will create a mask group in the Layers panel. The mask object will appear at the bottom of the group with an upwards arrow beside the layers being masked.

After the layer mask has been created, it might need a bit of adjustment to reveal the exact part of the content you want. By selecting the content layers, they can be resized or repositioned within the mask object. To add content to an existing mask group, simply select the layers and drag them into the group in the Layers panel. To unmask content, you must remove the mask object. With the mask object layer selected, click on the Use as mask button in the toolbar. You can also use the same keyboard shortcut used to mask.

mask creation diagram (circle as mask)

Common practices and tips

A common mistake when using layer masks is not applying a fill to the mask object. In order for the masked content to appear, the mask object must have a fill greater than 0 percent. Transparency plays a main factor in a mask’s appearance. A layer mask’s alpha channel, or level of transparency, is directly correlated with how much of the masked content is revealed. Another technique to try is adding a stroke around the mask object. Text can also be used as a layer mask. Simply create a mask group with text as the mask object. The text remains editable even as a mask object.

text mask example

Gradients, blend modes, and animation

Gradients can be a great way to add visual appeal to your designs. Create a gradient by selecting one of the gradient options in the fill dropdown. With the gradient fill selected, set different colors using the color picker for each point in the slider. You can add additional points along the slider to create a more complex gradient. With the gradient now overlayed on top of your masked content, play around with the different Blend modes to create different visual outcomes.

Layer masks are such a versatile tool. Not only can they be used to create complex designs but also smart animations as well. Next, add in a circle, which will act as the mask object. Make the circle small and place it somewhere away from the faces. Move the circle layer below the happy face and create a mask layer. The happy face will disappear since it is not within the bounds of the circle. Now that we have our first frame set up, duplicate the frame by dragging it while holding down the ⌥ Option key on Mac or Alt key on Windows. Now it’s time to create our prototype. Select the Prototype tab in the right side panel and connect the two frames. Select Smart animate under the Animation dropdown. With Smart animate, the mask object will animate from a small circle into a larger one, revealing the happy face within its mask.

Figma tutorial: Masks

Types of masks

All masks in Figma support alpha channels. When working with alpha masks, masks are applied based on the opacity of the mask. The higher the opacity, the more that is revealed. Vector masks use shape outlines as masks, ignoring the translucency of the mask's fill or stroke. Luminance masks use brightness levels to control what parts of a layer are visible; the darker the area, the less that is revealed. By default, the mask type is set to Alpha. To change it, select the layer being used as a mask and open the dropdown in the Mask section of the right sidebar. Hover over any option to preview it on the canvas.

Resizing and moving masks: Masks and the layers they cover operate independently, giving you flexibility in adjusting your design. If you move or resize a mask, the layers beneath it won't be disturbed. The same is true if you adjust the masked layers, and the mask stays put. Think of them as siblings rather than parent and child. They don’t automatically influence each other like frames or groups.

alpha vs luminance mask comparison

Practical examples

Avatar mask: Masks are great for creating profile pictures in social media apps, user icons in dashboards, or character images in games. Steps: select a shape for the avatar, place a photo in front of the mask, select both and click Use as Mask. Resize or reposition as needed to fit the image inside the mask's boundaries.

Text mask: Creating a text mask in Figma allows you to fill your text with images or patterns, adding a creative twist to your designs. Begin by typing out your text, adjust the font and size, place your image above the text layer, select both layers, and use Use as Mask. The text will now act as a mask, with the image visible only within the text outlines.

text mask example in UI

Masking for backgrounds and effects: You can apply gradients or patterns to masked areas, use blend modes to achieve glow or depth, and even nest masks to create layered text effects. This technique is invaluable in UX/UI design for avatars, call-to-action banners, and editorial visuals.

How masking fits into a non-destructive workflow

Masking is a non-destructive action: since no portion of masked layers is modified or deleted, you can always deactivate or adjust the mask later. When you use a layer as a mask, a mask object is created, which includes the mask and any layers it is masking. A mask object can be identified in the Layers section of the left navigation panel. Masks are positioned below masked layers on the z-axis.

non-destructive masking concept

Quick reference: five key steps to mask in Figma

  1. Place the content you want masked on the artboard.
  2. Add a shape or object to act as the mask and position it appropriately.
  3. Select both the mask and the content layers.
  4. Click Use as mask in the toolbar (or press the corresponding keyboard shortcut).
  5. Adjust the mask or content as needed to refine the reveal.

There are many ways to extend masking beyond basics: combining shapes, using text as masks, applying gradients, and exploring different mask types (Alpha, Vector, Luminance). As you practice, you’ll discover new creative workflows for avatars, UI elements, and decorative visuals.

masking workflow gallery

Additional considerations and examples

Remember: a mask can be both a fill and a stroke, and you can experiment with strokes around the mask object to emphasize edges. Text masking and gradient-filled masked text open up possibilities for bold typographic effects in interfaces. When working with photos, masking lets you crop content without altering the original image file, preserving flexibility for future edits.

Note: This article presents masking concepts and workflows as demonstrated in Figma; exact UI terms may vary slightly across updates.
text mask with gradient

In summary, layer masks in Figma offer a versatile, non-destructive way to control visibility, craft precise reveals, and create dynamic designs ranging from avatars to interactive text effects.

tags: #how #to #mask #in #figma