<label class="switch">
<input type="checkbox" checked/>
<div class="indicator left"></div>
<div class="indicator right"></div>
<div class="button"></div>
</label>
<style>
body,
html {
width: 100vw;
height: 100vh;
}
body {
background-image: linear-gradient(135deg, hsl(var(--hue) 20% 95%), hsl(var(--hue) 20% 80%));
display: flex;
align-items: center;
justify-content: center;
--hue: 220deg;
--width: 23rem;
--accent-hue: 22deg;
--duration: 0.6