Layouts
Layout primitives arrange their children and nothing else (Layout primitives). Each is one class or attribute, tuned with custom properties.
Primitives
Arrange the children of one element.
- Action bar: 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: An inline group that wraps onto new lines (buttons, tags, nav links).
- Grid: A responsive grid: as many columns as fit, each at least --grid-min wide, never wider than the container.
- Page: 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: 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: Vertical flow with a consistent gap between children.
Page layouts
Whole-page and whole-region arrangements built from the primitives.
- App shell: The frame of an application: header, primary sidebar, main content and an optional auxiliary sidebar.
- Dashboard: A grid of summary sections, each with a heading, that reflows to fit the screen.
- List-detail: A list of items beside the details of the selected one, stacked on narrow screens.
- Split: Two regions side by side at a set ratio, stacked on narrow screens.