Glow
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardGlow(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/card-glowAbout this component
A night run card printed with glow-in-the-dark ink: switch the lights off and the card goes dark while the route, the distance and the pace glow on in pale light, then settle to a softer glow as the ink loses its charge; lights back on charges it again.
- Dependencies
- None
- Difficulty
- Intermediate
- Reduced motion
- Respected
- Theme
- Light and dark
- Follows page color-scheme
Triggers4
- Click
- State change
- Glow
- Card
Techniques4
- CSS transition
- Filter
- SVG
- Keyframes
Accessibility
Keyboard and screen readers
Lights is a toggle button (aria-pressed, labelled Lights on or off); the run details are text in both states.
Reduced motion
The glow shows and stays without fading.
Use it in anything you build, commercial and client work included. Licence
More cards
See allDorset · June, late afternoon
What do you see?
Pencil, then ink · 14 Nov