Neon Sign
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/toggle-neon-signAbout this component
An OPEN sign as a switch. Off, the tubes are dark glass; on, the word stutters to life with a few flickers before burning steady with a glow that lights the board, and the E keeps catching now and then, like a real sign that needs a new transformer. Pure CSS on a native switch.
Triggers
- Click
- State change
- Neon
- Glow
Techniques
- Keyframes
- Filter
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
Native checkbox with role="switch" inside a <label>. The input has aria-label "Open sign" (the sign itself is decorative). Focus ring on the visual via :focus-visible.
Reduced motion
The change is instant.
Use it in anything you build, commercial and client work included. Licence