If you nest the input and label you can get rid of "for" and "id":
<label>light<input type=radio name=theme value=l></label> <label>light<input type=radio name=theme value=l></label>
I'd much rather write:
And it'd be an actual switch with one label on each side and I'd get the value with theme.value