Rectangle
A rectangle drawn on the page, with a fill, an outline and optional rounded corners. It holds no data, but rules can change its colours by value.
This page is generated from the product’s own definitions, so it is always current. To change it, change the product.
A rectangle drawn on the page, with a fill, an outline and optional rounded corners. It holds no data, but rules can change its colours by value.
When to use it. Use for panels, backgrounds and colour blocks; pick an Ellipse for round shapes or a Polygon for other straight-sided outlines.
Slots
This kind has no data slots: it shows what it is given in the editor.
Channels
| Channel | Label | Value | Rules | Brand tokens | What it sets |
|---|---|---|---|---|---|
shape.cornerRadius | Corner radius | number | yes | no | How rounded a rectangle's corners are, as a radius in points. Default 0, square corners. |
shape.fill | Fill | color | yes | no | Colour inside the shape. A fixed fill may also be a gradient; colours set by rules are always solid. Default black. |
shape.opacity | Opacity | number | yes | no | How see-through the whole shape is, from 0 (invisible) to 1 (solid). Default 1. |
shape.stroke | Stroke | color | yes | no | Colour of the shape's outline, or of the line itself. Default black. |
shape.strokeWidth | Stroke width | number | yes | no | Thickness of the shape's outline, or of the line itself, in points. 0 draws no outline. Default 0. |
See channels for every channel, rule kinds for what a rule can be, and operations for the operations that create and change this kind.