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
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.
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
A theme color, a custom color, a gradient, or None. You can hide the fill without removing it. See Fill and stroke.
Choosing a stroke adds a 1 px stroke and shows the controls below. You can hide the stroke without removing it.
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.
Stroke Inside keeps the box’s size, Stroke Center straddles the edge, and Stroke Outside draws around the box.
The shape of the dash ends: Butt, Round or Square.
Disabled for a rectangle, whose corners come from Corner Radius and Corner shape.
The length of each dash. Leave it empty or set 0 for a solid stroke.
Slides the dash pattern along the outline. A negative value slides it the other way.
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.
- A stroke on all four sides
- 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.