Material Design 3 "Switch" tokens: All tokens
Playground
Browse tokens
Switch
Enabled
Icon
| Token | Value |
|---|---|
Switch selected icon color md.comp.switch.selected.icon.color | #6750A4 #6750A4 |
Switch selected icon size md.comp.switch.selected.icon.size | 16dp 16dp
|
Switch unselected icon color md.comp.switch.unselected.icon.color | #E6E0E9 #E6E0E9 |
Switch unselected icon size md.comp.switch.unselected.icon.size | 16dp 16dp
|
Track
| Token | Value |
|---|---|
Switch selected track color md.comp.switch.selected.track.color | #6750A4 #6750A4 |
Switch track height md.comp.switch.track.height | 32dp 32dp
|
Switch track outline width md.comp.switch.track.outline.width | 2dp 2dp
|
Switch track shape md.comp.switch.track.shape | Full |
Switch track width md.comp.switch.track.width | 52dp 52dp
|
Switch unselected track color md.comp.switch.unselected.track.color | #E6E0E9 #E6E0E9 |
Switch track outline color md.comp.switch.unselected.track.outline.color | #79747E #79747E |
Handle
| Token | Value |
|---|---|
Switch handle elevation Deprecated tokenThe Material Switch component has been updated to a new design. Deprecated tokens are no longer required, new tokens have been added and token values updated. The new tokens only correspond to the new design md.comp.switch.handle.elevation | 1dp |
Switch handle height Deprecated tokenThe Material Switch component has been updated to a new design. Deprecated tokens are no longer required, new tokens have been added and token values updated. The new tokens only correspond to the new design md.comp.switch.handle.height | 20dp 20dp
|
Switch handle shadow color Deprecated tokenThe Material Switch component has been updated to a new design. Deprecated tokens are no longer required, new tokens have been added and token values updated. The new tokens only correspond to the new design md.comp.switch.handle.shadow-color | #000000 #000000 |
Switch handle shape md.comp.switch.handle.shape | Full |
Switch handle width Deprecated tokenThe Material Switch component has been updated to a new design. Deprecated tokens are no longer required, new tokens have been added and token values updated. The new tokens only correspond to the new design md.comp.switch.handle.width | 20dp 20dp
|
Switch pressed handle height md.comp.switch.pressed.handle.height | 28dp 28dp
|
Switch pressed handle width md.comp.switch.pressed.handle.width | 28dp 28dp
|
Switch selected handle color md.comp.switch.selected.handle.color | #FFFFFF #FFFFFF |
Switch selected handle height md.comp.switch.selected.handle.height | 24dp 24dp
|
Switch selected handle width md.comp.switch.selected.handle.width | 24dp 24dp
|
Switch unselected handle color md.comp.switch.unselected.handle.color | #79747E #79747E |
Switch unselected handle height md.comp.switch.unselected.handle.height | 16dp 16dp
|
Switch unselected handle width md.comp.switch.unselected.handle.width | 16dp 16dp
|
Switch with icon handle height md.comp.switch.with-icon.handle.height | 24dp 24dp
|
Switch with icon handle width md.comp.switch.with-icon.handle.width | 24dp 24dp
|
State layer
| Token | Value |
|---|---|
Switch state layer shape md.comp.switch.state-layer.shape | Full |
Switch state layer size md.comp.switch.state-layer.size | 40dp 40dp
|
Disabled
Icon
| Token | Value |
|---|---|
Switch disabled selected icon color md.comp.switch.disabled.selected.icon.color | #1D1B20 #1D1B20 |
Switch disabled selected icon opacity md.comp.switch.disabled.selected.icon.opacity | 38% 38%
|
Switch disabled unselected icon color md.comp.switch.disabled.unselected.icon.color | #E6E0E9 #E6E0E9 |
Switch disabled unselected icon opacity md.comp.switch.disabled.unselected.icon.opacity | 38% 38%
|
Track
| Token | Value |
|---|---|
Switch disabled selected track color md.comp.switch.disabled.selected.track.color | #1D1B20 #1D1B20 |
Switch disabled track opacity md.comp.switch.disabled.track.opacity | 12% 12%
|
Switch disabled unselected track color md.comp.switch.disabled.unselected.track.color | #E6E0E9 #E6E0E9 |
Switch disabled unselected track outline color md.comp.switch.disabled.unselected.track.outline.color | #1D1B20 #1D1B20 |
Handle
| Token | Value |
|---|---|
Switch disabled handle elevation Deprecated tokenThe Material Switch component has been updated to a new design. Deprecated tokens are no longer required, new tokens have been added and token values updated. The new tokens only correspond to the new design md.comp.switch.disabled.handle.elevation | 0dp |
Switch disabled handle opacity Deprecated tokenThe Material Switch component has been updated to a new design. Deprecated tokens are no longer required, new tokens have been added and token values updated. The new tokens only correspond to the new design md.comp.switch.disabled.handle.opacity | 38% 38%
|
Switch disabled selected handle color md.comp.switch.disabled.selected.handle.color | #FEF7FF #FEF7FF |
Switch disabled selected handle opacity md.comp.switch.disabled.selected.handle.opacity | 100% 100%
|
Switch disabled unselected handle color md.comp.switch.disabled.unselected.handle.color | #1D1B20 #1D1B20 |
Switch disabled unselected handle opacity md.comp.switch.disabled.unselected.handle.opacity | 38% 38%
|
Hovered
Icon
| Token | Value |
|---|---|
Switch selected hover icon color md.comp.switch.selected.hover.icon.color | #6750A4 #6750A4 |
Switch unselected hover icon color md.comp.switch.unselected.hover.icon.color | #E6E0E9 #E6E0E9 |
Track
| Token | Value |
|---|---|
Switch selected hover state layer color md.comp.switch.selected.hover.state-layer.color | #6750A4 #6750A4 |
Switch selected hover state layer opacity md.comp.switch.selected.hover.state-layer.opacity | 8% 8% |
Switch selected hover track color md.comp.switch.selected.hover.track.color | #6750A4 #6750A4 |
Switch unselected hover state layer color md.comp.switch.unselected.hover.state-layer.color | #1D1B20 #1D1B20 |
Switch unselected hover state layer opacity md.comp.switch.unselected.hover.state-layer.opacity | 8% 8% |
Switch unselected hover track color md.comp.switch.unselected.hover.track.color | #E6E0E9 #E6E0E9 |
Switch unselected hover track outline color md.comp.switch.unselected.hover.track.outline.color | #79747E #79747E |
Handle
| Token | Value |
|---|---|
Switch selected hover handle color md.comp.switch.selected.hover.handle.color | #EADDFF #EADDFF |
Switch unselected hover handle color md.comp.switch.unselected.hover.handle.color | #49454F #49454F |
Focused
Focus indicator
| Token | Value |
|---|---|
Switch focus indicator color md.comp.switch.focus.indicator.color | #625B71 #625B71 |
Switch focus indicator offset md.comp.switch.focus.indicator.offset | 2dp 2dp |
Switch focus indicator thickness md.comp.switch.focus.indicator.thickness | 3dp 3dp |
Icon
| Token | Value |
|---|---|
Switch selected focus icon color md.comp.switch.selected.focus.icon.color | #6750A4 #6750A4 |
Switch unselected focus icon color md.comp.switch.unselected.focus.icon.color | #E6E0E9 #E6E0E9 |
Track
| Token | Value |
|---|---|
Switch selected focus state layer color md.comp.switch.selected.focus.state-layer.color | #6750A4 #6750A4 |
Switch selected focus state layer opacity md.comp.switch.selected.focus.state-layer.opacity | 10% 10% |
Switch selected focus track color md.comp.switch.selected.focus.track.color | #6750A4 #6750A4 |
Switch unselected focus state layer color md.comp.switch.unselected.focus.state-layer.color | #1D1B20 #1D1B20 |
Switch unselected focus state layer opacity md.comp.switch.unselected.focus.state-layer.opacity | 10% 10% |
Switch unselected focus track color md.comp.switch.unselected.focus.track.color | #E6E0E9 #E6E0E9 |
Switch unselected focus track outline color md.comp.switch.unselected.focus.track.outline.color | #79747E #79747E |
Handle
| Token | Value |
|---|---|
Switch selected focus handle color md.comp.switch.selected.focus.handle.color | #EADDFF #EADDFF |
Switch unselected focus handle color md.comp.switch.unselected.focus.handle.color | #49454F #49454F |
Pressed (ripple)
Icon
| Token | Value |
|---|---|
Switch selected pressed icon color md.comp.switch.selected.pressed.icon.color | #6750A4 #6750A4 |
Switch unselected pressed icon color md.comp.switch.unselected.pressed.icon.color | #E6E0E9 #E6E0E9 |
Track
| Token | Value |
|---|---|
Switch selected pressed state layer color md.comp.switch.selected.pressed.state-layer.color | #6750A4 #6750A4 |
Switch selected pressed state layer opacity md.comp.switch.selected.pressed.state-layer.opacity | 10% 10% |
Switch selected pressed track color md.comp.switch.selected.pressed.track.color | #6750A4 #6750A4 |
Switch unselected pressed state layer color md.comp.switch.unselected.pressed.state-layer.color | #1D1B20 #1D1B20 |
Switch unselected pressed state layer opacity md.comp.switch.unselected.pressed.state-layer.opacity | 10% 10% |
Switch unselected pressed track color md.comp.switch.unselected.pressed.track.color | #E6E0E9 #E6E0E9 |
Switch unselected pressed track outline color md.comp.switch.unselected.pressed.track.outline.color | #79747E #79747E |
Handle
| Token | Value |
|---|---|
Switch selected pressed handle color md.comp.switch.selected.pressed.handle.color | #EADDFF #EADDFF |
Switch unselected pressed handle color md.comp.switch.unselected.pressed.handle.color | #49454F #49454F |
No tokens match these filters.