Peach
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initTogglePeach(el) on the mounted element instead.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/toggle-peachAbout this component
A small pastel glass capsule with a jelly bead: off it is clear glass with a lilac bead; on, the capsule fills with a warm peach light and the bead squashes as it slides over and turns pink.
Triggers
- Click
- State change
- Spring
Techniques
- Keyframes
- CSS transition
- Radial gradient
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
A native checkbox with role="switch" inside a <label>, named by aria-label ("Warm tone").
Reduced motion
The transitions and loops stop and the component jumps straight to its final state.
Use it in anything you build, commercial and client work included. Licence