Op-art
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-opartAbout this component
A pattern picker in sixties op-art: three black and white discs of rings, waves and rays. The disc you pick takes on its two colours and starts to move inside a ring of its colour, the rings running outward, the waves flowing and the rays turning.
Triggers
- Click
- State change
- Loop
- Gradient
Techniques
- @property
- Keyframes
- Conic gradient
- Radial gradient
- SVG
- CSS variables
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
Native radios in a fieldset with a visually hidden legend ("Pattern"), each in a <label> with its visible name (Rings, Waves, Rays); the discs are aria-hidden. :focus-visible outlines the disc.
Reduced motion
The picked disc takes its colours and ring but stays still.
Use it in anything you build, commercial and client work included. Licence