# Space and shape

> The spacing scale, corners, borders, shadows, layout and the size of things a finger touches.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://design.docs.sypnia.com/guide/space-and-shape/

For agents: Space and shape tokens: space.* scale (4 px base: 1=4, 2=8, 3=12, 4=16, 6=24, 8=32, 12=48, 16=64), radius.* (none, control, card, sheet, round), border.* widths, shadow.* (elevation levels 0–3, or borders-only brands), size.touch (minimum 44 px), layout (breakpoints phone < 640, tablet 640–1024, desktop > 1024; content width; gutters 16 px on phone), density (comfortable or compact). Shape language = the guide's choices that make pieces feel like the brand: corner style, fills vs outlines, elevation vs borders, weight of lines.

## Spacing

Every gap in your app comes from one scale, built on 4 px:

| Token      | Value | Typical use                           |
| ---------- | ----- | ------------------------------------- |
| `space.1`  | 4 px  | between an icon and its label         |
| `space.2`  | 8 px  | inside small controls                 |
| `space.3`  | 12 px | between a label and its field         |
| `space.4`  | 16 px | inside cards; the phone's side margin |
| `space.6`  | 24 px | between groups                        |
| `space.8`  | 32 px | between sections on a phone           |
| `space.12` | 48 px | between sections on a desktop         |
| `space.16` | 64 px | around the top of a page              |

A brand can stretch the scale (more air, or less), never add values outside it one by one.

## Shape language

The shape of things is what makes two brands feel different even with the same layout. The guide decides:

| Decision                                                      | La Espiga                                 |
| ------------------------------------------------------------- | ----------------------------------------- |
| **Corners** (`radius.control`, `radius.card`, `radius.sheet`) | soft: 10, 16 and 24 px, like a loaf       |
| **Fills or outlines**                                         | filled buttons, outlined fields           |
| **Elevation** (`shadow.1` to `shadow.3`) or borders only      | low warm shadows on cards, none elsewhere |
| **Line weight** (`border.thin`, `border.strong`)              | 1 and 2 px                                |

## Layout

| Token         | Value                                                              |
| ------------- | ------------------------------------------------------------------ |
| breakpoints   | phone under 640 px, tablet 640 to 1024 px, desktop over 1024 px    |
| content width | the guide's reading width and the widest a screen may grow         |
| gutters       | 16 px on a phone, wider on a desktop; never a sideways scroll      |
| density       | comfortable or compact, per guide (a staff console may be compact) |

## Touch

Everything a finger can press is at least `size.touch` (44 by 44 px), with room around it. `design check` measures it on the phone render of every screen.
