Skip to main content

Style connectors

The default connector style is a solid line with an arrow head at the target end.

Select a connector, then use the options and advanced properties in the Style tab, or the connector style tools in the toolbar to change the connector's appearance.

The Style tab in the format panel and the connector tools in the tool bar let you change the style of a selected connector in draw.io

Tip: Copy and paste connector styles using the two buttons in the Style tab of the format panel - Copy Style and Paste Style.

Line style - Styles the 'corners' where a connector changes direction. Choose between sharp (default), rounded, or curved.
Style your connector using the options in the Style tab in the format panel on the right in draw.io

The labels of a curved connector sit on the curve. This applies to the curved line style and the curved waypoints.

Note: Connectors that were curved before keep their label positions. To move their labels onto the curve, select rounded as the Line style, then select curved again.

Colour - Change the colour of the connector and its 'arrow' heads with the colour palette. The default is black. Some Connection styles (below) can be filled and use gradients.
Style your connector using the options in the Style tab in the format panel on the right in draw.io Choose a colour from the default or larger colour palette, or enter your own hex colour code

Connection - Turn the default single line into a double line with no arrows (link) or customisable arrow shapes, or a filled line, pipe or wire (dotted line over a solid line). The simple arrow is a straight connection between the two shapes with no waypoints. The tapered arrow narrows from its source to its target. Set the start and end widths in Arrange > Arrow or drag its two yellow width handles. The tapered arrow heads will automatically resize to be wider than the line. Alternatively, use the Connection menu to change the connection type in the toolbar, or via in the floating toolbar when you select a connector.
Style your connector using the options in the Style tab in the format panel on the right in draw.io

Pattern - Change the default solid line's pattern to various dashed or dotted patterns or set your own pattern with custom.
Style your connector using the options in the Style tab in the format panel on the right in draw.io

Thickness - Change the thickness of the connector line. The default is 1pt.
Style your connector using the options in the Style tab in the format panel on the right in draw.io

Waypoints - Set predefined connector waypoints to change the path of the connector between two shapes. Choose between the default straight (no waypoints), orthogonal (with right-angled bends), horizontal or vertical for tree diagrams, two isometric variants, curved,entity relation. Choose Auto-route around shapes to automatically re-path the connector around shapes.
Style your connector using the options in the Style tab in the format panel on the right in draw.io

Source and target 'arrow' heads - Select a connector head from the very large drop down list. There are many different types of arrow heads, as well as symbols for UML and technical diagrams. Choose None for just a plain line. Alternatively, use the arrow head style in the connector tool that will appear when you select a connector for a more condensed arrow picker.
Style your connector using the options in the Style tab in the format panel on the right in draw.io

Line end and Line start - Set the Size of the arrow head or symbol, and its Offset from the shape outline. A negative Offset will position the end of the connector inside the shape outline.
Style your connector using the options in the Style tab in the format panel on the right in draw.io

Line jumps - Choose how overlapping connectors should be displayed. Choose between the default overlapped (none), with an arc, a gap or a sharp bend
Style your connector using the options in the Style tab in the format panel on the right in draw.io

Opacity - Change the Opacity value to allow shapes underneath the selected connector show through.
Style your connector using the options in the Style tab in the format panel on the right in draw.io

Shadow and Sketch - Add a Shadow to your connector, or make your connector look roughly hand-drawn with Sketch. As Safari cannot apply shadows to connectors, this option will be greyed out and the shadow=1 connector style property will be ignored.
Style your connector using the options in the Style tab in the format panel on the right in draw.io

Orthogonal Ends - Ensure the ends of your connectors attach at right angles to the shape boundary. This effect is not available when using orthogonal or isometric connectors. Orthogonal connectors always connect at right angles, and isometric connectors always attach using a 30 degree angle through the centre of the shape.
Style your connector using the options in the Style tab in the format panel on the right in draw.io

Flow Animation - Animate the connector to show the direction of the flow.
Animate connectors in draw.io via the Style tab

Follow terminals - Moves the waypoints of the connector along with the connected shapes when you move, resize or arrange them, so the connector keeps its path.
Enable the Follow Terminals checkbox to move the waypoints of a connector when you move a connected shape

Additional connector properties

Edit the values in the property list at the bottom of the Style tab to change additional connector style options. Search for a property if you know part of its name. For example: Search for flow in the shape Property section, and change the Flow Timing to change the animation style.
Set a variety of flow timings on animated connectors in draw.io via the connector Properties in the Style tab

Set a default connector style​

Style a connector on the drawing canvas first, then click Set as Default Style in the Style tab of the format panel.
Set a default shape or connector style in draw.io

You can see if a default connector style has been set by hovering over a connector in the shape libraries.
Hover over a connector in the shape libraries to see it styled with the default style

Set a default connector style for a specific shape​

Specify that a source shape can have a different default connection style than the global default.

  1. Select a connector that is attached to a shape (source).
  2. Click Use for New Connections from Source in the Style tab of the format panel or in the right-click menu.
    Set a default connection style on a source shape instead of a global connector style

New connectors that you draw from the source shape of the selected connector will use this style from now on. To remove the default connector style from that shape, select the shape and choose Clear Style for New Connections.
When a shape has a connector style set (that isn't the global default), in the Style tab click Clear Style for New Connections to reset it to the global default

Manually edit a connector's style​

Use key=value pairs to define the connector (edge) style in the diagram editor configuration.

  1. Right click on a connector, then select Edit Style.
  2. Edit the style definition, then click Apply to save your changes.
    Manually style your connector using key=value pairs in the Edit Style dialog

Learn how to set a default connector and shape styles