Skip to content
Material Design 1
Main Navigation
v3
v2
v1

English

简体中文
繁體中文
Español
Français
Русский
Português – Brasil
Deutsch
日本語
한국어
Italiano
Polski
Türkçe
čeština
magyar

English

简体中文
繁體中文
Español
Français
Русский
Português – Brasil
Deutsch
日本語
한국어
Italiano
Polski
Türkçe
čeština
magyar

Appearance

Sidebar Navigation

Material Design

Environment

Material properties

Elevation & shadows

What's new

Motion

Material motion

Duration & easing

Movement

Transforming material

Choreography

Creative customization

Style

Color

Icons

Imagery

Typography

Writing

Layout

Principles

Units & measurements

Metrics & keylines

Structure

Responsive UI

Split screen

Components

Bottom navigation

Bottom sheets

Buttons

Buttons: Floating Action Button

Cards

Chips

Data tables

Dialogs

Dividers

Expansion panels

Grid lists

Lists

Lists: Controls

Menus

Pickers

Progress & activity

Selection controls

Sliders

Snackbars & toasts

Steppers

Subheaders

Tabs

Text fields

Toolbars

Tooltips

Widgets

Patterns

Confirmation & acknowledgement

Data formats

Empty states

Errors

Fingerprint

Gestures

Help & feedback

Launch screens

Loading images

Navigation

Navigation drawer

Navigational transitions

Notifications

Offline states

Permissions

Scrolling techniques

Search

Selection

Settings

Swipe to refresh

Growth & communications

Introduction

Onboarding

Feature discovery

Gesture education

Usability

Accessibility

Bidirectionality

Platforms

Platform adaptation

Android

Resources

Color palettes

Devices

Layout templates

Roboto & Noto fonts

Sticker sheets & icons

Shadows

On this page

Metrics & keylines ​

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.

Baseline grid example in Material Design
Example of baseline grid
Baseline grid example in Material Design
Example of baseline grid

Type aligns to a 4dp baseline grid. See detailed information on typography.

Material Design typography on a baseline grid
Example of typography in a baseline grid

Keylines and spacing ​

The following templates and examples contain keylines, spacing guidance, and sample screens for elements on mobile, tablet, and desktop.

Templates ​

  • Mobile layout template 2.23 MB (.ai)
  • Tablet layout template 1.39 MB (.ai)
  • Desktop layout template 89.40 MB (.ai)

Mobile ​

List

A two-column, left-aligned list with a 56dp floating action button.

Keylines and margins for Material Design lists
Keylines and margins

Screen edge left and right margins: 16dp
Content associated with an icon or avatar left margin: 72dp
Horizontal margins on mobile: 16dp
Vertical spacing in Material Design lists
Vertical spacing
  1. Status bar: 24dp
  2. Toolbar: 56dp
  3. Subtitle: 48dp
  4. List item: 72dp
Keylines and margins for Material Design lists
Keylines and margins

Screen edge left and right margins: 16dp
Content left margin from screen edge: 72dp
Vertical spacing in Material Design lists
Vertical spacing
  1. Status bar: 24dp
  2. Toolbar: 56dp
  3. Title and list items: 72dp
  4. Subtitle: 48dp
  5. Space between content areas: 8dp

Detail view

A detail card with a 56dp floating action button.

Keylines and margins for Material Design detail views
Keylines and margins

Screen edge left and right margins: 16dp
Content left margin from screen edge: 72dp
Right-side icons align 32dp from the right edge to coordinate with the floating action button.
Vertical spacing in Material Design detail views
Vertical spacing
  1. Status bar: 24dp
  2. Toolbar: 56dp
  3. Space between content areas: 8dp
  4. List item: 72dp

Navigation drawer

A side navigation menu with icons, avatars, and text aligned on the left. Other icons align on the right.

Keylines and margins for Material Design navigation drawer
Keylines and margins

Screen edge left and right margins: 16dp
Content associated with an icon or avatar left margin: 72dp
Side nav width: The screen width minus the height of the action bar. Here, the width is 56dp from the right screen edge.
Vertical spacing in Material Design navigation drawer
Vertical spacing
  1. Account menu and list items: 48dp
  2. Space between content areas: 8dp
  3. Navigation right margin: 56dp

Tablet ​

List with detail view

Left-aligned list with a right-aligned floating action button

Keylines and margins for Material Design list with detail view
Keylines and margins

Screen edge left and right margins: 24dp
Content left margin from screen edge: 80dp
Card left and right padding: 24dp
Card content left padding: 104dp
Vertical spacing in Material Design list with detail view
Vertical spacing
  1. Status bar and space above list: 24dp
  2. List item: 64dp
  3. Space between content areas: 8dp
  4. List item: 72dp

List with detail view

Left-aligned list with a left-aligned floating action button

Keylines and margins for Material Design list with detail view
Keylines and margins

Screen edge left and right padding: 24dp
Icons’ vertical center distance from screen edge: 52dp
Nav item left padding from screen edge: 104dp
Content left margin from screen edge: 80dp
Card left and right padding: 32dp
Card nav item left padding: 96dp
Vertical spacing in Material Design list with detail view
Vertical spacing
  1. Status bar: 24dp
  2. Toolbar and list item: 64dp
  3. Space between content areas: 8dp
  4. Subtitle, list item, and slider: 48dp
  5. Title: 80dp

Desktop ​

Keylines and spacing blocks for desktop inherit grid rules from tablet and mobile, depending on window size.

Material Design desktop full screen view
Desktop full screen

Resized windows

Horizontal window with Material Design elements
Horizontal window
Vertical window with Material Design style
Vertical window

Ratio keylines ​

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:

  • 16:9
  • 3:2
  • 4:3
  • 1:1
  • 3:4
  • 2:3

For example:

  • A 1:1 aspect ratio means an element has equal height and width
  • A 360dp wide image with a 2:3 aspect ratio has a height of 540

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

Material Design screen width representation
Screen width
Mobile screen width example with Material Design
Example of screen width on mobile
Material Design element width representation
Element width
Mobile element width example in Material Design
Example of element width on mobile

Sizing by increments ​

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.

Material Design card with 8x horizontal increment
This example card width has a horizontal increment of 8x.

Material Design: Extended app bar height is 2x increment
The height of the example extended app bar is 2x the increment, and the width of the right panel is 5x the increment.

Material Design UI supports increments across many elements
Increments can work across many elements in material design UI.

Touch target 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.

Material Design touch target size guidelines
Avatar: 40dp
Icon: 24dp
Touch target on both: 48dp

Material Design touch target size guidelines
Touch target height: 48dp
Button height: 36dp
Material Design touch target example
Example of touch targets

Example of touch targets and buttons
Example of touch targets and buttons
Pager
Previous pageUnits & measurements
Next pageStructure

Released under the Apache-2.0

Copyright © 2014-Present Google

https://m1.material.io/layout/metrics-keylines.html

Released under the Apache-2.0

Copyright © 2014-Present Google