> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Bach builds Windows installers from one bach.toml with the bach command: bach init, bach check, bach preview, bach build. Installs are per user and need no administrator rights by default. installer.scope = "machine" installs for every user after one Windows prompt. On Windows, run setup files with Start-Process -Wait -PassThru in PowerShell, and give signtool arguments that start with the word sign.

# [layout]: window size, panels and motion

> The ten layout presets and every [layout] setting: window size, picture panels, spacing, rows, buttons, footer and page animation, with limits.

`[layout]` changes how the install window is arranged. Without it, you get a single centered column. The quickest start is a preset, which any other setting can then adjust.

```toml bach.toml theme={"theme":{"light":"github-light","dark":"github-dark"}}
[layout]
preset = "showcase"
panel_image = "art/hero.jpg"
heading_size = 34
```

`bach layouts` lists the presets, and `bach preview --layout <name>` tries one on your app.

## Presets

| Preset | Looks like | Best with |
| - | - | - |
| `classic` | One centered column (the default) | |
| `showcase` | Choices left, large rounded picture right | `panel_image` |
| `spotlight` | Key art on the left with the heading on it, tiles beside it | `panel_image` |
| `hero` | Wide rounded picture on top with the heading, tiles below | `panel_image` |
| `banner` | Edge-to-edge picture on top, choices below | `panel_image` |
| `floating` | One card floating over the background | `style.background_image` |
| `editorial` | Full picture on the right, large heading, plain rows | `panel_image` |
| `portrait` | Tall narrow window with a large picture | `panel_image` |
| `tiles` | Wide window, options as tiles | |
| `minimal` | No card or icons, hairline dividers | |

Without a picture, a panel shows your logo large on a tint of the accent color.

## Window and panel

| Setting | Default | Meaning |
| - | - | - |
| `preset` | none | Layout to start from |
| `width` | 540 (880 with a side panel, 600 with a banner) | 380 to 1400 points |
| `height` | fits the content | 340 to 1000. Content that doesn't fit scrolls. Never more than 85% of the screen. |
| `panel` | `"none"` | `"left"`, `"right"` or `"top"` |
| `panel_size` | 46% (40% with the heading on it); 190 for a banner | 120 to 800 |
| `panel_image` | none | PNG or JPEG filling the panel, up to 8 MB |
| `panel_inset` | 0 | Space around the panel, 0 to 48 |
| `panel_radius` | 0 | Panel corners, 0 to 48 |
| `header` | `"content"` | Logo and heading above the choices, or `"panel"` |
| `content_width` | available space | Maximum width of choices and buttons, 260 to 1200 |
| `surface` | `"plain"` | `"card"` puts everything on one floating card |

Panel colors come from `style.panel` and `style.panel_text`.

## Text and spacing

| Setting | Default | Meaning |
| - | - | - |
| `align` | `"center"` (`"left"` with a panel) | `"left"`, `"center"` or `"right"` |
| `logo` | `"above"` | `"above"` or `"beside"` the heading |
| `padding` | `[44, 32, 24, 32]` | 0 to 96: one number, `[vertical, horizontal]` or `[top, right, bottom, left]` |
| `gap` | 28 (0 with a side-panel heading) | Space between heading and choices |
| `heading_size` | 22 | 14 to 48 |
| `text_size` | 14 | 11 to 20 |

## Rows and buttons

| Setting | Default | Meaning |
| - | - | - |
| `rows` | `"joined"` | `"joined"` (one card), `"separate"` (a card each) or `"plain"` (no card) |
| `columns` | 1 | `2` shows separate rows as tiles |
| `row_padding` | 16 | 6 to 32 |
| `icons` | `true` | Row icons |
| `dividers` | `true` | Lines between joined or plain rows |
| `button_height` | 32 | 24 to 56 |
| `buttons` | `"right"` | `"right"`, `"left"`, `"center"` or `"stretch"` |
| `primary` | `"last"` | Main button `"last"` or `"first"` |
| `footer` | `"beside"` | Footer text `"beside"` or `"above"` the buttons, or `"hidden"` |

## Motion

| Setting | Default | Meaning |
| - | - | - |
| `animation` | `"rise"` | `"rise"`, `"fade"`, `"slide"`, `"drop"` or `"none"` |
| `animation_speed` | 1 | 0.25 to 4 |

The window doesn't animate when Windows animations are turned off.

## Checking

`bach check` names the layout in its `Look` line, such as `showcase layout (940 wide, panel at the right), panel picture`. A wrong value gets a message listing the allowed ones.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.