VanillaReactLight & dark366 views
A two-word segmented theme control whose pill moves edge-first: its leading edge lunges to the other word and drags the night behind it, then the trailing edge follows and the pill snaps taut around the new label.
Get the code for free
Create a free account to copy or download the full source.
Switch component
A two-word segmented theme control whose pill moves edge-first: its leading edge lunges to the other word and drags the night behind it, then the trailing edge follows and the pill snaps taut around the new label.
Open Theme Toggle Labeled in Atheros AI Builder, pick a design system and ask the AI assistant to change the layout, copy or behaviour — the switch is regenerated against your tokens. Take the HTML, CSS, JS and React source with you, or pull it into your repo from Claude Code, Cursor or Codex over MCP.
Starting at $9.9 per month, billed annually
Don't miss a beat with our newsletter!
BUILDER
ABOUT US
© 2026 Atheros Intelligence Ltd.