Open Setto

Rectangle

Draw a filled box with adjustable corners and a stroke on any side.

Shortcut
R
Where
Toolbar, shapes button
Makes
A rectangle (named Rect in the layers panel)

The Rectangle tool draws a box filled with the theme’s accent color, with square corners and no stroke. Use it for card backgrounds, rules, color blocks and buttons. Its Color section below is the reference for the stroke controls every shape shares.

Drawing a rectangle

Press R (or choose Rectangle from the shapes button) and drag. Hold ⇧ to draw a square, or ⌥ to draw from the center. A click makes a 320 px square. Width and height round to whole pixels, with a minimum of 1 px, so you can drag a box 1 or 2 px tall for a rule. See Tools overview for what every drawing tool shares.

The Rectangle tool settings set the next rectangle’s Corner radius, Fill, Stroke and Weight (0.1 to 100 px, default 1). Set them before you draw a run of matching cards.

Inspector

A selected rectangle has Object, Layout and Color sections. Layout matters only once the rectangle holds other layers. See Groups and layout.

Corners

Corner Radius
Number, per corner0 to half the shorter sideDefault 0

Set all four corners together, or each one separately. The radius stops at half the shorter side, where a wide rectangle has fully round ends.

Corner shape
MenuDefault Round

The button in the Corner Radius header. Choose Round, Bevel (a straight cut), Notch (a square step), Scoop (curved inward) or Squircle (a smoother round). Any shape other than Round is named beside the label. At a radius of 0, the shape has no effect. See Corners.

Color

Fill
ColorDefault The theme's accent color

A theme color, a custom color, a gradient, or None. You can hide the fill without removing it. See Fill and stroke.

Stroke
ColorDefault None

Choosing a stroke adds a 1 px stroke and shows the controls below. You can hide the stroke without removing it.

Weight
Number0.1 to 1000 pxDefault 1
Stroke sides
Four togglesDefault All four sides

The picker attached to Weight chooses which sides are stroked. One side always stays on, so to remove the stroke entirely, set Stroke to None.

Alignment
Toggle groupDefault Stroke Inside

Stroke Inside keeps the box’s size, Stroke Center straddles the edge, and Stroke Outside draws around the box.

Cap
MenuDefault Round

The shape of the dash ends: Butt, Round or Square.

Join
MenuDefault Round

Disabled for a rectangle, whose corners come from Corner Radius and Corner shape.

Dash
NumberpxDefault Empty (solid)

The length of each dash. Leave it empty or set 0 for a solid stroke.

Gap
NumberpxDefault Empty (same as Dash)
Offset
NumberpxDefault 0

Slides the dash pattern along the outline. A negative value slides it the other way.

ExampleA card with one stroked side

Draw a rectangle behind a project description in a portfolio. Give it a light fill and a Stroke of Weight 4. Then turn off the top, right and bottom sides in the sides picker, leaving a single bar on the left edge.

  1. A stroke on all four sides
  2. Sides picker: left edge only

Editing the points

Double-click a rectangle to show its four corners. Drag points so they still form a rectangle, and it resizes and keeps its corner and stroke controls. For example, drag both points of a side to move that side. Any other edit turns it into a path, which loses Corner Radius and the sides picker. ⌘Z brings the rectangle back. See Editing points.

Combining with other features

  • Containing layers. A rectangle is the same kind of layer as a group. Once it holds other layers, Clip contents appears and Layout arranges them.
  • Boolean operations. Only an empty rectangle can take part. Inside a boolean shape, its own fill and stroke are not drawn and its Color section is hidden.
  • Scale tool. Multiplies corner radius, stroke weight and dashes, which resizing with Move leaves alone.
  • Animation. You can’t keyframe corner radius, fill or stroke weight, though you can keyframe dash offset. The Draw build is for paths and lines only.

Limits

  • The Rectangle doesn’t take in the layers it is drawn around. Use the Group tool for that.
Esc

Type to search every page. Try “cloner”, “padding” or “export”.

↑↓ Move↵ Open