Gems
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-gemsAbout this component
Three cut stones in gold settings: ruby, emerald and sapphire. The unpicked stones sit dark; the one you pick catches the light, its facets come up in full colour and a glint turns on its corner.
Triggers
- Click
- State change
- Glow
- Keyframe
Techniques
- Conic gradient
- clip-path
- Filter
- Keyframes
- CSS variables
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
Native radios in a fieldset with a visually hidden legend ("Stone"), each in a <label> and named by aria-label (Ruby, Emerald, Sapphire); everything drawn is aria-hidden. :focus-visible outlines the gold setting.
Reduced motion
The transitions and the glint loop are switched off.
Use it in anything you build, commercial and client work included. Licence