<label class="switch eby-switch" aria-label="Switch"> <input type="checkbox" checked="" /> <div class="slider"> <div class="circle"> <svg class="cross" viewBox="0 0 24 24" aria-hidden="true"> <path d="M6 6L18 18M18 6L6 18"></path> </svg> <svg class="checkmark" viewBox="0 0 24 24" aria-hidden="true"> <path d="M5 13l4 4L19 7"></path> </svg> </div> </div>
.switch.eby-switch { --switch-width: 48px; --switch-height: 22px; --switch-radius: 4px; --switch-bg: #cecece; --switch-checked-bg: #f7931a; --switch-offset: calc((var(--switch-height) - var(--circle-diameter)) / 2); --switch-transition: all 0.2s cubic-bezier(0.27, 0.2, 0.25, 1.51); --circle-diameter: 16px; --circle-radius: 4px; --circle-bg: #eeeaea;