Groups

Group related shapes inside square brackets to draw a labelled container. A group has a name, a body, and a label after the closing bracket:

A labelled group

Open in editor

Region: [
    A1: box "service" with .nw at (120, 100)
] "Region Alpha" fill #1d4ed8

Groups nest, and each group carries its own label and styling. Names inside a group can be referenced from outside it — for example to draw a line between two regions:

Nested groups

Open in editor

Campus: [
    RegionA: [
        A1: box "a1"
    ] "Region Alpha" fill #1d4ed8
    RegionB: [
        B1: box "b1"
    ] "Region Beta" fill #7c3aed
] "Campus Services" fill #0f172a textsize 16 bold
L1: line from RegionA to RegionB

Next: let SheepText place shapes for you with Automatic layout.