Foil
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/input-foilAbout this component
A promo code field edged in iridescent foil that shifts slowly through its colours, with a foil star at the start and a cursor in the code slot. Focus sends a sheen across the field and saturates the edge.
Triggers
- Focus
- Border
- Gradient
- Ambient
Techniques
- Conic gradient
- Keyframes
- clip-path
- Filter
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
A native text input (12 characters at most) inside a <label>, named by aria-label ("Promo code"); the foil, star and drawn cursor are aria-hidden.
Reduced motion
Every transition and animation is switched off.
Use it in anything you build, commercial and client work included. Licence