All layers except text layers can contain as many borders as you want. These can all have various thicknesses, colors, and blend modes.
The border position can be adjusted on closed shape, by either being placed on the inside, center, or outside of the shape’s outline. If you apply a border onto an open path, then the only available option would be center.
As with the various Fill options, you can also choose to style your borders with a single solid color, or from a variety of gradients.
- Solid Fill
- Linear Gradient
- Radial Gradient
- Angular Gradient
Note: You can quickly toggle the visibility of all borders from a layer by pressing the B key.
You can add more customization and options to all the borders in a layer by clicking the settings button in the Borders title. Additional options will reveal under the borders.
Ends and Joins
Border ends are visible on line layers, and open paths. Here you have the ability to select whether a line should have a butt cap, round cap, or a projecting cap.
- Butt cap: This is the default option that’ll draw the border right to the vector point.
- Round cap: Creates a rounded, semi-circular end to a path that extends past the vector point.
- Projecting cap: Similar to the rounded cap, but with a straight edges.
Joins will be visible on both open and closed paths that have three or more points (to create a corner). They will alter how the corners of a shape should render.
- Miter join: This will simply create an angled, or pointy join. The default setting.
- Round join: Creates a rounded corner for the border. The radius is relative to the border thickness.
- Bevel join: This will create a chamfered edge on the border corner.
In addition to choosing the border ends for line layers, you can also select arrowheads for the start, or the end of the path. You can switch the order in which the appear by choosing Layer › Path › Reverse Order in the menu.
There are seven different arrowheads or markers in Sketch with slight variations depending on your end and join selection
To the right of the Start and End arrow selection, there are two text fields for configuring dashed lines.
The dash value will determine how long the border should be, whilst the gap value specifies the distance between the dashes. When applying a dash value, the gap value will be the same until it is edited. To reset this, so the gap value will always be the same as the dash, just delete it.
To create a dotted line, first set the end type to use a round cap, and then set the dash value to
0. Adjusting the gap distance will change the look of your dotted border.