Long shadow
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initFieldLongshadow(el) on the mounted element instead.
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-longshadowAbout this component
A headline field in flat design: white letters on a coral tile cast long flat shadows away from a light that sits just above the caret. Every key you type swings the shadows round.
Triggers
- Focus
- State change
Techniques
- @property
- CSS variables
- CSS transition
Difficulty
Advanced
Accessibility
Keyboard and screen readers
A native text input named by aria-label ("Headline"); the badge, both mirrored lines and the caret are aria-hidden. Focus draws a dark coral ring.
Reduced motion
The shadows move without easing and the caret stays solid.
Use it in anything you build, commercial and client work included. Licence