.ant-switch { background-color: red } .ant-switch-checked { background-color: #87D068; }