Skip to content

App bars ​

Top app bars display navigation, actions, and text at the top of a screen. They contain a title and actions related to the current screen.

Overview · Specs · Guidelines · Accessibility

Variants ​

4 variants of app bars.

  1. Search app bar
  2. Small
  3. Medium flexible
  4. Large flexible

Baseline variants ​

The baseline M3 medium and large app bars are no longer recommended in M3 Expressive, and should be replaced with medium flexible and large flexible app bars, which are similar visually, but have multi-line support, a shorter height, and can contain a wide variety of elements, like images. Jump to baseline app bar specs

2 baseline app bar variants, medium and large.

Baseline variants

  1. Medium
  2. Large
VariantM3M3 Expressive
Search app bar--Available
SmallAvailableAvailable
Center-alignedAvailableMerged into small.
Use centered-text configuration.
Medium (baseline)AvailableNot recommended.
Use medium flexible
Medium flexible--Available
Large (baseline)AvailableNot recommended.
Use large flexible
Large flexible--Available

Configurations ​

Text alignment ​

4 variants of app bars with different left and center aligned text headlines.

Text labels, including supporting text, can be aligned to the leading edge or centered

CategoryConfigurationM3M3 Expressive
Text alignmentLeading edge (default)AvailableAvailable
Text alignmentCentered--Available

Tokens & specs ​

Select a token set to view in the table's menu. App bar token sets are organized into a common token set, and size-specific tokens. Learn about design tokens

Design tokens

Token table

Machine-readable relationship table

App bars tokens · 4 token sets · 34 tokens · live token table · DSDB TOKEN_TABLE.3ec622835c7987b5

  • Default context: Platform: Android · Audience: 3P · Font: Static
  • Not configurable here (group default used): Theme: Light · Motion scheme: Standard · Contrast: Default · iOS dark theme elevation: None · iOS weight setting: Default · Language height: Small
  • Reference chain: aliases from the token to its source value (token → alias → … → value). "—" means the token holds a literal value.

App bar - Common · md.comp.app-bar · 19 tokens

Common tokens for all app bars.

GroupTokenTypeReference chainResolved value
Colormd.comp.app-bar.search.container.colorColormd.sys.color.surface-container → md.ref.palette.neutral94#F3EDF7
Colormd.comp.app-bar.search.label.colorColormd.sys.color.on-surface-variant → md.ref.palette.neutral-variant30#49454F
Colormd.comp.app-bar.on-scroll.container.colorColormd.sys.color.surface-container → md.ref.palette.neutral94#F3EDF7
Colormd.comp.app-bar.search.on-scroll.container.colorColormd.sys.color.surface-container-highest → md.ref.palette.neutral90#E6E0E9
Colormd.comp.app-bar.container.elevationElevationmd.sys.elevation.level00dp
Colormd.comp.app-bar.on-scroll.container.elevationElevationmd.sys.elevation.level23dp
Colormd.comp.app-bar.title.colorColormd.sys.color.on-surface → md.ref.palette.neutral10#1D1B20
Colormd.comp.app-bar.subtitle.colorColormd.sys.color.on-surface-variant → md.ref.palette.neutral-variant30#49454F
Colormd.comp.app-bar.leading-icon.colorColormd.sys.color.on-surface → md.ref.palette.neutral10#1D1B20
Colormd.comp.app-bar.trailing-icon.colorColormd.sys.color.on-surface-variant → md.ref.palette.neutral-variant30#49454F
Colormd.comp.app-bar.container.colorColormd.sys.color.surface → md.ref.palette.neutral98#FEF7FF
Spacingmd.comp.app-bar.trailing-spaceLengthmd.sys.measurement.space504dp
Spacingmd.comp.app-bar.icon-button-spaceLengthmd.sys.measurement.space00dp
Spacingmd.comp.app-bar.search.leading-spaceLengthmd.sys.measurement.space1008dp
Spacingmd.comp.app-bar.search.trailing-spaceLengthmd.sys.measurement.space1008dp
Spacingmd.comp.app-bar.leading-spaceLengthmd.sys.measurement.space504dp
Shapemd.comp.app-bar.container.shapeShapemd.sys.shape.corner.noneRounded corners 0dp
Sizemd.comp.app-bar.icon.sizeLength—24dp
Sizemd.comp.app-bar.avatar.sizeLength—32dp

App bar - Size - Small · md.comp.app-bar.small · 7 tokens

For the expressive small app bar and search app bar.

GroupTokenTypeReference chainResolved value
All tokensmd.comp.app-bar.small.container.heightLength—64dp
All tokensmd.comp.app-bar.small.title.fontTypographymd.sys.typescale.title-large → composite
font names: md.sys.typescale.title-large.font → md.ref.typeface.brand
font weight: md.sys.typescale.title-large.weight → md.ref.typeface.weight-regular
font size: md.sys.typescale.title-large.size
line height: md.sys.typescale.title-large.line-height
font tracking: md.sys.typescale.title-large.tracking
Roboto · weight 400 · size 22pt · line height 28pt · tracking 0pt
All tokensmd.comp.app-bar.small.subtitle.fontTypographymd.sys.typescale.label-medium → composite
font names: md.sys.typescale.label-medium.font → md.ref.typeface.plain
font weight: md.sys.typescale.label-medium.weight → md.ref.typeface.weight-medium
font size: md.sys.typescale.label-medium.size
line height: md.sys.typescale.label-medium.line-height
font tracking: md.sys.typescale.label-medium.tracking
Roboto · weight 500 · size 12pt · line height 16pt · tracking 0.5pt
All tokensmd.comp.app-bar.small.icon.size (deprecated)Length—24dp
All tokensmd.comp.app-bar.small.search.container.heightLength—56dp
All tokensmd.comp.app-bar.small.search.container.shapeShapemd.sys.shape.corner.fullCircular (fully rounded)
All tokensmd.comp.app-bar.small.search.label-text.fontFont sizemd.sys.typescale.body-large → composite
font names: md.sys.typescale.body-large.font → md.ref.typeface.plain
font weight: md.sys.typescale.body-large.weight → md.ref.typeface.weight-regular
font size: md.sys.typescale.body-large.size
line height: md.sys.typescale.body-large.line-height
font tracking: md.sys.typescale.body-large.tracking
Roboto · weight 400 · size 16pt · line height 24pt · tracking 0.5pt

App bar - Size - Medium Flexible · md.comp.app-bar.medium-flexible · 4 tokens

For the medium flexible app bar.

GroupTokenTypeReference chainResolved value
All tokensmd.comp.app-bar.medium-flexible.container.heightLength—112dp
All tokensmd.comp.app-bar.medium-flexible.with-subtitle.container.heightLength—136dp
All tokensmd.comp.app-bar.medium-flexible.title.fontTypographymd.sys.typescale.headline-medium → composite
font names: md.sys.typescale.headline-medium.font → md.ref.typeface.brand
font weight: md.sys.typescale.headline-medium.weight → md.ref.typeface.weight-regular
font size: md.sys.typescale.headline-medium.size
line height: md.sys.typescale.headline-medium.line-height
font tracking: md.sys.typescale.headline-medium.tracking
Roboto · weight 400 · size 28pt · line height 36pt · tracking 0pt
All tokensmd.comp.app-bar.medium-flexible.subtitle.fontTypographymd.sys.typescale.label-large → composite
font names: md.sys.typescale.label-large.font → md.ref.typeface.plain
font weight: md.sys.typescale.label-large.weight → md.ref.typeface.weight-medium
font size: md.sys.typescale.label-large.size
line height: md.sys.typescale.label-large.line-height
font tracking: md.sys.typescale.label-large.tracking
Roboto · weight 500 · size 14pt · line height 20pt · tracking 0.1pt

App bar - Size - Large Flexible · md.comp.app-bar.large-flexible · 4 tokens

For the large flexible app bar.

GroupTokenTypeReference chainResolved value
All tokensmd.comp.app-bar.large-flexible.container.heightLength—120dp
All tokensmd.comp.app-bar.large-flexible.with-subtitle.container.heightLength—152dp
All tokensmd.comp.app-bar.large-flexible.title.fontTypographymd.sys.typescale.display-small → composite
font names: md.sys.typescale.display-small.font → md.ref.typeface.brand
font weight: md.sys.typescale.display-small.weight → md.ref.typeface.weight-regular
font size: md.sys.typescale.display-small.size
line height: md.sys.typescale.display-small.line-height
font tracking: md.sys.typescale.display-small.tracking
Roboto · weight 400 · size 36pt · line height 44pt · tracking 0pt
All tokensmd.comp.app-bar.large-flexible.subtitle.fontTypographymd.sys.typescale.title-medium → composite
font names: md.sys.typescale.title-medium.font → md.ref.typeface.plain
font weight: md.sys.typescale.title-medium.weight → md.ref.typeface.weight-medium
font size: md.sys.typescale.title-medium.size
line height: md.sys.typescale.title-medium.line-height
font tracking: md.sys.typescale.title-medium.tracking
Roboto · weight 500 · size 16pt · line height 24pt · tracking 0.15pt

Search component tokens & specs ​

The default search component tokens are used in the search app bar.

Design tokens

Token table

Machine-readable relationship table

Search tokens · 2 token sets · 85 tokens · live token table · DSDB TOKEN_TABLE.07341534518f78d0

  • Default context: Theme: Light · Platform: Android · Audience: 3P · Font: Static · Contrast: Default · iOS dark theme elevation: None · iOS weight setting: Default
  • Not configurable here (group default used): Motion scheme: Standard · Language height: Small
  • Other contexts: Theme: Dark · Contrast: Medium contrast, High contrast. "Other contexts" lists values that differ from the default when only that one context changes.
  • Reference chain: aliases from the token to its source value (token → alias → … → value). "—" means the token holds a literal value.

Search - Bar · md.comp.search-bar · 49 tokens

For baseline search bar and expressive search.

GroupTokenTypeReference chainResolved valueOther contexts
Layout and Text › Baselinemd.comp.search-bar.trailing-spaceLengthmd.sys.measurement.space20016dp—
Layout and Text › Baselinemd.comp.search-bar.leading-icon.leading-icon-label-spaceLengthmd.sys.measurement.space20016dp—
Layout and Text › Baselinemd.comp.search-bar.trailing-icon.label-trailing-icon-spaceLengthmd.sys.measurement.space20016dp—
Layout and Text › Baselinemd.comp.search-bar.leading-spaceLengthmd.sys.measurement.space20016dp—
Layout and Text › Common tokensmd.comp.search-bar.container.heightLength—56dp—
Layout and Text › Common tokensmd.comp.search-bar.container.shapeShapemd.sys.shape.corner.fullCircular (fully rounded)—
Layout and Text › Common tokensmd.comp.search-bar.avatar.sizeLength—30dp—
Layout and Text › Common tokensmd.comp.search-bar.avatar.shapeShapemd.sys.shape.corner.fullCircular (fully rounded)—
Layout and Text › Common tokensmd.comp.search-bar.icon.sizeLength—24dp—
Layout and Text › Common tokensmd.comp.search-bar.supporting-text.typeTypographycomposite
font names: md.comp.search-bar.supporting-text.font → md.sys.typescale.body-large.font → md.ref.typeface.plain
font weight: md.comp.search-bar.supporting-text.weight → md.sys.typescale.body-large.weight → md.ref.typeface.weight-regular
font size: md.comp.search-bar.supporting-text.size → md.sys.typescale.body-large.size
line height: md.comp.search-bar.supporting-text.line-height → md.sys.typescale.body-large.line-height
font tracking: md.comp.search-bar.supporting-text.tracking → md.sys.typescale.body-large.tracking
Roboto · weight 400 · size 16pt · line height 24pt · tracking 0.5pt—
Layout and Text › Common tokensmd.comp.search-bar.supporting-text.fontFont namesmd.sys.typescale.body-large.font → md.ref.typeface.plainRoboto—
Layout and Text › Common tokensmd.comp.search-bar.supporting-text.line-heightLine heightmd.sys.typescale.body-large.line-height24pt—
Layout and Text › Common tokensmd.comp.search-bar.supporting-text.sizeFont sizemd.sys.typescale.body-large.size16pt—
Layout and Text › Common tokensmd.comp.search-bar.supporting-text.weightFont weightmd.sys.typescale.body-large.weight → md.ref.typeface.weight-regular400—
Layout and Text › Common tokensmd.comp.search-bar.supporting-text.trackingFont trackingmd.sys.typescale.body-large.tracking0.5pt—
Layout and Text › Common tokensmd.comp.search-bar.input-text.typeTypographycomposite
font names: md.comp.search-bar.input-text.font → md.sys.typescale.body-large.font → md.ref.typeface.plain
font weight: md.comp.search-bar.input-text.weight → md.sys.typescale.body-large.weight → md.ref.typeface.weight-regular
font size: md.comp.search-bar.input-text.size → md.sys.typescale.body-large.size
line height: md.comp.search-bar.input-text.line-height → md.sys.typescale.body-large.line-height
font tracking: md.comp.search-bar.input-text.tracking → md.sys.typescale.body-large.tracking
Roboto · weight 400 · size 16pt · line height 24pt · tracking 0.5pt—
Layout and Text › Common tokensmd.comp.search-bar.input-text.fontFont namesmd.sys.typescale.body-large.font → md.ref.typeface.plainRoboto—
Layout and Text › Common tokensmd.comp.search-bar.input-text.line-heightLine heightmd.sys.typescale.body-large.line-height24pt—
Layout and Text › Common tokensmd.comp.search-bar.input-text.sizeFont sizemd.sys.typescale.body-large.size16pt—
Layout and Text › Common tokensmd.comp.search-bar.input-text.weightFont weightmd.sys.typescale.body-large.weight → md.ref.typeface.weight-regular400—
Layout and Text › Common tokensmd.comp.search-bar.input-text.trackingFont trackingmd.sys.typescale.body-large.tracking0.5pt—
Layout and Text › Common tokensmd.comp.search-bar.container.surface-tint-layer.color (deprecated)Colormd.sys.color.surface-tint → md.sys.color.primary → md.ref.palette.primary40#6750A4Dark: #D0BCFF via md.ref.palette.primary80
Medium contrast: #4F378B via md.ref.palette.primary30
High contrast: #381E72 via md.ref.palette.primary20
Layout and Text › Contained (expressive)md.comp.search-bar.contained.trailing-marginLengthmd.sys.measurement.space30024dp—
Layout and Text › Contained (expressive)md.comp.search-bar.contained.motion.springCustom compositemd.sys.motion.spring.fast.spatial → composite
+2 variation axes
damping 0.9 · stiffness 1400—
Layout and Text › Contained (expressive)md.comp.search-bar.contained.leading-spaceLengthmd.sys.measurement.space504dp—
Layout and Text › Contained (expressive)md.comp.search-bar.contained.trailing-spaceLengthmd.sys.measurement.space504dp—
Layout and Text › Contained (expressive)md.comp.search-bar.contained.no-actions.leading-spaceLengthmd.sys.measurement.space20016dp—
Layout and Text › Contained (expressive)md.comp.search-bar.contained.no-actions.trailing-spaceLengthmd.sys.measurement.space20016dp—
Layout and Text › Contained (expressive)md.comp.search-bar.contained.icon-label.gapLengthmd.sys.measurement.space504dp—
Layout and Text › Contained (expressive)md.comp.search-bar.contained.avatar.target-sizeLength—48dp—
Layout and Text › Contained (expressive)md.comp.search-bar.contained.trailing-actions.gapLengthmd.sys.measurement.space00dp—
Layout and Text › Contained (expressive)md.comp.search-bar.contained.trailing-actions.leading-spaceLengthmd.sys.measurement.space504dp—
Layout and Text › Contained (expressive)md.comp.search-bar.contained.trailing-actions.trailing-spaceLengthmd.sys.measurement.space504dp—
Layout and Text › Contained (expressive)md.comp.search-bar.contained.leading-marginLengthmd.sys.measurement.space30024dp—
Color › Hoveredmd.comp.search-bar.hover.state-layer.opacityOpacitymd.sys.state.hover.state-layer-opacity0.08—
Color › Hoveredmd.comp.search-bar.hover.supporting-text.colorColormd.sys.color.on-surface-variant → md.ref.palette.neutral-variant30#49454FDark: #CAC4D0 via md.ref.palette.neutral-variant80
Medium contrast: #322F37 via md.ref.palette.neutral-variant20
High contrast: #000000 via md.ref.palette.neutral-variant0
Color › Hoveredmd.comp.search-bar.hover.state-layer.colorColormd.sys.color.on-surface → md.ref.palette.neutral10#1D1B20Dark: #E6E0E9 via md.ref.palette.neutral90
Medium contrast: #000000 via md.ref.palette.neutral0
High contrast: #000000 via md.ref.palette.neutral0
Color › Enabledmd.comp.search-bar.container.colorColormd.sys.color.surface-container-high → md.ref.palette.neutral92#ECE6F0Dark: #2B2930 via md.ref.palette.neutral17
Color › Enabledmd.comp.search-bar.container.elevationElevationmd.sys.elevation.level36dp—
Color › Enabledmd.comp.search-bar.leading-icon.colorColormd.sys.color.on-surface → md.ref.palette.neutral10#1D1B20Dark: #E6E0E9 via md.ref.palette.neutral90
Medium contrast: #000000 via md.ref.palette.neutral0
High contrast: #000000 via md.ref.palette.neutral0
Color › Enabledmd.comp.search-bar.trailing-icon.colorColormd.sys.color.on-surface-variant → md.ref.palette.neutral-variant30#49454FDark: #CAC4D0 via md.ref.palette.neutral-variant80
Medium contrast: #322F37 via md.ref.palette.neutral-variant20
High contrast: #000000 via md.ref.palette.neutral-variant0
Color › Enabledmd.comp.search-bar.supporting-text.colorColormd.sys.color.on-surface-variant → md.ref.palette.neutral-variant30#49454FDark: #CAC4D0 via md.ref.palette.neutral-variant80
Medium contrast: #322F37 via md.ref.palette.neutral-variant20
High contrast: #000000 via md.ref.palette.neutral-variant0
Color › Enabledmd.comp.search-bar.input-text.colorColormd.sys.color.on-surface → md.ref.palette.neutral10#1D1B20Dark: #E6E0E9 via md.ref.palette.neutral90
Medium contrast: #000000 via md.ref.palette.neutral0
High contrast: #000000 via md.ref.palette.neutral0
Color › Pressedmd.comp.search-bar.pressed.state-layer.opacityOpacitymd.sys.state.pressed.state-layer-opacity0.1—
Color › Pressedmd.comp.search-bar.pressed.supporting-text.colorColormd.sys.color.on-surface-variant → md.ref.palette.neutral-variant30#49454FDark: #CAC4D0 via md.ref.palette.neutral-variant80
Medium contrast: #322F37 via md.ref.palette.neutral-variant20
High contrast: #000000 via md.ref.palette.neutral-variant0
Color › Pressedmd.comp.search-bar.pressed.state-layer.colorColormd.sys.color.on-surface → md.ref.palette.neutral10#1D1B20Dark: #E6E0E9 via md.ref.palette.neutral90
Medium contrast: #000000 via md.ref.palette.neutral0
High contrast: #000000 via md.ref.palette.neutral0
Color › Focusedmd.comp.search-bar.focus.indicator.thicknessLengthmd.sys.state.focus-indicator.thickness3dp—
Color › Focusedmd.comp.search-bar.focus.indicator.outline.offsetLengthmd.sys.state.focus-indicator.outer-offset2dp—
Color › Focusedmd.comp.search-bar.focus.indicator.colorColormd.sys.color.secondary → md.ref.palette.secondary40#625B71Dark: #CCC2DC via md.ref.palette.secondary80
Medium contrast: #4A4458 via md.ref.palette.secondary30
High contrast: #332D41 via md.ref.palette.secondary20

Search - View · md.comp.search-view · 36 tokens

For baseline search view and expressive search when activated.

GroupTokenTypeReference chainResolved valueOther contexts
Colormd.comp.search-view.contained.background.colorColormd.sys.color.surface-container-low → md.ref.palette.neutral96#F7F2FADark: #1D1B20 via md.ref.palette.neutral10
Colormd.comp.search-view.container.elevationElevationmd.sys.elevation.level36dp—
Colormd.comp.search-view.header.supporting-text.colorColormd.sys.color.on-surface-variant → md.ref.palette.neutral-variant30#49454FDark: #CAC4D0 via md.ref.palette.neutral-variant80
Medium contrast: #322F37 via md.ref.palette.neutral-variant20
High contrast: #000000 via md.ref.palette.neutral-variant0
Colormd.comp.search-view.header.input-text.colorColormd.sys.color.on-surface → md.ref.palette.neutral10#1D1B20Dark: #E6E0E9 via md.ref.palette.neutral90
Medium contrast: #000000 via md.ref.palette.neutral0
High contrast: #000000 via md.ref.palette.neutral0
Colormd.comp.search-view.header.leading-icon.colorColormd.sys.color.on-surface → md.ref.palette.neutral10#1D1B20Dark: #E6E0E9 via md.ref.palette.neutral90
Medium contrast: #000000 via md.ref.palette.neutral0
High contrast: #000000 via md.ref.palette.neutral0
Colormd.comp.search-view.header.trailing-icon.colorColormd.sys.color.on-surface-variant → md.ref.palette.neutral-variant30#49454FDark: #CAC4D0 via md.ref.palette.neutral-variant80
Medium contrast: #322F37 via md.ref.palette.neutral-variant20
High contrast: #000000 via md.ref.palette.neutral-variant0
Colormd.comp.search-view.divider.colorColormd.sys.color.outline → md.ref.palette.neutral-variant50#79747EDark: #938F99 via md.ref.palette.neutral-variant60
Medium contrast: #49454F via md.ref.palette.neutral-variant30
High contrast: #322F37 via md.ref.palette.neutral-variant20
Colormd.comp.search-view.container.colorColormd.sys.color.surface-container-high → md.ref.palette.neutral92#ECE6F0Dark: #2B2930 via md.ref.palette.neutral17
Layout and Text › Divided (baseline)md.comp.search-view.full-screen.header.container.heightLength—72dp—
Layout and Text › Divided (baseline)md.comp.search-view.docked.header.container.heightLength—56dp—
Layout and Text › Divided (baseline)md.comp.search-view.leading-spaceLengthmd.sys.measurement.space20016dp—
Layout and Text › Divided (baseline)md.comp.search-view.trailing-spaceLengthmd.sys.measurement.space20016dp—
Layout and Text › Divided (baseline)md.comp.search-view.leading-icon.leading-icon-label-spaceLengthmd.sys.measurement.space20016dp—
Layout and Text › Divided (baseline)md.comp.search-view.trailing-icon.label-trailing-icon-spaceLengthmd.sys.measurement.space20016dp—
Layout and Text › Divided (baseline)md.comp.search-view.docked.container.shapeShapemd.sys.shape.corner.extra-largeRounded corners 28dp—
Layout and Text › Common tokensmd.comp.search-view.header.supporting-text.typeTypographycomposite
font names: md.comp.search-view.header.supporting-text.font → md.sys.typescale.body-large.font → md.ref.typeface.plain
font weight: md.comp.search-view.header.supporting-text.weight → md.sys.typescale.body-large.weight → md.ref.typeface.weight-regular
font size: md.comp.search-view.header.supporting-text.size → md.sys.typescale.body-large.size
line height: md.comp.search-view.header.supporting-text.line-height → md.sys.typescale.body-large.line-height
font tracking: md.comp.search-view.header.supporting-text.tracking → md.sys.typescale.body-large.tracking
Roboto · weight 400 · size 16pt · line height 24pt · tracking 0.5pt—
Layout and Text › Common tokensmd.comp.search-view.header.supporting-text.fontFont namesmd.sys.typescale.body-large.font → md.ref.typeface.plainRoboto—
Layout and Text › Common tokensmd.comp.search-view.header.supporting-text.line-heightLine heightmd.sys.typescale.body-large.line-height24pt—
Layout and Text › Common tokensmd.comp.search-view.header.supporting-text.sizeFont sizemd.sys.typescale.body-large.size16pt—
Layout and Text › Common tokensmd.comp.search-view.header.supporting-text.weightFont weightmd.sys.typescale.body-large.weight → md.ref.typeface.weight-regular400—
Layout and Text › Common tokensmd.comp.search-view.header.supporting-text.trackingFont trackingmd.sys.typescale.body-large.tracking0.5pt—
Layout and Text › Common tokensmd.comp.search-view.header.input-text.typeTypographycomposite
font names: md.comp.search-view.header.input-text.font → md.sys.typescale.body-large.font → md.ref.typeface.plain
font weight: md.comp.search-view.header.input-text.weight → md.sys.typescale.body-large.weight → md.ref.typeface.weight-regular
font size: md.comp.search-view.header.input-text.size → md.sys.typescale.body-large.size
line height: md.comp.search-view.header.input-text.line-height → md.sys.typescale.body-large.line-height
font tracking: md.comp.search-view.header.input-text.tracking → md.sys.typescale.body-large.tracking
Roboto · weight 400 · size 16pt · line height 24pt · tracking 0.5pt—
Layout and Text › Common tokensmd.comp.search-view.header.input-text.fontFont namesmd.sys.typescale.body-large.font → md.ref.typeface.plainRoboto—
Layout and Text › Common tokensmd.comp.search-view.header.input-text.line-heightLine heightmd.sys.typescale.body-large.line-height24pt—
Layout and Text › Common tokensmd.comp.search-view.header.input-text.sizeFont sizemd.sys.typescale.body-large.size16pt—
Layout and Text › Common tokensmd.comp.search-view.header.input-text.weightFont weightmd.sys.typescale.body-large.weight → md.ref.typeface.weight-regular400—
Layout and Text › Common tokensmd.comp.search-view.header.input-text.trackingFont trackingmd.sys.typescale.body-large.tracking0.5pt—
Layout and Text › Common tokensmd.comp.search-view.full-screen.container.shapeShapemd.sys.shape.corner.noneRounded corners 0dp—
Layout and Text › Contained (expressive)md.comp.search-view.contained.trailing-marginLengthmd.sys.measurement.space15012dp—
Layout and Text › Contained (expressive)md.comp.search-view.contained.docked.bar-results.gapLengthmd.sys.measurement.space252dp—
Layout and Text › Contained (expressive)md.comp.search-view.contained.docked.results.shapeShapemd.sys.shape.corner.mediumRounded corners 12dp—
Layout and Text › Contained (expressive)md.comp.search-view.contained.docked.bar.shapeShapemd.sys.shape.corner.fullCircular (fully rounded)—
Layout and Text › Contained (expressive)md.comp.search-view.contained.full-screen.bar.container.heightLength—56dp—
Layout and Text › Contained (expressive)md.comp.search-view.contained.icon-label.gapLengthmd.sys.measurement.space504dp—
Layout and Text › Contained (expressive)md.comp.search-view.contained.leading-marginLengthmd.sys.measurement.space15012dp—
Othermd.comp.search-view.container.surface-tint-layer.color (deprecated)Colormd.sys.color.surface-tint → md.sys.color.primary → md.ref.palette.primary40#6750A4Dark: #D0BCFF via md.ref.palette.primary80
Medium contrast: #4F378B via md.ref.palette.primary30
High contrast: #381E72 via md.ref.palette.primary20

Anatomy ​

5 elements of the component.

  1. Container
  2. Leading button
  3. Trailing elements
  4. Headline
  5. Subtitle

App bars can be customized to include:

  • An image or logo
  • A subtitle
  • A filled icon button

Avoid customizing the size of the heading and subtitle, or adding too many actions.

3 app bars: 1 with a newspaper logo, 1 with a subtitle, and 1 with a filled icon button.

The app bar can have different layouts depending on which elements are shown

The search app bar can include trailing actions inside and outside the search bar. When the search bar is selected, it should open the search view component.

5 elements of the search app bar.

  1. Container
  2. Leading icon button
  3. Hinted search text
  4. Trailing icon or avatar
  5. Search container

3 layouts of icons in the search app bar.

  1. A leading element and a trailing element outside search
  2. A leading element, a trailing element inside search, and a trailing element outside search
  3. A leading element and two trailing elements outside search

Image  ​

An image can be placed in the app bar. In small app bars, this can replace the label text.

Graphic replacing text headline content.

Images can be added to app bars and can replace label text on small app bars

Filled trailing icon button ​

The app bar's trailing icon buttons can be replaced with a single, primary, or tonal filled icon button in default or wide sizes.

App bars configured with filled trailing icons.

The trailing icons can be configured to be a single filled icon button

Subtitle ​

App bars configured with subtitles below their headlines.

The medium flexible and large flexible app bars hug the text contents, so they are taller when a subtitle is visible

  1. Small
  2. Small with subtitle
  3. Medium flexible
  4. Medium flexible with subtitle
  5. Large flexible
  6. Large flexible with subtitle

Color ​

Color values are implemented through design tokens. For design, this means working with color values that correspond with tokens. For implementation, a color value will be a token that references a value. Learn more about design tokens

All app bars share the same color roles. On scroll, the container changes color to surface container.

4 color roles of the leading edge app bar in light and dark scheme.

App bar color roles used for light and dark themes:

  1. Surface
  2. On surface
  3. On surface variant
  4. On surface
  5. On surface variant
  6. Surface container (on scroll)

4 color roles of the center-aligned app bar in light and dark scheme.

Search app bar color roles used for light and dark themes:

  1. Surface 
  2. On surface variant
  3. On surface variant
  4. On surface variant
  5. Surface container
  6. Surface container
  7. Surface container highest

Scroll states ​

Color roles for app bars when flat and on scroll.

The app bar changes color when flat or on scroll. The search bar can also change color on scroll.

  1. Flat
  2. On scroll

Measurements ​

Search app bar ​

Search app bar size and padding measurements.

Search app bar padding and size measurements

Small app bar ​

Small app bar size and padding measurements.

Small app bar padding and size measurements

Medium flexible app bar ​

Medium flexible app bar padding and size measurements.

Medium flexible app bar padding and size measurements

Large flexible app bar ​

Large flexible app bar padding and size measurements

Large flexible app bar padding and size measurements


Baseline app bars ​

The medium and large app bars are no longer recommended in M3 Expressive. Use the medium flexible and large flexible app bars in their place.

4 elements of medium and large app bars.

Medium and large app bars have the same elements:

  1. Container
  2. Leading button
  3. Trailing icons
  4. Headline

Tokens & specs ​

Select a token set to view in the table's menu. Baseline app bar token sets are organized into medium, large, and older baseline token sets. Learn about design tokens

Design tokens

Token table

Machine-readable relationship table

App bars tokens · 6 token sets · 80 tokens · live token table · DSDB TOKEN_TABLE.3ec622835c7987b5

  • Default context: Theme: Light · Platform: Android · Audience: 3P · Font: Static · Contrast: Default · iOS dark theme elevation: None · iOS weight setting: Default
  • Not configurable here (group default used): Motion scheme: Standard · Language height: Small
  • Other contexts: Theme: Dark · Contrast: Medium contrast, High contrast. "Other contexts" lists values that differ from the default when only that one context changes.
  • Reference chain: aliases from the token to its source value (token → alias → … → value). "—" means the token holds a literal value.

App bar - Size - Medium (baseline) · md.comp.app-bar.medium · 4 tokens

For the baseline medium app bar. In expressive, consider using medium flexible instead `md.comp.app-bar.medium-flexible`.

GroupTokenTypeReference chainResolved valueOther contexts
All tokensmd.comp.app-bar.medium.container.heightLength—112dp—
All tokensmd.comp.app-bar.medium.title.fontTypographymd.sys.typescale.headline-small → composite
font names: md.sys.typescale.headline-small.font → md.ref.typeface.brand
font weight: md.sys.typescale.headline-small.weight → md.ref.typeface.weight-regular
font size: md.sys.typescale.headline-small.size
line height: md.sys.typescale.headline-small.line-height
font tracking: md.sys.typescale.headline-small.tracking
Roboto · weight 400 · size 24pt · line height 32pt · tracking 0pt—
All tokensmd.comp.app-bar.medium.icon.size (deprecated)Length—24dp—
All tokensmd.comp.app-bar.medium.subtitle.font (deprecated)Typographymd.sys.typescale.label-large → composite
font names: md.sys.typescale.label-large.font → md.ref.typeface.plain
font weight: md.sys.typescale.label-large.weight → md.ref.typeface.weight-medium
font size: md.sys.typescale.label-large.size
line height: md.sys.typescale.label-large.line-height
font tracking: md.sys.typescale.label-large.tracking
Roboto · weight 500 · size 14pt · line height 20pt · tracking 0.1pt—

App bar - Size - Large (baseline) · md.comp.app-bar.large · 4 tokens

For the baseline large app bar. In expressive, consider using large flexible instead `md.comp.app-bar.large-flexible`.

GroupTokenTypeReference chainResolved valueOther contexts
All tokensmd.comp.app-bar.large.container.heightLength—152dp—
All tokensmd.comp.app-bar.large.title.fontTypographymd.sys.typescale.headline-medium → composite
font names: md.sys.typescale.headline-medium.font → md.ref.typeface.brand
font weight: md.sys.typescale.headline-medium.weight → md.ref.typeface.weight-regular
font size: md.sys.typescale.headline-medium.size
line height: md.sys.typescale.headline-medium.line-height
font tracking: md.sys.typescale.headline-medium.tracking
Roboto · weight 400 · size 28pt · line height 36pt · tracking 0pt—
All tokensmd.comp.app-bar.large.icon.size (deprecated)Length—24dp—
All tokensmd.comp.app-bar.large.subtitle.font (deprecated)Typographymd.sys.typescale.title-medium → composite
font names: md.sys.typescale.title-medium.font → md.ref.typeface.plain
font weight: md.sys.typescale.title-medium.weight → md.ref.typeface.weight-medium
font size: md.sys.typescale.title-medium.size
line height: md.sys.typescale.title-medium.line-height
font tracking: md.sys.typescale.title-medium.tracking
Roboto · weight 500 · size 16pt · line height 24pt · tracking 0.15pt—

[Deprecated] Top app bar - Small · md.comp.top-app-bar.small · 19 tokens

This token set is deprecated. Use `md.comp.app-bar` and `md.comp.app-bar.small` tokens instead. Original tokens for the small top app bar.

GroupTokenTypeReference chainResolved valueOther contexts
[Deprecated] Enabled › [Deprecated] Containermd.comp.top-app-bar.small.container.color (deprecated)Colormd.sys.color.surface → md.ref.palette.neutral98#FEF7FFDark: #141218 via md.ref.palette.neutral6
[Deprecated] Enabled › [Deprecated] Containermd.comp.top-app-bar.small.on-scroll.container.color (deprecated)Colormd.sys.color.surface-container → md.ref.palette.neutral94#F3EDF7Dark: #211F26 via md.ref.palette.neutral12
[Deprecated] Enabled › [Deprecated] Containermd.comp.top-app-bar.small.container.shape (deprecated)Shapemd.sys.shape.corner.noneRounded corners 0dp—
[Deprecated] Enabled › [Deprecated] Containermd.comp.top-app-bar.small.container.height (deprecated)Length—64dp—
[Deprecated] Enabled › [Deprecated] Containermd.comp.top-app-bar.small.container.elevation (deprecated)Elevationmd.sys.elevation.level00dp—
[Deprecated] Enabled › [Deprecated] Containermd.comp.top-app-bar.small.container.surface-tint-layer.color (deprecated)Colormd.sys.color.surface-tint → md.sys.color.primary → md.ref.palette.primary40#6750A4Dark: #D0BCFF via md.ref.palette.primary80
Medium contrast: #4F378B via md.ref.palette.primary30
High contrast: #381E72 via md.ref.palette.primary20
[Deprecated] Enabled › [Deprecated] Containermd.comp.top-app-bar.small.on-scroll.container.shadow-color (deprecated)Colormd.sys.color.shadow → md.ref.palette.neutral0#000000—
[Deprecated] Enabled › [Deprecated] Leading iconmd.comp.top-app-bar.small.leading-icon.size (deprecated)Length—24dp—
[Deprecated] Enabled › [Deprecated] Leading iconmd.comp.top-app-bar.small.leading-icon.color (deprecated)Colormd.sys.color.on-surface → md.ref.palette.neutral10#1D1B20Dark: #E6E0E9 via md.ref.palette.neutral90
Medium contrast: #000000 via md.ref.palette.neutral0
High contrast: #000000 via md.ref.palette.neutral0
[Deprecated] Enabled › [Deprecated] Trailing iconmd.comp.top-app-bar.small.trailing-icon.size (deprecated)Length—24dp—
[Deprecated] Enabled › [Deprecated] Trailing iconmd.comp.top-app-bar.small.trailing-icon.color (deprecated)Colormd.sys.color.on-surface-variant → md.ref.palette.neutral-variant30#49454FDark: #CAC4D0 via md.ref.palette.neutral-variant80
Medium contrast: #322F37 via md.ref.palette.neutral-variant20
High contrast: #000000 via md.ref.palette.neutral-variant0
[Deprecated] Enabled › [Deprecated] Headlinemd.comp.top-app-bar.small.headline.font (deprecated)Font namesmd.sys.typescale.title-large.font → md.ref.typeface.brandRoboto—
[Deprecated] Enabled › [Deprecated] Headlinemd.comp.top-app-bar.small.headline.line-height (deprecated)Line heightmd.sys.typescale.title-large.line-height28pt—
[Deprecated] Enabled › [Deprecated] Headlinemd.comp.top-app-bar.small.headline.size (deprecated)Font sizemd.sys.typescale.title-large.size22pt—
[Deprecated] Enabled › [Deprecated] Headlinemd.comp.top-app-bar.small.headline.tracking (deprecated)Font trackingmd.sys.typescale.title-large.tracking0pt—
[Deprecated] Enabled › [Deprecated] Headlinemd.comp.top-app-bar.small.headline.weight (deprecated)Font weightmd.sys.typescale.title-large.weight → md.ref.typeface.weight-regular400—
[Deprecated] Enabled › [Deprecated] Headlinemd.comp.top-app-bar.small.headline.type (deprecated)Typographycomposite
font names: md.comp.top-app-bar.small.headline.font → md.sys.typescale.title-large.font → md.ref.typeface.brand
font weight: md.comp.top-app-bar.small.headline.weight → md.sys.typescale.title-large.weight → md.ref.typeface.weight-regular
font size: md.comp.top-app-bar.small.headline.size → md.sys.typescale.title-large.size
line height: md.comp.top-app-bar.small.headline.line-height → md.sys.typescale.title-large.line-height
font tracking: md.comp.top-app-bar.small.headline.tracking → md.sys.typescale.title-large.tracking
Roboto · weight 400 · size 22pt · line height 28pt · tracking 0pt—
[Deprecated] Enabled › [Deprecated] Headlinemd.comp.top-app-bar.small.headline.color (deprecated)Colormd.sys.color.on-surface → md.ref.palette.neutral10#1D1B20Dark: #E6E0E9 via md.ref.palette.neutral90
Medium contrast: #000000 via md.ref.palette.neutral0
High contrast: #000000 via md.ref.palette.neutral0
[Deprecated] Enabled › [Deprecated] On scrollmd.comp.top-app-bar.small.on-scroll.container.elevation (deprecated)Elevationmd.sys.elevation.level23dp—

[Deprecated] Top app bar - Medium · md.comp.top-app-bar.medium · 16 tokens

This token set is deprecated. Use `md.comp.app-bar` and `md.comp.app-bar.medium` tokens instead. Original tokens for the medium top app bar.

GroupTokenTypeReference chainResolved valueOther contexts
[Deprecated] Enabled › [Deprecated] Containermd.comp.top-app-bar.medium.container.color (deprecated)Colormd.sys.color.surface → md.ref.palette.neutral98#FEF7FFDark: #141218 via md.ref.palette.neutral6
[Deprecated] Enabled › [Deprecated] Containermd.comp.top-app-bar.medium.container.shape (deprecated)Shapemd.sys.shape.corner.noneRounded corners 0dp—
[Deprecated] Enabled › [Deprecated] Containermd.comp.top-app-bar.medium.container.height (deprecated)Length—112dp—
[Deprecated] Enabled › [Deprecated] Containermd.comp.top-app-bar.medium.container.elevation (deprecated)Elevationmd.sys.elevation.level00dp—
[Deprecated] Enabled › [Deprecated] Containermd.comp.top-app-bar.medium.container.surface-tint-layer.color (deprecated)Colormd.sys.color.surface-tint → md.sys.color.primary → md.ref.palette.primary40#6750A4Dark: #D0BCFF via md.ref.palette.primary80
Medium contrast: #4F378B via md.ref.palette.primary30
High contrast: #381E72 via md.ref.palette.primary20
[Deprecated] Enabled › [Deprecated] Leading iconmd.comp.top-app-bar.medium.leading-icon.size (deprecated)Length—24dp—
[Deprecated] Enabled › [Deprecated] Leading iconmd.comp.top-app-bar.medium.leading-icon.color (deprecated)Colormd.sys.color.on-surface → md.ref.palette.neutral10#1D1B20Dark: #E6E0E9 via md.ref.palette.neutral90
Medium contrast: #000000 via md.ref.palette.neutral0
High contrast: #000000 via md.ref.palette.neutral0
[Deprecated] Enabled › [Deprecated] Trailing iconmd.comp.top-app-bar.medium.trailing-icon.size (deprecated)Length—24dp—
[Deprecated] Enabled › [Deprecated] Trailing iconmd.comp.top-app-bar.medium.trailing-icon.color (deprecated)Colormd.sys.color.on-surface-variant → md.ref.palette.neutral-variant30#49454FDark: #CAC4D0 via md.ref.palette.neutral-variant80
Medium contrast: #322F37 via md.ref.palette.neutral-variant20
High contrast: #000000 via md.ref.palette.neutral-variant0
[Deprecated] Enabled › [Deprecated] Headlinemd.comp.top-app-bar.medium.headline.font (deprecated)Font namesmd.sys.typescale.headline-small.font → md.ref.typeface.brandRoboto—
[Deprecated] Enabled › [Deprecated] Headlinemd.comp.top-app-bar.medium.headline.line-height (deprecated)Line heightmd.sys.typescale.headline-small.line-height32pt—
[Deprecated] Enabled › [Deprecated] Headlinemd.comp.top-app-bar.medium.headline.size (deprecated)Font sizemd.sys.typescale.headline-small.size24pt—
[Deprecated] Enabled › [Deprecated] Headlinemd.comp.top-app-bar.medium.headline.tracking (deprecated)Font trackingmd.sys.typescale.headline-small.tracking0pt—
[Deprecated] Enabled › [Deprecated] Headlinemd.comp.top-app-bar.medium.headline.weight (deprecated)Font weightmd.sys.typescale.headline-small.weight → md.ref.typeface.weight-regular400—
[Deprecated] Enabled › [Deprecated] Headlinemd.comp.top-app-bar.medium.headline.type (deprecated)Typographycomposite
font names: md.comp.top-app-bar.medium.headline.font → md.sys.typescale.headline-small.font → md.ref.typeface.brand
font weight: md.comp.top-app-bar.medium.headline.weight → md.sys.typescale.headline-small.weight → md.ref.typeface.weight-regular
font size: md.comp.top-app-bar.medium.headline.size → md.sys.typescale.headline-small.size
line height: md.comp.top-app-bar.medium.headline.line-height → md.sys.typescale.headline-small.line-height
font tracking: md.comp.top-app-bar.medium.headline.tracking → md.sys.typescale.headline-small.tracking
Roboto · weight 400 · size 24pt · line height 32pt · tracking 0pt—
[Deprecated] Enabled › [Deprecated] Headlinemd.comp.top-app-bar.medium.headline.color (deprecated)Colormd.sys.color.on-surface → md.ref.palette.neutral10#1D1B20Dark: #E6E0E9 via md.ref.palette.neutral90
Medium contrast: #000000 via md.ref.palette.neutral0
High contrast: #000000 via md.ref.palette.neutral0

[Deprecated] Top app bar - Large · md.comp.top-app-bar.large · 16 tokens

This token set is deprecated. Use `md.comp.app-bar` and `md.comp.app-bar.large` tokens instead. Original tokens for the large top app bar.

GroupTokenTypeReference chainResolved valueOther contexts
[Deprecated] Enabled › [Deprecated] Containermd.comp.top-app-bar.large.container.color (deprecated)Colormd.sys.color.surface → md.ref.palette.neutral98#FEF7FFDark: #141218 via md.ref.palette.neutral6
[Deprecated] Enabled › [Deprecated] Containermd.comp.top-app-bar.large.container.shape (deprecated)Shapemd.sys.shape.corner.noneRounded corners 0dp—
[Deprecated] Enabled › [Deprecated] Containermd.comp.top-app-bar.large.container.height (deprecated)Length—152dp—
[Deprecated] Enabled › [Deprecated] Containermd.comp.top-app-bar.large.container.elevation (deprecated)Elevationmd.sys.elevation.level00dp—
[Deprecated] Enabled › [Deprecated] Containermd.comp.top-app-bar.large.container.surface-tint-layer.color (deprecated)Colormd.sys.color.surface-tint → md.sys.color.primary → md.ref.palette.primary40#6750A4Dark: #D0BCFF via md.ref.palette.primary80
Medium contrast: #4F378B via md.ref.palette.primary30
High contrast: #381E72 via md.ref.palette.primary20
[Deprecated] Enabled › [Deprecated] Leading iconmd.comp.top-app-bar.large.leading-icon.size (deprecated)Length—24dp—
[Deprecated] Enabled › [Deprecated] Leading iconmd.comp.top-app-bar.large.leading-icon.color (deprecated)Colormd.sys.color.on-surface → md.ref.palette.neutral10#1D1B20Dark: #E6E0E9 via md.ref.palette.neutral90
Medium contrast: #000000 via md.ref.palette.neutral0
High contrast: #000000 via md.ref.palette.neutral0
[Deprecated] Enabled › [Deprecated] Trailing iconmd.comp.top-app-bar.large.trailing-icon.size (deprecated)Length—24dp—
[Deprecated] Enabled › [Deprecated] Trailing iconmd.comp.top-app-bar.large.trailing-icon.color (deprecated)Colormd.sys.color.on-surface-variant → md.ref.palette.neutral-variant30#49454FDark: #CAC4D0 via md.ref.palette.neutral-variant80
Medium contrast: #322F37 via md.ref.palette.neutral-variant20
High contrast: #000000 via md.ref.palette.neutral-variant0
[Deprecated] Enabled › [Deprecated] Headlinemd.comp.top-app-bar.large.headline.font (deprecated)Font namesmd.sys.typescale.headline-medium.font → md.ref.typeface.brandRoboto—
[Deprecated] Enabled › [Deprecated] Headlinemd.comp.top-app-bar.large.headline.line-height (deprecated)Line heightmd.sys.typescale.headline-medium.line-height36pt—
[Deprecated] Enabled › [Deprecated] Headlinemd.comp.top-app-bar.large.headline.size (deprecated)Font sizemd.sys.typescale.headline-medium.size28pt—
[Deprecated] Enabled › [Deprecated] Headlinemd.comp.top-app-bar.large.headline.tracking (deprecated)Font trackingmd.sys.typescale.headline-medium.tracking0pt—
[Deprecated] Enabled › [Deprecated] Headlinemd.comp.top-app-bar.large.headline.weight (deprecated)Font weightmd.sys.typescale.headline-medium.weight → md.ref.typeface.weight-regular400—
[Deprecated] Enabled › [Deprecated] Headlinemd.comp.top-app-bar.large.headline.type (deprecated)Typographycomposite
font names: md.comp.top-app-bar.large.headline.font → md.sys.typescale.headline-medium.font → md.ref.typeface.brand
font weight: md.comp.top-app-bar.large.headline.weight → md.sys.typescale.headline-medium.weight → md.ref.typeface.weight-regular
font size: md.comp.top-app-bar.large.headline.size → md.sys.typescale.headline-medium.size
line height: md.comp.top-app-bar.large.headline.line-height → md.sys.typescale.headline-medium.line-height
font tracking: md.comp.top-app-bar.large.headline.tracking → md.sys.typescale.headline-medium.tracking
Roboto · weight 400 · size 28pt · line height 36pt · tracking 0pt—
[Deprecated] Enabled › [Deprecated] Headlinemd.comp.top-app-bar.large.headline.color (deprecated)Colormd.sys.color.on-surface → md.ref.palette.neutral10#1D1B20Dark: #E6E0E9 via md.ref.palette.neutral90
Medium contrast: #000000 via md.ref.palette.neutral0
High contrast: #000000 via md.ref.palette.neutral0

[Deprecated] Top app bar - Small, Center-aligned · md.comp.top-app-bar.small.centered · 21 tokens

This token set is deprecated. Use `md.comp.app-bar` and `md.comp.app-bar.small` tokens instead. Original component tokens for the center-aligned top app bar.

GroupTokenTypeReference chainResolved valueOther contexts
Enabled › Avatarmd.comp.top-app-bar.small.centered.avatar.size (deprecated)Length—30dp—
Enabled › Avatarmd.comp.top-app-bar.small.centered.avatar.shape (deprecated)Shapemd.sys.shape.corner.fullCircular (fully rounded)—
Enabled › Containermd.comp.top-app-bar.small.centered.container.color (deprecated)Colormd.sys.color.surface → md.ref.palette.neutral98#FEF7FFDark: #141218 via md.ref.palette.neutral6
Enabled › Containermd.comp.top-app-bar.small.centered.container.shape (deprecated)Shapemd.sys.shape.corner.noneRounded corners 0dp—
Enabled › Containermd.comp.top-app-bar.small.centered.container.height (deprecated)Length—64dp—
Enabled › Containermd.comp.top-app-bar.small.centered.container.elevation (deprecated)Elevationmd.sys.elevation.level00dp—
Enabled › Containermd.comp.top-app-bar.small.centered.container.surface-tint-layer.color (deprecated)Colormd.sys.color.surface-tint → md.sys.color.primary → md.ref.palette.primary40#6750A4Dark: #D0BCFF via md.ref.palette.primary80
Medium contrast: #4F378B via md.ref.palette.primary30
High contrast: #381E72 via md.ref.palette.primary20
Enabled › Containermd.comp.top-app-bar.small.centered.on-scroll.container.shadow-color (deprecated)Colormd.sys.color.shadow → md.ref.palette.neutral0#000000—
Enabled › Containermd.comp.top-app-bar.small.centered.on-scroll.container.color (deprecated)Colormd.sys.color.surface-container → md.ref.palette.neutral94#F3EDF7Dark: #211F26 via md.ref.palette.neutral12
Enabled › Leading iconmd.comp.top-app-bar.small.centered.leading-icon.size (deprecated)Length—24dp—
Enabled › Leading iconmd.comp.top-app-bar.small.centered.leading-icon.color (deprecated)Colormd.sys.color.on-surface → md.ref.palette.neutral10#1D1B20Dark: #E6E0E9 via md.ref.palette.neutral90
Medium contrast: #000000 via md.ref.palette.neutral0
High contrast: #000000 via md.ref.palette.neutral0
Enabled › Trailing iconmd.comp.top-app-bar.small.centered.trailing-icon.size (deprecated)Length—24dp—
Enabled › Trailing iconmd.comp.top-app-bar.small.centered.trailing-icon.color (deprecated)Colormd.sys.color.on-surface-variant → md.ref.palette.neutral-variant30#49454FDark: #CAC4D0 via md.ref.palette.neutral-variant80
Medium contrast: #322F37 via md.ref.palette.neutral-variant20
High contrast: #000000 via md.ref.palette.neutral-variant0
Enabled › Headlinemd.comp.top-app-bar.small.centered.headline.font (deprecated)Font namesmd.sys.typescale.title-large.font → md.ref.typeface.brandRoboto—
Enabled › Headlinemd.comp.top-app-bar.small.centered.headline.line-height (deprecated)Line heightmd.sys.typescale.title-large.line-height28pt—
Enabled › Headlinemd.comp.top-app-bar.small.centered.headline.size (deprecated)Font sizemd.sys.typescale.title-large.size22pt—
Enabled › Headlinemd.comp.top-app-bar.small.centered.headline.tracking (deprecated)Font trackingmd.sys.typescale.title-large.tracking0pt—
Enabled › Headlinemd.comp.top-app-bar.small.centered.headline.weight (deprecated)Font weightmd.sys.typescale.title-large.weight → md.ref.typeface.weight-regular400—
Enabled › Headlinemd.comp.top-app-bar.small.centered.headline.type (deprecated)Typographycomposite
font names: md.comp.top-app-bar.small.centered.headline.font → md.sys.typescale.title-large.font → md.ref.typeface.brand
font weight: md.comp.top-app-bar.small.centered.headline.weight → md.sys.typescale.title-large.weight → md.ref.typeface.weight-regular
font size: md.comp.top-app-bar.small.centered.headline.size → md.sys.typescale.title-large.size
line height: md.comp.top-app-bar.small.centered.headline.line-height → md.sys.typescale.title-large.line-height
font tracking: md.comp.top-app-bar.small.centered.headline.tracking → md.sys.typescale.title-large.tracking
Roboto · weight 400 · size 22pt · line height 28pt · tracking 0pt—
Enabled › Headlinemd.comp.top-app-bar.small.centered.headline.color (deprecated)Colormd.sys.color.on-surface → md.ref.palette.neutral10#1D1B20Dark: #E6E0E9 via md.ref.palette.neutral90
Medium contrast: #000000 via md.ref.palette.neutral0
High contrast: #000000 via md.ref.palette.neutral0
Enabled › On scrollmd.comp.top-app-bar.small.centered.on-scroll.container.elevation (deprecated)Elevationmd.sys.elevation.level23dp—

Color ​

Color values are implemented through design tokens. For designers, this means working with color values that correspond with tokens. In implementation, a color value will be a token that references a value. Learn more about design tokens

4 color roles of the medium top app bar in light and dark scheme.

Medium top app bar color roles used for light and dark schemes:

  1. Surface
  2. On surface
  3. On surface
  4. On surface variant

Measurements ​

Medium app bar ​

Diagram of medium app bar padding and size measurements.

Medium app bar padding and size measurements

Large app bar ​

Diagram of large app bar padding and size measurements.

Large app bar padding and size measurements

Unofficial offline mirror. Content © Google, licensed under CC BY 4.0.