Now In Code
Get access

Energy Gauge with Growing Flower

A two-segment arc gauge and big percentage sit above a hill where a flower shrinks to a bud as energy drains, then blooms again as logged actions turn into light particles that fly up to it. One frame(t) timeline drives HTML and React Native.

Inspired by a design by @jasonnfonsecaa on XRebuilt from scratch by Now In Code

Agent prompt

Add the Now In Code component "energy-gauge-growing-flower" to this project.

The full source is attached at the end of this prompt. Put the files under components/energy-gauge-growing-flower/, 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.

=== Source files are attached here for paid plans ===
Pro piece. The prompt includes the full source.Get access

Details

Platforms
iOS, Android
Requires
Expo SDK 54+
Access
Pro
Updated
18 Nov 2026
License
Unlimited commercial projects
Original design
@jasonnfonsecaa on X

Are you the designer? Ask us to change or remove this.

CLI and MCP server Coming soon

Add pieces from the terminal or let your agent fetch them. Until then, Copy prompt does the same job. Docs

What it does

A calm night-time health home screen on a deep green meadow. A date strip at the top shows a small flower thumbnail per day with weekday and percentage, the selected day on a glass block. A ninety-degree arc gauge below has a lime segment and a white segment, each carrying a label that rotates along the arc, with a large percentage in the center. A flower on a hill grows with the number, from a bud to a tulip cup, to a half-open bloom and finally a full daisy, under a serif heading and a line of copy. The seventeen-second loop drains the energy to zero, shrinks the flower to a bud, then turns three items into golden specks that fly up to the flower as the gauge climbs back to one hundred.

How it's built

One pure function of time in a shared core returns the whole frame, covering gauge arc lengths, flower stage, date strip offset, text slots and particle paths. Energy changes follow measured cubic Bezier curves, and the date strip slides with a symmetric ease. The component draws the arc, flower and specks with react-native-svg and uses expo-linear-gradient for the sky and hill and expo-blur for the glass pieces. A requestAnimationFrame loop drives time, and a font hook loads the typefaces. The background darkens as energy falls.

Good for

  • Daily wellness, mood or habit trackers with a single energy score
  • A gauge that shares its meaning with a growing illustration
  • Calm, low-contrast home screens for health or meditation apps

Dependencies

react-native-svgexpo-linear-gradientexpo-blurexpo-fontreact-native

Tags

ChartDark ModeData FillGlowHealth and FitnessNumeric DisplayProgress BarSoft and CalmStaggered Entrance

Related