feat: add style for custom switch

main
Josue 4 years ago committed by Tsu-ba-me
parent 75d28f441c
commit 7fac054bc4
  1. 8
      striker-ui/theme/index.ts

@ -25,16 +25,24 @@ const theme: Theme = createMuiTheme({
},
overrides: {
MuiSwitch: {
switchBase: {
// Controls default (unchecked) color for the thumb
color: '#fff',
},
root: {
padding: 8,
},
track: {
borderRadius: 0,
border: 3,
backgroundColor: PURPLE_OFF,
'$checked$checked + &': {
// Controls checked color for the track
backgroundColor: BLUE,
},
'&$checked + $track': {
opacity: 1,
},
},
thumb: {
color: TEXT,

Loading…
Cancel
Save