Text shown when active
Text shown when inactive
30–120
Hex or named colour
Hex or named colour
Background when off
0–2
Base class
Quick colour preset
Live preview — click to toggle
The switch uses a native
input[type="checkbox"] so it works without any JavaScript. Styles scale with the size value; paste the CSS and wrap your own checkbox in the same label. Everything runs in your browser.