Composition
Correct components do not add up to a good screen on their own. These are the rules for putting them together, and the builder checks most of them for you.
Kookie components keep a screen consistent: every distance comes from a spacing step, every colour from a tone, and every size from a size step. Consistency isn't the same as quality, though. You can still put nine components on one screen at nine different sizes, and nothing in the components will stop you.
This page covers the rules for putting components together. Most of them are judgments, not measurements. The two exceptions are that colour never carries a message alone (WCAG 1.4.1) and that text people must read stays readable. The builder checks most of the rules while you work.


Before you arrange anything, find a product people already use for the same job, and follow its layout. People know where its parts are, so they find yours without thinking. A layout that no one has seen makes them learn it first. Change the pattern only where your job needs something that it does not have.
Give each pane one loud control, and make it the action the pane exists for. Set it with
tone="accent" and emphasis="loud", and leave every other control at medium or quiet.
One control stands out only when the controls around it are quieter. This is the isolation effect. When two controls are loud, neither one stands out, and a person can't tell which is the main action. One per pane is Kookie's judgment.


Button defaults to medium, so a loud button is almost always one you asked for. The two
exceptions are AlertDialogAction and the send button in a Composer, which default to loud
because each is the only action in its component.
Count loud controls per pane: the sidebar, the work area and the inspector each get their own. A dialog counts as a pane of its own, because it covers the page. Two tab panels never compete either, because only one is visible at a time.
Put related things closer together than unrelated things. People see items that sit close together as a group before they read them. A shared border or fill also groups items, and it can override distance, but it adds lines and noise. So set the spacing first, and add a border only when spacing is not enough.
Make the gap inside a group at least two steps smaller than the gap around it. Compare only gaps that run the same way: a row's gap inside a column does not compete with the column's gap. When a screen uses the same gap from top to bottom, it shows no structure.


Two levels that both separate groups can sit one step apart: a section at gap 6 can hold groups at gap 5.
In a pane, start the text of every part on one left edge: the title, the labels, the rows and the lines between them. The fill of a row or a quiet button hangs outside that edge, so the text in it still starts on the edge. Keep one right edge too. A box inside the pane adds a second pair of edges, so use one only when its content needs a surface of its own.
To show that one piece of text ranks above another, move at least two steps on the type scale. A size 4 title over size 3 body text looks like an accident. Typography gives the five steps a screen uses.


When something is less important, keep it at size 2 or 3 and use the muted colour with
emphasis="medium". Keep emphasis="quiet" for things a person can't use, such as a disabled
option.
Choose a tone because of what it means, not because a screen looks too grey.


success, warning, info and destructive carry meanings. blue, green, orange and
amber are for colour as data, such as a chart series or a category. Keep to three tones or
fewer on one surface, which is a judgment. Never let colour carry the whole message: write the
words too.
Controls that do the same job on one surface should be the same size. A size 3 button beside a size 2 button looks like two different kinds of control, and a person will look for a reason that isn't there.


Match controls to the surface that holds them. Scale explains which components pass their size down.
When a component draws a band, a title, a close button or a footer, use it. A toolbar built by hand from a row of buttons misses the rules the real one carries: its inset, its glass and its spacing. Every dialog, sheet and titled popover has Close at the end of its band, and in a flow the main action is full width on every screen. Modality has the details.


Each part of a screen asks for attention, so keep only the parts that do work. One action needs one control: two Undo buttons in one view make people ask how they differ. A sentence that only says what comes next, such as "one more question", repeats what the next part already shows. Remove it.
Build a layout with real content. Placeholder text hides the problems you most need to see, such as a heading that wraps onto three lines in a narrow column.


Run the reviewer in the builder before you ship. It checks the rules on this page and offers a fix when one is safe. It can't tell you whether a screen is good, only when a screen breaks a rule.