Revolve
Markup where the component goes, CSS in your stylesheet. No JavaScript.
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/radio-revolveAbout this component
A colour picker laid out on a ring: six glossy swatches round a sunken track, with a big glass bead in the middle. The selection ring travels round the track to the swatch you pick, and the bead fills with that colour behind a ripple.
Triggers
- Click
- State change
- Spring
- Fill
Techniques
- Transform only
- CSS variables
- Radial gradient
- Keyframes
- CSS transition
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
Native radios in a fieldset with a visually hidden legend ("Accent colour"), each named by aria-label (Coral, Amber, Lime, Teal, Blue, Violet); the ring, track and bead are aria-hidden. :focus-visible outlines the swatch.
Reduced motion
The ring and the bead change at once.
Use it in anything you build, commercial and client work included. Licence