OPEN SOURCE Tune Switch — thumb travel
Sound
Esc to close
Why it works
The thumb's travel and the track's colour run on the same timing, so on and off read as a single move rather than two changes.
When to use it
Settings that apply immediately, without a save button.
Things to watch
A native checkbox with `role="switch"`, so Space toggles it and the state is announced. Travel is gated by reduced motion.
Implementation clues
- translateX on :checked
- colour transition
- size tokens
- role=switch