Highlight
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initFieldHighlight(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-highlightAbout this component
A note field on a ruled index card held by a strip of tape. Each word you finish gets a highlighter stroke swept behind it, yellow, pink, green and blue in turn, each at its own slight angle.
Triggers
- Focus
- Fill
- State change
Techniques
- Pseudo elements
- CSS transition
- CSS variables
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
A native text input named by aria-label ("Note"); the tape, strokes, mirror and caret are aria-hidden. Focus straightens the card and draws a yellow ring.
Reduced motion
Strokes appear at once and the caret stays solid.
Use it in anything you build, commercial and client work included. Licence