Halo
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-halo-fieldAbout this component
A glass name field: when you click into it, a band of coloured light runs once round the rim and settles into a soft violet glow, and the label floats up out of the way.
Triggers
- Focus
- Glow
- Border
Techniques
- Conic gradient
- Keyframes
- @property
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
A native text input wrapped in its <label>, whose text floats up on focus; the light is aria-hidden.
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