afx-switch span{ display: inline-block; width: 30px; height:24px; cursor: pointer; font-size: 24px; font-family: "FontAwesome"; } afx-switch span:before{ content: "\f204"; color: #414339; font-style: normal; font-weight: normal; } afx-switch span.swon:before{ content: "\f205"; color: #116cd6; font-style: normal; font-weight: normal; }