Baseline grids
All components align to an 8dp square baseline grid for mobile, tablet, and desktop. Iconography in toolbars align to a 4dp square baseline grid.
Type aligns to a 4dp baseline grid. See detailed information on typography.
All components align to an 8dp square baseline grid for mobile, tablet, and desktop. Iconography in toolbars align to a 4dp square baseline grid.
Type aligns to a 4dp baseline grid. See detailed information on typography.
The following templates and examples contain keylines, spacing guidance, and sample screens for elements on mobile, tablet, and desktop.
List
A two-column, left-aligned list with a 56dp floating action button.
Detail view
A detail card with a 56dp floating action button.
Navigation drawer
A side navigation menu with icons, avatars, and text aligned on the left. Other icons align on the right.
List with detail view
Left-aligned list with a right-aligned floating action button
List with detail view
Left-aligned list with a left-aligned floating action button
Keylines and spacing blocks for desktop inherit grid rules from tablet and mobile, depending on window size.
Resized windows
The proportion of an element’s width to its height (called the aspect ratio) applies to both UI elements and screen size. It is written as width:height.
These aspect ratios are recommended:
For example:
Determine the width or height of your element for a chosen aspect ratio using the below formulas. The aspect ratio is always expressed as a fraction. For example, 3:2 is treated as 3/2.
Width = Aspect ratio * Height
Height = Width/Aspect ratio
An increment is a measurement used to determine the size and position of other elements in the app.
For example, you can define an increment as the height of a standard element, such as the action bar. If the action bar is 56dp tall, you may define one increment as equal to 56 x 56dp. Determine the size of other elements by how many 56dp increments wide or tall an element should be.
If an element is 8 increments wide, using 56dp as the increment size, the width is equal to 448dp.
Incremental keylines apply mostly to desktop, often to tablet, and infrequently to mobile. The number of increments varies based on window size.
To ensure balanced information density and usability, touch targets should be at least 48 x 48 dp. In most cases, there should be 8dp or more space between them.
Size elements at least 48dp high and wide to ensure a physical size of about 9mm regardless of screen size. The recommended target size for touchscreen objects is 7-10mm.