Skip to content

Tooltips ​

Tooltips display brief labels or messages. Tooltips are informative, specific, and action-oriented text labels that provide contextual support

Overview · Specs · Guidelines · Accessibility

Tokens & specs ​

Select a component variant below to see its attributes, tokens, and values.

Design tokens

Token table

Machine-readable relationship table

Tooltips tokens · 2 token sets · 44 tokens · live token table · DSDB TOKEN_TABLE.37697297db0555a6

  • 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.

Tooltip - Plain · md.comp.plain-tooltip · 9 tokens

For plain tooltips.

GroupTokenTypeReference chainResolved valueOther contexts
Enabled › Containermd.comp.plain-tooltip.container.colorColormd.sys.color.inverse-surface → md.ref.palette.neutral20#322F35Dark: #E6E0E9 via md.ref.palette.neutral90
Enabled › Containermd.comp.plain-tooltip.container.shapeShapemd.sys.shape.corner.extra-smallRounded corners 4dp—
Enabled › Supporting textmd.comp.plain-tooltip.supporting-text.fontFont namesmd.sys.typescale.body-small.font → md.ref.typeface.plainRoboto—
Enabled › Supporting textmd.comp.plain-tooltip.supporting-text.line-heightLine heightmd.sys.typescale.body-small.line-height16pt—
Enabled › Supporting textmd.comp.plain-tooltip.supporting-text.sizeFont sizemd.sys.typescale.body-small.size12pt—
Enabled › Supporting textmd.comp.plain-tooltip.supporting-text.weightFont weightmd.sys.typescale.body-small.weight → md.ref.typeface.weight-regular400—
Enabled › Supporting textmd.comp.plain-tooltip.supporting-text.trackingFont trackingmd.sys.typescale.body-small.tracking0.4pt—
Enabled › Supporting textmd.comp.plain-tooltip.supporting-text.typeTypographycomposite
font names: md.comp.plain-tooltip.supporting-text.font → md.sys.typescale.body-small.font → md.ref.typeface.plain
font weight: md.comp.plain-tooltip.supporting-text.weight → md.sys.typescale.body-small.weight → md.ref.typeface.weight-regular
font size: md.comp.plain-tooltip.supporting-text.size → md.sys.typescale.body-small.size
line height: md.comp.plain-tooltip.supporting-text.line-height → md.sys.typescale.body-small.line-height
font tracking: md.comp.plain-tooltip.supporting-text.tracking → md.sys.typescale.body-small.tracking
Roboto · weight 400 · size 12pt · line height 16pt · tracking 0.4pt—
Enabled › Supporting textmd.comp.plain-tooltip.supporting-text.colorColormd.sys.color.inverse-on-surface → md.ref.palette.neutral95#F5EFF7Dark: #322F35 via md.ref.palette.neutral20
Medium contrast: #FFFFFF via md.ref.palette.neutral100
High contrast: #FFFFFF via md.ref.palette.neutral100

Tooltip - Rich · md.comp.rich-tooltip · 35 tokens

For rich tooltips.

GroupTokenTypeReference chainResolved valueOther contexts
Enabled › Containermd.comp.rich-tooltip.container.colorColormd.sys.color.surface-container → md.ref.palette.neutral94#F3EDF7Dark: #211F26 via md.ref.palette.neutral12
Enabled › Containermd.comp.rich-tooltip.container.elevationElevationmd.sys.elevation.level23dp—
Enabled › Containermd.comp.rich-tooltip.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.rich-tooltip.container.shadow-colorColormd.sys.color.shadow → md.ref.palette.neutral0#000000—
Enabled › Containermd.comp.rich-tooltip.container.shapeShapemd.sys.shape.corner.mediumRounded corners 12dp—
Enabled › Label textmd.comp.rich-tooltip.action.label-text.fontFont namesmd.sys.typescale.label-large.font → md.ref.typeface.plainRoboto—
Enabled › Label textmd.comp.rich-tooltip.action.label-text.line-heightLine heightmd.sys.typescale.label-large.line-height20pt—
Enabled › Label textmd.comp.rich-tooltip.action.label-text.sizeFont sizemd.sys.typescale.label-large.size14pt—
Enabled › Label textmd.comp.rich-tooltip.action.label-text.weightFont weightmd.sys.typescale.label-large.weight → md.ref.typeface.weight-medium500—
Enabled › Label textmd.comp.rich-tooltip.action.label-text.trackingFont trackingmd.sys.typescale.label-large.tracking0.1pt—
Enabled › Label textmd.comp.rich-tooltip.action.label-text.typeTypographycomposite
font names: md.comp.rich-tooltip.action.label-text.font → md.sys.typescale.label-large.font → md.ref.typeface.plain
font weight: md.comp.rich-tooltip.action.label-text.weight → md.sys.typescale.label-large.weight → md.ref.typeface.weight-medium
font size: md.comp.rich-tooltip.action.label-text.size → md.sys.typescale.label-large.size
line height: md.comp.rich-tooltip.action.label-text.line-height → md.sys.typescale.label-large.line-height
font tracking: md.comp.rich-tooltip.action.label-text.tracking → md.sys.typescale.label-large.tracking
Roboto · weight 500 · size 14pt · line height 20pt · tracking 0.1pt—
Enabled › Label textmd.comp.rich-tooltip.action.label-text.colorColormd.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 › Subheadmd.comp.rich-tooltip.subhead.fontFont namesmd.sys.typescale.title-small.font → md.ref.typeface.plainRoboto—
Enabled › Subheadmd.comp.rich-tooltip.subhead.line-heightLine heightmd.sys.typescale.title-small.line-height20pt—
Enabled › Subheadmd.comp.rich-tooltip.subhead.sizeFont sizemd.sys.typescale.title-small.size14pt—
Enabled › Subheadmd.comp.rich-tooltip.subhead.weightFont weightmd.sys.typescale.title-small.weight → md.ref.typeface.weight-medium500—
Enabled › Subheadmd.comp.rich-tooltip.subhead.trackingFont trackingmd.sys.typescale.title-small.tracking0.1pt—
Enabled › Subheadmd.comp.rich-tooltip.subhead.typeTypographycomposite
font names: md.comp.rich-tooltip.subhead.font → md.sys.typescale.title-small.font → md.ref.typeface.plain
font weight: md.comp.rich-tooltip.subhead.weight → md.sys.typescale.title-small.weight → md.ref.typeface.weight-medium
font size: md.comp.rich-tooltip.subhead.size → md.sys.typescale.title-small.size
line height: md.comp.rich-tooltip.subhead.line-height → md.sys.typescale.title-small.line-height
font tracking: md.comp.rich-tooltip.subhead.tracking → md.sys.typescale.title-small.tracking
Roboto · weight 500 · size 14pt · line height 20pt · tracking 0.1pt—
Enabled › Subheadmd.comp.rich-tooltip.subhead.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
Enabled › Supporting textmd.comp.rich-tooltip.supporting-text.fontFont namesmd.sys.typescale.body-medium.font → md.ref.typeface.plainRoboto—
Enabled › Supporting textmd.comp.rich-tooltip.supporting-text.line-heightLine heightmd.sys.typescale.body-medium.line-height20pt—
Enabled › Supporting textmd.comp.rich-tooltip.supporting-text.sizeFont sizemd.sys.typescale.body-medium.size14pt—
Enabled › Supporting textmd.comp.rich-tooltip.supporting-text.weightFont weightmd.sys.typescale.body-medium.weight → md.ref.typeface.weight-regular400—
Enabled › Supporting textmd.comp.rich-tooltip.supporting-text.trackingFont trackingmd.sys.typescale.body-medium.tracking0.25pt—
Enabled › Supporting textmd.comp.rich-tooltip.supporting-text.typeTypographycomposite
font names: md.comp.rich-tooltip.supporting-text.font → md.sys.typescale.body-medium.font → md.ref.typeface.plain
font weight: md.comp.rich-tooltip.supporting-text.weight → md.sys.typescale.body-medium.weight → md.ref.typeface.weight-regular
font size: md.comp.rich-tooltip.supporting-text.size → md.sys.typescale.body-medium.size
line height: md.comp.rich-tooltip.supporting-text.line-height → md.sys.typescale.body-medium.line-height
font tracking: md.comp.rich-tooltip.supporting-text.tracking → md.sys.typescale.body-medium.tracking
Roboto · weight 400 · size 14pt · line height 20pt · tracking 0.25pt—
Enabled › Supporting textmd.comp.rich-tooltip.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
Hovered › Label textmd.comp.rich-tooltip.action.hover.label-text.colorColormd.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
Hovered › State layermd.comp.rich-tooltip.action.hover.state-layer.colorColormd.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
Hovered › State layermd.comp.rich-tooltip.action.hover.state-layer.opacityOpacitymd.sys.state.hover.state-layer-opacity0.08—
Focused › Label textmd.comp.rich-tooltip.action.focus.label-text.colorColormd.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
Focused › State layermd.comp.rich-tooltip.action.focus.state-layer.colorColormd.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
Focused › State layermd.comp.rich-tooltip.action.focus.state-layer.opacityOpacitymd.sys.state.focus.state-layer-opacity0.1—
Pressed (ripple) › Label textmd.comp.rich-tooltip.action.pressed.label-text.colorColormd.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
Pressed (ripple) › State layermd.comp.rich-tooltip.action.pressed.state-layer.colorColormd.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
Pressed (ripple) › State layermd.comp.rich-tooltip.action.pressed.state-layer.opacityOpacitymd.sys.state.pressed.state-layer-opacity0.1—

Plain tooltip ​

2 elements of a plain tooltip.

  1. Supporting text
  2. Container

Plain tooltip colors ​

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

2 color roles of a plain tooltip.

Plain tooltip color roles used for light and dark themes:

  1. Inverse on surface
  2. Inverse surface

Plain tooltip measurements ​

Measurements of a plain tooltip.

Plain tooltip padding and size measurements

AttributeValue
Container height24dp
Padding8dp

Rich tooltip ​

4 elements of a rich tooltip.

  1. Subhead
  2. Container
  3. Supporting text
  4. Text button

Rich tooltip colors ​

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

4 color roles of a rich tooltip.

Rich tooltip color roles used for light and dark themes:

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

Rich tooltip measurements ​

Measurements of a rich tooltip.

Rich tooltip padding and size measurements

AttributeValue
Top padding12dp
Bottom padding8dp
Left and right padding16dp

Rich tooltip configurations ​

Rich tooltips can have a headline, body, and up to two buttons. The headline and number of buttons can be configured.

5 common configurations of a rich tooltip.

  1. Subhead, supporting text, and two buttons
  2. Subhead, supporting text, and one button
  3. Subhead and supporting text
  4. Supporting text and one button
  5. Supporting text and two buttons

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