Glowing Live Home Widgets
An energy card scrolls a glowing line one card width every 5 seconds with a live kW readout. A thermostat overshoots between 19 and 24 degrees on a spring as its glow shifts blue to orange. A music card moves 20 gradient bars to a kick-drum pulse.
// Sign in to see the source. Free pieces need a free account.
Agent prompt
Add the Now In Code component "glowing-live-home-widgets" to this project. The full source is attached at the end of this prompt. Put the files under components/glowing-live-home-widgets/, install the listed dependencies with `npx expo install`, and render it on a route I can open. Keep the timing and easing values documented in the source comments. Replace the sample copy and artwork with content from my app, or leave placeholders and list what I still need to supply. === Sign in to attach the source files ===
Details
- Platforms
- iOS, Android, Web
- Requires
- Expo SDK 54+
- Access
- Free
- Updated
- 27 Oct 2026
- License
- Unlimited commercial projects
- Original design
- @seanaiux on X
Are you the designer? Ask us to change or remove this.
Add pieces from the terminal or let your agent fetch them. Until then, Copy prompt does the same job. Docs
What it does
Three dark home-screen style widgets with colored glow. A wide energy card shows a line chart that scrolls left by one card width every five seconds, a dot that reads out the current value at a fixed point, and a pulsing live label. A thermostat card has a ring of 49 tick marks and a knob that springs between a cool 19 degrees and a warm 24, overshooting to 25 and 18 on the way. Its ticks, glow and pill color blend from blue to orange, and the Eco and Heating label changes after a delay. A music card has 20 bars driven by a kick-drum pulse, a background glow that beats with them, and a cover whose conic gradient rotates.
How it's built
A shared core builds a display list from the time, and the React Native component draws it with react-native-svg on a requestAnimationFrame loop. There are no blur filters: the glows are stacked strokes and layers of expanding rounded rectangles. React Native has no conic gradient, so the rotating cover is 120 fixed-color wedges rotated as one group. The line is a closed-form sum of three sine terms, and the bar heights are a closed-form function of time. Small type gets a letter-spacing correction table.
Good for
- Smart home, energy or music widgets on a dark dashboard
- Glowing chart lines and ring dials where a blur filter is not available
- A reference for tick-ring controls with spring-driven knobs
Dependencies
react-native-svgreact-native