# Layouts

Layout primitives arrange their children and nothing else ([Layout primitives](https://domestic-ui.odonckers.dev/principles/layout-primitives.md)). Each is one class or attribute, tuned with custom properties.

## Primitives

Arrange the children of one element.

- [Action bar](https://domestic-ui.odonckers.dev/layouts/action-bar.md): A long form whose Save and Cancel buttons stay in a sticky bar at the bottom of the window, with scroll margins so the bar never hides the focused field (WCAG 2.4.11).
- [Cluster](https://domestic-ui.odonckers.dev/layouts/cluster.md): An inline group that wraps onto new lines (buttons, tags, nav links).
- [Grid](https://domestic-ui.odonckers.dev/layouts/grid.md): A responsive grid: as many columns as fit, each at least --grid-min wide, never wider than the container.
- [Page](https://domestic-ui.odonckers.dev/layouts/page.md): A page that is not an app shell is laid out from its landmarks alone: the \<header>, \<nav>, \<main> and \<footer> that are children of \<body> share one centered column, --dui-size-page wide at most, with an inline gutter so nothing touches the window edge.
- [Scroll](https://domestic-ui.odonckers.dev/layouts/scroll.md): A scroll container for content wider than the screen, such as a data table, so it scrolls on its own instead of widening the page.
- [Stack](https://domestic-ui.odonckers.dev/layouts/stack.md): Vertical flow with a consistent gap between children.

## Page layouts

Whole-page and whole-region arrangements built from the primitives.

- [App shell](https://domestic-ui.odonckers.dev/patterns/app-shell.md): The frame of an application: header, primary sidebar, main content and an optional auxiliary sidebar.
- [Dashboard](https://domestic-ui.odonckers.dev/patterns/dashboard.md): A grid of summary sections, each with a heading, that reflows to fit the screen.
- [List-detail](https://domestic-ui.odonckers.dev/patterns/list-detail.md): A list of items beside the details of the selected one, stacked on narrow screens.
- [Split](https://domestic-ui.odonckers.dev/patterns/split.md): Two regions side by side at a set ratio, stacked on narrow screens.
