> ## Documentation Index
> Fetch the complete documentation index at: https://wonder.design/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Fills, borders and effects

> Style a layer with opacity, blend modes, corner radius, fills, borders, outlines, shadows, filters and masks, and recolor a whole selection at once.

The styling sections of the properties panel set how a layer looks: its fills, borders, shadows, filters and masks. Each one is a CSS property, so the layer looks the same in code.

**Before you start** · Web and desktop · Free plan

Frames and text layers get every section on this page. SVGs get a **Colors** section instead of fills and have no border, shadow, filter or mask. An image on the canvas is a frame with an image fill, so it gets the frame sections.

Fills, shadows, filters and masks can each hold several entries. Click **+** in a section's header (or click the heading of an empty section) to add one, drag entries to reorder them, click the eye to hide one, and click the remove button to delete it.

## Set opacity, blend mode and corner radius

The **Appearance** section holds:

* **Opacity**: from 0 to 100%.
* **Blend mode**: the button in the section header. Hover an option to preview it on the canvas. The options are **Normal**, **Darken**, **Multiply**, **Plus darker**, **Color burn**, **Lighten**, **Screen**, **Plus lighter**, **Color dodge**, **Overlay**, **Soft light**, **Hard light**, **Difference**, **Exclusion**, **Hue**, **Saturation**, **Color** and **Luminosity**.
* **Corner radius**: rounds the corners. Click **All corners** to set **Top left radius**, **Top right radius**, **Bottom right radius** and **Bottom left radius** one by one.
* **Clip content**: hides any part of the children that falls outside the layer.

The eye in the header hides or shows the layer.

## Add a fill

The **Background Fill** section holds a layer's fills. Text layers also have **Text Fill**, which colors the text itself.

1. Click **Add fill**.
2. Click the swatch to open the fill picker.
3. Pick a fill type: **Solid**, **Gradient** or **Image**. Text Fill has Solid and Gradient only.

A layer can have several fills stacked on top of each other, like CSS backgrounds. The first background fill you add is white; later ones are black at 20% so you can see the one underneath.

To turn a fill into an animated shader, click **Shader mode** in the section header. See [Shaders](https://wonder.design/docs/shaders.md).

## Edit a gradient

In the fill picker, choose **Gradient**, then pick **Linear**, **Radial** or **Conic** from the **Gradient type** menu.

* Click the stop slider to add a stop. Right-click a stop for **Delete stop** and **Redistribute stops**.
* Set each stop's color and **Stop position**, or click **Add Stop**.
* **Rotate 90°** and **Reverse gradient stops** sit next to the type menu.
* For **Radial**, set **Radial shape** (**Circle** or **Ellipse**) and **Radial extent**.

While the picker is open, with one layer selected, the gradient's handles appear on the canvas:

* **Linear**: drag the end points to change the direction and length. Hover just outside an end point and drag to rotate; hold <kbd>⇧</kbd> to snap to 15°.
* **Conic**: drag the spoke to change the angle.
* **Radial**: drag the handles to change the size.
* Drag a stop's dot to move it, or click the line to add a stop.

## Add an image fill

1. In the fill picker, choose **Image**.
2. Click **Upload image** (PNG, JPEG, SVG, GIF or WebP), drop a file on the picker, or click **Select on canvas** and click a layer.
3. Pick how the image fits with **Image fit**:

| Option | What it does |
| - | - |
| **Fill** | Stretches the image to the layer's size. |
| **Cover** | Covers the whole layer, cropping what doesn't fit. This is the default. |
| **Contain** | Shows the whole image, leaving space if the shapes differ. |
| **None** | Shows the image at its own size. |

To swap the image, hover it in the picker and click **Replace**.

## Pick a color

The color picker opens from any color swatch.

* Switch between **sRGB** and **Display P3** at the top. In sRGB, the format menu offers **Hex**, **RGB**, **HSL** and **OKLCH**; in Display P3, **Display P3** and **OKLCH**.
* Type the color's opacity in the **A** field, or use the opacity slider.
* **Copy color value** copies the color as text.
* The **Variables** tab lists your color variables. See [Variables](https://wonder.design/docs/variables.md).

To pick a color from the screen, click **Pick color**, or press <kbd>I</kbd>. Pressing <kbd>I</kbd> on the canvas sets the selected layer's fill (or a text layer's color) to the color you click. With nothing selected, it copies the color's hex to your clipboard.

The eyedropper uses your browser's eyedropper. In browsers without one, such as Safari and Firefox, it does nothing; use the desktop app or Chrome.

## Add a border or an outline

**Border** draws a line along the layer's edges.

1. Click **Add border**. It starts as a 1 px black solid line.
2. Set **Border width**, the color, and the style in the section header: **Solid**, **Dashed** or **Dotted**.
3. To give each side its own width or color, click **Individual sides** and pick **Top**, **Right**, **Bottom** or **Left** under **Border side**.

**Outline** draws a line around all four sides of the layer, like CSS `outline`. Click **Add outline**, then set **Outline width**, the color, the style and **Outline offset**, which moves the line further out (or in, with a negative value). A layer has one outline.

<kbd>⇧</kbd> <kbd>X</kbd> (**Swap fill and border**) swaps the two colors, <kbd>⌥</kbd> <kbd>/</kbd> runs **Remove fill**, and <kbd>⇧</kbd> <kbd>/</kbd> runs **Remove border**.

## Add a shadow

1. In the **Shadow** section, click **Add shadow**.
2. Click the shadow to open its settings and pick a type:
   * **Box**: a shadow around the layer's box. Check **Inner shadow** to draw it inside the edges.
   * **Drop**: a shadow that follows the shape of what's visible, including transparent areas of an image.
   * **Text**: a shadow behind the letters, for selections with text.
3. Drag in the preview to set the offset, or type **X**, **Y**, **Blur** and, for box shadows, **Spread**.

New shadows start 4 px down with a 4 px blur, in black at 25%.

## Add filters and backdrop blur

**Filters** change how a layer is drawn. Click **Add filter**, then pick a type: **Blur**, **Brightness**, **Contrast**, **Grayscale**, **Hue rotation**, **Invert**, **Saturate** or **Sepia**. Hover a type to preview it.

Each type is listed twice in the menu:

* Under **Layer**, it applies to the layer and its content.
* Under **Backdrop**, it applies to whatever is behind the layer.

For a frosted-glass effect, add a filter, choose **Blur** under **Backdrop**, and give the layer a semi-transparent fill.

## Masks

A mask fades or cuts out parts of a layer. In the **Mask** section, click **Add mask**. The new mask fades the layer out toward the bottom.

Click the mask to change it:

* **Mask type**: **Linear**, **Radial** or **Conic**.
* The fade slider works like a gradient's: click to add a stop, set each stop's **Alpha**, and right-click a stop to delete it.
* **Rotation** turns a linear or conic mask.
* **Invert** swaps what shows and what's hidden.
* **Advanced** has **Mode**, **Repeat**, **Composite** (with two or more masks), **Position** and **Size**.

While the mask is open, its handles appear on the canvas, like a gradient's.

### Use a layer as a mask

To clip layers to the shape of another one:

1. Select the layers and the frame you want as the mask. They must share a parent, the mask must be the bottom-most of them, and none can be rotated.
2. Right-click and choose **Use as mask**, or run it from the command menu (<kbd>⌘</kbd> <kbd>K</kbd>).

The layers above are clipped to the bottom frame's shape, rounded corners included, or to its image. Right-click a masked layer to **Detach mask as shape** (turn the mask back into a layer) or **Remove mask**.

## Recolor a selection

The **Selection colors** section lists every color used inside the selection: fills, gradient stops, text colors, borders, outlines, shadows and colors inside SVGs. It shows when you select several layers, or a frame whose children have colors.

* Change a color there to change it everywhere in the selection at once. Each change is one undo step.
* Bind it to a color variable from the picker's **Variables** tab.
* Click **Select layers with this color** to select the layers that use it.

After ten colors, click **Show all colors** to see the rest.

## If something goes wrong

* **I can't find the border, shadow or filter sections.** They're for frames and text. An SVG has a **Colors** section instead. On a component instance, only opacity and visibility can be changed here.
* **Add fill is greyed out.** The fill is in shader mode. Click **Disable shader** in the section header first.
* **Pressing I does nothing.** Your browser has no eyedropper. Use the desktop app or a Chromium browser such as Chrome.
* **Use as mask isn't in the menu.** Select at least two layers with the same parent, none rotated, with a frame at the bottom.
* **Gradient handles don't show on the canvas.** Select only one layer, open its gradient in the fill picker, and zoom in until the layer is at least 48 px on screen.

## Related

* [Layout](https://wonder.design/docs/layout.md)
* [Size and position](https://wonder.design/docs/size-and-position.md)
* [Variables](https://wonder.design/docs/variables.md)
* [Shaders](https://wonder.design/docs/shaders.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.