@mixin switch-variant($color) { input:checked + label::before { background-color: $color; } }