<label class="ui-switch"> <input type="checkbox"> <div class="slider"> <div class="circle"></div> </div> </label>
.ui-switch { --switch-bg: rgb(135, 150, 165); --switch-width: 48px; --switch-height: 20px; --circle-diameter: 32px; --circle-bg: rgb(0, 56, 146); --circle-inset: calc((var(--circle-diameter) - var(--switch-height)) / 2); } .ui-switch input {