TokenCatalog

Material Design 3 "Switch" tokens and playground

Playground

Plain
Icon

Browse tokens

See more values

Compare token values by selecting another context.

Platform
Theme
Contrast
More contexts
Audience

Token
Enabled
Icon
Icon tokens
TokenValue
Switch selected icon color
md.comp.switch.selected.icon.color
#6750A4
Switch selected icon size
md.comp.switch.selected.icon.size
16dp
Switch unselected icon color
md.comp.switch.unselected.icon.color
#E6E0E9
Switch unselected icon size
md.comp.switch.unselected.icon.size
16dp
Track
Track tokens
TokenValue
Switch track height
md.comp.switch.track.height
32dp
Switch track width
md.comp.switch.track.width
52dp
Switch track outline color
md.comp.switch.unselected.track.outline.color
#79747E
Switch track outline width
md.comp.switch.track.outline.width
2dp
Switch track shape
md.comp.switch.track.shape
Full
Switch selected track color
md.comp.switch.selected.track.color
#6750A4
Switch unselected track color
md.comp.switch.unselected.track.color
#E6E0E9
Handle
Handle tokens
TokenValue
Switch unselected handle height
md.comp.switch.unselected.handle.height
16dp
Switch with icon handle height
md.comp.switch.with-icon.handle.height
24dp
Switch selected handle height
md.comp.switch.selected.handle.height
24dp
Switch pressed handle height
md.comp.switch.pressed.handle.height
28dp
Switch unselected handle width
md.comp.switch.unselected.handle.width
16dp
Switch with icon handle width
md.comp.switch.with-icon.handle.width
24dp
Switch selected handle width
md.comp.switch.selected.handle.width
24dp
Switch pressed handle width
md.comp.switch.pressed.handle.width
28dp
Switch handle shape
md.comp.switch.handle.shape
Full
Switch selected handle color
md.comp.switch.selected.handle.color
#FFFFFF
Switch unselected handle color
md.comp.switch.unselected.handle.color
#79747E
Switch handle shadow color
md.comp.switch.handle.shadow-color
#000000
Switch handle elevation
md.comp.switch.handle.elevation
1dp
Switch handle height
md.comp.switch.handle.height
20dp
Switch handle width
md.comp.switch.handle.width
20dp
State layer
State layer tokens
TokenValue
Switch state layer size
md.comp.switch.state-layer.size
40dp
Switch state layer shape
md.comp.switch.state-layer.shape
Full
Disabled
Icon
Icon tokens
TokenValue
Switch disabled selected icon color
md.comp.switch.disabled.selected.icon.color
#1D1B20
Switch disabled selected icon opacity
md.comp.switch.disabled.selected.icon.opacity
38%
Switch disabled unselected icon color
md.comp.switch.disabled.unselected.icon.color
#E6E0E9
Switch disabled unselected icon opacity
md.comp.switch.disabled.unselected.icon.opacity
38%
Track
Track tokens
TokenValue
Switch disabled track opacity
md.comp.switch.disabled.track.opacity
12%
Switch disabled selected track color
md.comp.switch.disabled.selected.track.color
#1D1B20
Switch disabled unselected track color
md.comp.switch.disabled.unselected.track.color
#E6E0E9
Switch disabled unselected track outline color
md.comp.switch.disabled.unselected.track.outline.color
#1D1B20
Handle
Handle tokens
TokenValue
Switch disabled unselected handle opacity
md.comp.switch.disabled.unselected.handle.opacity
38%
Switch disabled selected handle opacity
md.comp.switch.disabled.selected.handle.opacity
100%
Switch disabled selected handle color
md.comp.switch.disabled.selected.handle.color
#FEF7FF
Switch disabled unselected handle color
md.comp.switch.disabled.unselected.handle.color
#1D1B20
Switch disabled handle opacity
md.comp.switch.disabled.handle.opacity
38%
Switch disabled handle elevation
md.comp.switch.disabled.handle.elevation
0dp
Hovered
Icon
Icon tokens
TokenValue
Switch selected hover icon color
md.comp.switch.selected.hover.icon.color
#6750A4
Switch unselected hover icon color
md.comp.switch.unselected.hover.icon.color
#E6E0E9
Track
Track tokens
TokenValue
Switch selected hover track color
md.comp.switch.selected.hover.track.color
#6750A4
Switch selected hover state layer color
md.comp.switch.selected.hover.state-layer.color
#6750A4
Switch selected hover state layer opacity
md.comp.switch.selected.hover.state-layer.opacity
8%
Switch unselected hover track color
md.comp.switch.unselected.hover.track.color
#E6E0E9
Switch unselected hover track outline color
md.comp.switch.unselected.hover.track.outline.color
#79747E
Switch unselected hover state layer color
md.comp.switch.unselected.hover.state-layer.color
#1D1B20
Switch unselected hover state layer opacity
md.comp.switch.unselected.hover.state-layer.opacity
8%
Handle
Handle tokens
TokenValue
Switch selected hover handle color
md.comp.switch.selected.hover.handle.color
#EADDFF
Switch unselected hover handle color
md.comp.switch.unselected.hover.handle.color
#49454F
Focused
Focus indicator
Focus indicator tokens
TokenValue
Switch focus indicator color
md.comp.switch.focus.indicator.color
#625B71
Switch focus indicator thickness
md.comp.switch.focus.indicator.thickness
3dp
Switch focus indicator offset
md.comp.switch.focus.indicator.offset
2dp
Icon
Icon tokens
TokenValue
Switch selected focus icon color
md.comp.switch.selected.focus.icon.color
#6750A4
Switch unselected focus icon color
md.comp.switch.unselected.focus.icon.color
#E6E0E9
Track
Track tokens
TokenValue
Switch selected focus track color
md.comp.switch.selected.focus.track.color
#6750A4
Switch selected focus state layer color
md.comp.switch.selected.focus.state-layer.color
#6750A4
Switch selected focus state layer opacity
md.comp.switch.selected.focus.state-layer.opacity
10%
Switch unselected focus track color
md.comp.switch.unselected.focus.track.color
#E6E0E9
Switch unselected focus track outline color
md.comp.switch.unselected.focus.track.outline.color
#79747E
Switch unselected focus state layer color
md.comp.switch.unselected.focus.state-layer.color
#1D1B20
Switch unselected focus state layer opacity
md.comp.switch.unselected.focus.state-layer.opacity
10%
Handle
Handle tokens
TokenValue
Switch selected focus handle color
md.comp.switch.selected.focus.handle.color
#EADDFF
Switch unselected focus handle color
md.comp.switch.unselected.focus.handle.color
#49454F
Pressed (ripple)
Icon
Icon tokens
TokenValue
Switch selected pressed icon color
md.comp.switch.selected.pressed.icon.color
#6750A4
Switch unselected pressed icon color
md.comp.switch.unselected.pressed.icon.color
#E6E0E9
Track
Track tokens
TokenValue
Switch selected pressed track color
md.comp.switch.selected.pressed.track.color
#6750A4
Switch selected pressed state layer color
md.comp.switch.selected.pressed.state-layer.color
#6750A4
Switch selected pressed state layer opacity
md.comp.switch.selected.pressed.state-layer.opacity
10%
Switch unselected pressed track color
md.comp.switch.unselected.pressed.track.color
#E6E0E9
Switch unselected pressed track outline color
md.comp.switch.unselected.pressed.track.outline.color
#79747E
Switch unselected pressed state layer color
md.comp.switch.unselected.pressed.state-layer.color
#1D1B20
Switch unselected pressed state layer opacity
md.comp.switch.unselected.pressed.state-layer.opacity
10%
Handle
Handle tokens
TokenValue
Switch selected pressed handle color
md.comp.switch.selected.pressed.handle.color
#EADDFF
Switch unselected pressed handle color
md.comp.switch.unselected.pressed.handle.color
#49454F
View this table only