New in Sketch — Independent borders, selection colors, and more Learn more

Skip Navigation

Borders

4 min read

You can add as many borders as you like to your layers, frames, or graphics — each with different thicknesses, colors, and blurs.

Adding and removing borders

Select a layer, frame or graphic and head to the Borders section in the Style panel of the Inspector. Click circle.plus.semifilled to add a border. Set the thickness using the number field in the border row and choose a solid color or apply a gradient — see the color panel for more detail.

Add a border to any layer or frame from the Inspector

You can right-click a border row to copy, paste, duplicate, or remove it. Choose Copy Value to copy the border’s color in popular formats — see The Color Panel for more detail.

To remove a border, disable its toggle switch, then click trash.empty next to the Borders section title.

Reordering and swapping borders

If you have more than one border, you can drag borders to reorder them in the list. You can also swap all your fills and borders at once. Right-click the Borders section title and choose Swap Fills and Borders, or press X. See Swapping fills and borders for more detail on how it matches colors and styles during a swap.

You can quickly show or hide borders on any layer by pressing B.

Setting a border position

In the border row, click the position dropdown to choose where the border sits, whether that’s Inside border.position.inside, Center border.position.center, or Outside border.position.outside the shape’s outline. For open paths, you can only use Center.

A screenshot showing the different border position options in the Inspector in the Mac app

Choose to place your border Inside, Center, or Outside the layer’s outline.

Setting individual borders

Tutorial Practice Individual borders as you follow along
Open in Sketch

Use the sides dropdown to apply a border to a specific side

For frames, rectangular shapes, and image layers, click the sides dropdown in the border row, next to the position dropdown, and choose between All, Top, Bottom, Left, Right, or Custom.

  • Top, Bottom, Left, Right: The border applies its existing thickness and settings to that side only. This is useful when you want a border on just one side — for example, a bottom border to create a divider.

  • Custom: Set a different thickness for each side independently. You’ll see four fields below the border row — one per side. Set a side’s thickness to 0 to disable it.

Set a different thickness for each side using Custom mode

You can only use per-side borders on rectangular layers — frames, rectangles, and image layers. If you edit the path so it’s no longer rectangular, per-side borders revert to a single border around the entire path.

Customizing borders

Click the settings icon gear next to the Borders section title to open the border settings panel. Here you can set cap and join styles, add arrowheads, and create dashed lines.

The border settings panel in the Inspector

Use the Border Settings panel to control ends, joins, arrowheads, and dashes

These border settings also work on text layers — so you can apply caps, joins, and dashes to text borders too.

For line layers and open paths, you can choose from three types of border end:

  • Butt cap border.cap.butt: Draws the border exactly to the vector point
  • Round cap border.cap.round: Adds a rounded, semi-circular end that extends past the vector point
  • Projecting cap border.cap.projecting: Similar to the butt cap, but extends the border past the vector point with straight edges

For paths with corners, you can choose from three types of join:

  • Miter join border.join.miter: Creates a sharp corner by extending the edges of the border until they meet
  • Round join border.join.round: Creates a rounded corner with a radius relative to the border thickness
  • Bevel join border.join.bevel: Creates a flat corner by cutting off the tip of the join

For line layers, choose arrowheads for the start and end of the path using the drop-down menus in Points. To switch which end they appear on, choose Layer > Path > Reverse Order.

To create dashed lines, enter a value in the Dash field to set the length of the dashes. The Gap field sets the distance between dashes and automatically matches the dash length unless you set it to something different. To reset it, clear the Gap field.

To make dashes fall neatly on corners, check Center on corners. This adjusts the dash spacing so each corner gets a complete dash instead of a gap or partial dash — it’s enabled by default on new layers.

To create a dotted line, set the end type to a round cap border.cap.round, then set the dash value to 0. Adjusting the gap distance will change the look of your dotted border.

You can also copy and paste styles or reorder style properties across any style type.