<div class="container"> <label class="switch"> <input role="switch" type="checkbox" class="switch__input"> <svg aria-hidden="true" height="12px" width="12px" viewBox="0 0 12 12" class="switch__icon switch__icon--light"> <g stroke-linecap="round" stroke-width="1" stroke="#fff" fill="none"> <circle r="2" cy="6" cx="6"></circle> <g stroke-dasharray="1.5 1.5"> <polyline transform="rotate(0,6,6)" points="6 10,6 11.5"></polyline> <polyline transform="rotate(45,6,6)" points="6 10,6 11.5"></polyline> <polyline transform="rotate(90,6,6)" points="6 10,6 11.5"></polyline> <polyline transform="rotate(135,6,6)" points="6 10,6 11.5"></polyline> <polyline transform="rotate(180,6,6)" points="6 10,6 11.5"></polyline>
:root { --hue: 223; --bg: hsl(var(--hue),10%,90%); --fg: hsl(var(--hue),10%,10%); --primary: hsl(var(--hue),90%,50%); --trans-dur: 0.3s; --trans-timing: cubic-bezier(0.76,0.05,0.24,0.95); --trans-timing-in: cubic-bezier(0.76,0.05,0.86,0.06); --trans-timing-out: cubic-bezier(0.05,0.76,0.06,0.86); font-size: calc(40px + (80 - 40) * (100px - 320px) / (2560 - 320)); }